1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

78 Commits

Author SHA1 Message Date
Richard M. Stallman
da506c0e74 (define-minor-mode): Reference manual about customization, rather than
M-x customize, in the doc string made for the defcustom.
2006-08-31 23:14:26 +00:00
Richard M. Stallman
b50b95ce64 (define-minor-mode): Doc fix. 2006-07-09 02:02:03 +00:00
Eli Zaretskii
1094404231 (define-minor-mode): Doc fix. 2006-07-08 15:20:52 +00:00
Stefan Monnier
8c87a72c22 (define-minor-mode): Only preserve messages output during execution of the body. 2006-05-08 15:12:25 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
Juri Linkov
d5ba8197bb (easy-mmode-define-navigation): Put `definition-name' properties on the
constructed function names next-sym and prev-sym.
2005-12-04 02:34:33 +00:00
Luc Teirlinck
0ceed14b2e (define-global-minor-mode): Pass all specified keyword args on to
`define-minor-mode'.  Update docstring.
2005-11-05 23:03:57 +00:00
Stefan Monnier
94dfee0bfe (define-minor-mode): Simplify. 2005-08-24 11:54:25 +00:00
Luc Teirlinck
f4cb1d8cae (define-minor-mode): Never call the mode function using `eval-after-load'. 2005-07-22 01:26:03 +00:00
Luc Teirlinck
fceb44d286 (define-minor-mode): Avoid constructing a defcustom with two :set or
:type keywords.
2005-07-16 02:25:48 +00:00
Luc Teirlinck
c736d6cff6 (define-minor-mode): Do not override explicitly specified :initialize keyword. 2005-07-14 00:56:13 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Stefan Monnier
62350cdd1a (define-minor-mode): Don't automatically add a :require to the defcustom. 2005-06-26 18:21:46 +00:00
Richard M. Stallman
a566ce8e09 (define-minor-mode): If BODY is empty, give the variable a doc string
that doesn't say don't set it directly.
2005-06-08 15:54:43 +00:00
Luc Teirlinck
876daebc85 (define-global-minor-mode): Make it keep track of which major mode it
enabled the minor mode for.  Use find-file-hook again.  Update docstring.
2005-06-04 22:13:57 +00:00
Luc Teirlinck
7fb8093523 (define-global-minor-mode): Use `after-change-major-mode-hook' instead
of `find-file-hook'.
2005-05-22 22:07:22 +00:00
Lute Kamstra
f567894362 (define-minor-mode): Don't generate a defcustom for the mode hook variable. 2005-05-17 15:17:18 +00:00
Eli Zaretskii
906aee9391 (easy-mmode-pretty-mode-name): Improve commentary. 2005-05-08 19:39:20 +00:00
Eli Zaretskii
e6469973d4 (easy-mmode-pretty-mode-name): Explain
more about the LIGHTER arg's usage in the doc string.  Add
commentary to clarify what the code does.  Fix the regexp that
strips whitespace from LIGHTER.  Quote LIGHTER before using it,
since it could have characters special to regular expressions.
2005-05-07 15:06:42 +00:00
Lute Kamstra
c25eec81aa (define-minor-mode): Fix docstring. 2005-04-26 14:17:51 +00:00
Lute Kamstra
ab7bc2908b (define-global-minor-mode): Don't use custom-current-group.
(define-minor-mode): Ditto.  Document default :group value.
2005-04-05 14:46:29 +00:00
Richard M. Stallman
39a27f952b (define-global-minor-mode): Renamed from easy-mmode-define-global-mode.
(easy-mmode-define-global-mode): Alias for define-global-minor-mode.
2005-03-31 21:16:54 +00:00
Lute Kamstra
2a3a044ce6 (easy-mmode-define-global-mode, define-minor-mode): Call
custom-current-group at load-time.
2005-03-31 14:49:09 +00:00
Richard M. Stallman
a27235b3b5 (define-minor-mode): Use called-interactively-p. 2004-11-02 09:23:34 +00:00
Stefan Monnier
e8a12926bb (easy-mmode-define-navigation): Use a more robust check of widening. 2004-01-27 22:54:45 +00:00
Thien-Thi Nguyen
877f9b0513 (easy-mmode-define-navigation): Take additional
optional arg NARROWFUN.  For the generated functions: Add local var
`was-narrowed-p'.  Also, if NARROWFUN is specified, include frags that
arrange to check for and save narrowing state before the move and then
conditionally call NARROWFUN after the move.
2003-11-14 16:18:01 +00:00
Dave Love
6c119ac0b4 (easy-mmode-define-navigation): Avoid
incf in macro expansion.
2003-10-20 19:07:02 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Andreas Schwab
8fd9bef258 (easy-mmode-define-navigation): Avoid
variable as format argument for error.  Don't call symbol-name on
string.
2003-06-22 16:55:47 +00:00
Stefan Monnier
2e2a00756f (define-minor-mode): Add edebug spec.
Accept a :keymap argument, as you'd expect.
2003-05-29 21:54:35 +00:00
Stefan Monnier
eb81f2758f (define-minor-mode): Only echo a message if the body didn't do so already.
(easy-mmode-define-keymap): Remove unused var `suppress'.
2003-04-18 17:31:05 +00:00
Stefan Monnier
73ceba9f1a (define-minor-mode): Use custom-set-minor-mode.
Pass unknown keyword args blindly to defcustom.
2003-03-24 17:41:43 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Markus Rost
dce88ea679 (define-minor-mode): Use `custom-current-group'.
Pass all groups to the hook.
(easy-mmode-define-global-mode): Use `custom-current-group'.
2002-12-13 23:54:45 +00:00
Richard M. Stallman
a6ce686959 (define-minor-mode): Doc fix. 2002-10-07 22:49:39 +00:00
Stefan Monnier
bb76239ba1 (define-minor-mode): Don't add properties
to the name since they're added by mode-line-format already.
(define-minor-mode): Run (,mode -1) when needed.
2002-09-27 21:12:12 +00:00
Stefan Monnier
c8fb3bf9c6 (define-minor-mode): Add a :require arg.
Don't call the function during init if mode is on by default.
2002-09-13 14:16:02 +00:00
Stefan Monnier
d99d3266b0 (define-minor-mode): Use customize-mark-as-set for global minor modes. 2002-08-26 16:40:49 +00:00
Stefan Monnier
5ddfa187e9 (easy-mmode-define-global-mode): Use find-file-hook instead of find-file-hooks.
(define-minor-mode): Get rid of this silly `togglep'.
Add an explicit `toggle' argument (used for interactive calls).
Emit a warning when a nil argument turns the mode off.
2002-08-15 01:06:05 +00:00
Richard M. Stallman
0256550475 (easy-mmode-define-global-mode): Put `definition-name' properties on
the functions whose names are constructed.
2002-08-13 01:49:13 +00:00
Richard M. Stallman
3881a18674 (define-minor-mode): Use "P" in interactive spec of minor mode commands. 2002-03-04 22:27:03 +00:00
Richard M. Stallman
d743da2643 (define-minor-mode): Make no arg by default in an interactive call,
so that repeating the command toggles again.
2001-12-21 14:12:30 +00:00
Gerd Moellmann
ed771c89bc (define-minor-mode): Use
mode-line-minor-mode-keymap for the minor mode name.
2001-08-09 14:54:05 +00:00
Pavel Janík
9781053a4c *** empty log message *** 2001-07-17 07:37:19 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Stefan Monnier
851040a566 (define-minor-mode): Use eval-after-load
to delay the call to <mode> for global minor modes.
(easy-mmode-define-navigation): Only recenter if interactive.
2001-07-08 22:58:10 +00:00
Stefan Monnier
2a83a11dc1 (easy-mmode-defsyntax): Unquote `doc'. 2001-04-19 22:45:04 +00:00
Stefan Monnier
a2ed96700b (define-minor-mode): Docstring fix. 2001-01-25 15:31:14 +00:00
Stefan Monnier
8b262a6549 (define-derived-mode,easy-mmode-derived-mode-p): Remove (moved to derived.el). 2000-12-03 21:41:06 +00:00
Stefan Monnier
165958d2b4 (easy-mmode-define-keymap):
Add keyword arg :name.
2000-11-12 18:09:09 +00:00