summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easy-mmode.el
Commit message (Collapse)AuthorAgeFilesLines
* (define-minor-mode): Doc fix.Richard M. Stallman2002-10-071-5/+14
|
* (define-minor-mode): Don't add propertiesStefan Monnier2002-09-271-10/+3
| | | | | to the name since they're added by mode-line-format already. (define-minor-mode): Run (,mode -1) when needed.
* (define-minor-mode): Add a :require arg.Stefan Monnier2002-09-131-12/+15
| | | | Don't call the function during init if mode is on by default.
* (define-minor-mode): Use customize-mark-as-set for global minor modes.Stefan Monnier2002-08-261-3/+5
|
* (easy-mmode-define-global-mode): Use find-file-hook instead of find-file-hooks.Stefan Monnier2002-08-151-10/+15
| | | | | | (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.
* (easy-mmode-define-global-mode): Put `definition-name' properties onRichard M. Stallman2002-08-131-1/+3
| | | | the functions whose names are constructed.
* (define-minor-mode): Use "P" in interactive spec of minor mode commands.Richard M. Stallman2002-03-041-1/+1
|
* (define-minor-mode): Make no arg by default in an interactive call,Richard M. Stallman2001-12-211-2/+4
| | | | so that repeating the command toggles again.
* (define-minor-mode): UseGerd Moellmann2001-08-091-6/+4
| | | | mode-line-minor-mode-keymap for the minor mode name.
* *** empty log message ***Pavel Janík2001-07-171-2/+4
|
* Some fixes to follow coding conventions.Pavel Janík2001-07-161-1/+1
|
* (define-minor-mode): Use eval-after-loadStefan Monnier2001-07-081-2/+5
| | | | | to delay the call to <mode> for global minor modes. (easy-mmode-define-navigation): Only recenter if interactive.
* (easy-mmode-defsyntax): Unquote `doc'.Stefan Monnier2001-04-191-3/+2
|
* (define-minor-mode): Docstring fix.Stefan Monnier2001-01-251-2/+2
|
* (define-derived-mode,easy-mmode-derived-mode-p): Remove (moved to derived.el).Stefan Monnier2000-12-031-131/+0
|
* (easy-mmode-define-keymap):Stefan Monnier2000-11-121-1/+2
| | | | Add keyword arg :name.
* (easy-mmode-define-navigation):Stefan Monnier2000-11-091-11/+13
| | | | Allow `next' to jump to after the end of the last match.
* (easy-mmode-define-global-mode): Only turn mode off if it's on.Stefan Monnier2000-11-031-1/+1
|
* (define-minor-mode): Remove :toggle arg.Stefan Monnier2000-11-031-29/+28
| | | | | | | Correctly handle the case where several :group args are supplied. Allow :extra-args. (easy-mmode-define-global-mode): Allow :extra-args. Correctly handle the case where several :group args are supplied.
* (define-minor-mode):Stefan Monnier2000-11-011-64/+44
| | | | | | | | | Revert the latest changes. Allow the three positional arguments to be skipped and replaced by keyword arguments. Add a :toggle argument to determine whether a nil arg means toggle or means turn-on. The default is unchanged. Add a call to force-mode-line-update.
* Doc fix.Miles Bader2000-10-281-1/+3
|
* (define-minor-mode): Generate `turn-on-MODE' and `turn-off-MODE'Miles Bader2000-10-281-5/+47
| | | | | | | functions unless the mode is global. If :global is followed by a non-nil but non-t value, make the mode buffer-local, but also generate a `global-MODE' version using `easy-mmode-define-global-mode'. Add :conditional-turn-on keyword argument.
* (easy-mmode-define-syntax): Use plist-get and allow :inherit.Stefan Monnier2000-10-151-1/+7
|
* (define-derived-mode): Tweak generated docstring parts.Miles Bader2000-10-061-5/+7
|
* (easy-mmode-define-navigation):Miles Bader2000-10-011-1/+2
| | | | Call `recenter' with an arg to prevent redrawing the display.
* (easy-mmode-pretty-mode-name): Prettier.Stefan Monnier2000-10-011-2/+4
|
* (easy-mmode-define-keymap): Autoload.Stefan Monnier2000-09-291-5/+4
| | | | (easy-mmode-defmap): Remove the now useless autoload.
* (define-minor-mode): Use `symbol-value' to keep the byte-compiler quiet.Stefan Monnier2000-08-161-1/+2
|
* (define-minor-mode): If KEYMAP is a symbol, just use it.Stefan Monnier2000-06-111-20/+42
| | | | | | | | | | 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.
* (easy-mmode-define-global-mode): Autoload.Stefan Monnier2000-06-051-35/+31
| | | | | Use find-file-hooks in the minor-mode function. Be careful not to loop indefinitely in the post-command-hook function.
* Require CL during compilation.Stefan Monnier2000-06-041-11/+87
| | | | | | (easy-mmode-define-global-mode): New macro. (define-minor-mode): Fix the handling of `group'. (easy-mmode-define-keymap): Use case.
* (easy-mmode-define-toggle): Remove (inline into define-minor-mode).Stefan Monnier2000-06-041-55/+79
| | | | | | | | | (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.
* (easy-mmode-derive-name): New function.Stefan Monnier2000-06-021-10/+26
| | | | | | | | (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.
* Update copyright and commentary.Stefan Monnier2000-05-211-58/+57
| | | | | | | | | | | (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).
* (easy-mmode-define-navigation): Only use `ding' for interactive useStefan Monnier2000-03-211-3/+7
| | | | else, use `error' (to enable the caller to react to the problem).
* * derived.el (define-derived-mode): Don't autoload anymore.Stefan Monnier2000-03-211-21/+65
| | | | | | | | 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.
* (easy-mmode-defmap, easy-mmode-defsyntax): Autoload the functions used.Stefan Monnier2000-03-111-45/+60
| | | | | (easy-mmode-define-syntax): Fix CL typo. (easy-mmode-define-derived-mode): Improve the docstring generation.
* (easy-mmode-define-keymap): Extend to allow more flexibility.Stefan Monnier2000-03-101-14/+179
| | | | | | (easy-mmode-set-keymap-parents, easy-mmode-define-syntax): New functions. (easy-mmode-defmap, easy-mmode-defsyntax, easy-mmode-define-derived-mode): New macros.
* Changed maintainer.Stefan Monnier1999-11-231-51/+46
| | | | | | | | (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.
* (easy-mmode-define-minor-mode):Karl Heuer1999-08-281-8/+11
| | | | | On repeated call, override previous values put into minor-mode-map-alist and minor-mode-alist.
* (easy-mmode-define-keymap): Doc fix.Richard M. Stallman1999-07-091-1/+1
|
* (easy-mmode-define-minor-mode): Add missing format arg.Karl Heuer1998-06-011-1/+1
|
* (easy-mmode-define-minor-mode): FixRichard M. Stallman1998-02-061-5/+4
| | | | | the doc strings used for the mode flag variable and the keymap. Delete duplicate &optional's.
* Initial revisionRichard M. Stallman1997-06-221-0/+169