1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-22 10:26:20 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
Stefan Monnier
cb5da1a31e (define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet. 2000-08-16 20:16:33 +00:00
Stefan Monnier
1328a6dfa2 (define-minor-mode): If KEYMAP is a symbol, just use it.
Use byte-compile-current-file and load-file-name to infer the
proper :require to pass to defcustom.
Wrap the hook var into `progn' so as not to autoload it.
Add a :autoload-end cookie.
Be more careful about the evaluation of KEYMAP.
(easy-mmode-define-global-mode): Add a :autoload-end cookie.
(define-derived-mode): Move define-abbrev-table outside of defvar.
2000-06-11 04:55:57 +00:00
Stefan Monnier
d5b037c5bf (easy-mmode-define-global-mode): Autoload.
Use find-file-hooks in the minor-mode function.
Be careful not to loop indefinitely in the post-command-hook function.
2000-06-05 06:06:30 +00:00
Stefan Monnier
be22f4cc63 Require CL during compilation.
(easy-mmode-define-global-mode): New macro.
(define-minor-mode): Fix the handling of `group'.
(easy-mmode-define-keymap): Use case.
2000-06-04 23:40:58 +00:00
Stefan Monnier
b5bbbb7612 (easy-mmode-define-toggle): Remove (inline into define-minor-mode).
(easy-mmode-pretty-mode-name): Rename from easy-mmode-derive-name
and improve to use the lighter to guess the capitalization.
(define-minor-mode): Inline code from easy-mmode-define-toggle.
Add keyword arguments to specify global-ness or the custom group.
Add local-map and help-echo properties to the lighter.
(easy-mmode-define-navigation): Add the errors to debug-ignored-errors.
2000-06-04 20:59:47 +00:00
Stefan Monnier
3837de1250 (easy-mmode-derive-name): New function.
(easy-mmode-define-toggle, define-minor-mode): Use it.
(easy-mmode-define-keymap): Docstring fix.
(define-derived-mode): Default PARENT to fundamental-mode.
Add the derived-mode-parent symbol-property.
(easy-mmode-derived-mode-p): New function.
2000-06-02 23:07:08 +00:00
Stefan Monnier
c8c21615b8 Update copyright and commentary.
(easy-mmode-define-toggle): Deprecate the use of *-(on|off)-hook.
Print a status message if the toggle is called interactively.
(define-minor-mode): Allow INIT-VALUE to be (global . INIT-VALUE)
for global minor modes and use `defcustom' for them.
Use add-minor-mode.
(easy-mmode-define-derived-mode): Remove.
(define-derived-mode): Fancier default docstring.
(easy-mmode-define-navigation): Signal an error rather than (ding).
2000-05-21 01:44:08 +00:00
Stefan Monnier
36a5b60e8e (easy-mmode-define-navigation): Only use `ding' for interactive use
else, use `error' (to enable the caller to react to the problem).
2000-03-21 16:53:06 +00:00
Stefan Monnier
c7ea3acc6b * derived.el (define-derived-mode): Don't autoload anymore.
Prefer the macro-only version provided by easy-mmode.el.
* emacs-lisp/easy-mmode.el (define-derived-mode): New name for
`easy-mmode-define-derived-mode'.
Use `combine-run-hooks'.
(easy-mmode-define-navigation): New macro.
2000-03-21 15:35:06 +00:00
Stefan Monnier
e4ad5f9e5f (easy-mmode-defmap, easy-mmode-defsyntax): Autoload the functions used.
(easy-mmode-define-syntax): Fix CL typo.
(easy-mmode-define-derived-mode): Improve the docstring generation.
2000-03-11 03:37:37 +00:00
Stefan Monnier
5a7a545cc5 (easy-mmode-define-keymap): Extend to allow more flexibility.
(easy-mmode-set-keymap-parents, easy-mmode-define-syntax): New functions.
(easy-mmode-defmap, easy-mmode-defsyntax, easy-mmode-define-derived-mode):
New macros.
2000-03-10 01:17:04 +00:00
Stefan Monnier
29cc3b845b Changed maintainer.
(easy-mmode-define-toggle): New BODY arg; Never append `-mode';
  Use defcustom for the hooks; Improve the auto-generated docstrings.
(easy-mmode-define-minor-mode): Renamed `define-minor-mode'.
(define-minor-mode): Add BODY arg; Only declare the keymap if
  provided; Improve the auto-generated docstrings.
1999-11-23 09:08:38 +00:00
Karl Heuer
5e21ef7a07 (easy-mmode-define-minor-mode):
On repeated call, override previous values put into
minor-mode-map-alist and minor-mode-alist.
1999-08-28 15:13:37 +00:00
Richard M. Stallman
340fe109c9 (easy-mmode-define-keymap): Doc fix. 1999-07-09 01:59:03 +00:00
Karl Heuer
3d1ef62e40 (easy-mmode-define-minor-mode): Add missing format arg. 1998-06-01 02:59:23 +00:00
Richard M. Stallman
e8fb3d5a5f (easy-mmode-define-minor-mode): Fix
the doc strings used for the mode flag variable and the keymap.
Delete duplicate &optional's.
1998-02-06 06:12:29 +00:00
Richard M. Stallman
6b27974068 Initial revision 1997-06-22 20:08:32 +00:00