Commit graph

104 commits

Author SHA1 Message Date
Stefan Monnier
3b7e1d5fe9 (define-minor-mode): A nil argument to the minor mode turns the mode ON. 2010-04-12 21:03:04 -04:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Eli Zaretskii
af414f10d8 emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Make
the lines in the generated doc string shorter.  (Bug#4668)
2010-01-02 19:33:54 +02:00
Dan Nicolaescu
8b908da69e (define-minor-mode): Purecopy :lighter. 2009-11-11 06:17:07 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Juanma Barranquero
12a3c28c78 * image-mode.el (image-toggle-display):
* emacs-lisp/elp.el (elp-instrument-function):
* emacs-lisp/advice.el (ad-make-advised-definition):
* emacs-lisp/easy-mmode.el (define-minor-mode):
* net/browse-url.el (browse-url-maybe-new-window):
* progmodes/sh-script.el (sh-learn-buffer-indent):
  Pass new argument 'any to `called-interactively-p'.
2009-10-02 00:02:02 +00:00
Glenn Morris
117fdd32c7 (easy-mmode-defmap): Add doc-string. 2009-09-10 06:20:51 +00:00
Stefan Monnier
5ca4661e53 (define-minor-mode): Don't use symbol-value with constant argument. 2009-08-30 14:20:43 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
210c6549fa (easy-mmode-set-keymap-parents): Evaluate definition when compiling. 2008-06-21 23:01:01 +00:00
Glenn Morris
d6cba7ae45 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:21:21 +00:00
Glenn Morris
38a48ab7a8 Tom Tromey <tromey at redhat.com>
(easy-mmode-define-keymap): Document keywords.  Add :suppress.
2008-04-24 05:47:18 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Stefan Monnier
cc34934141 (easy-mmode-define-navigation):
Add `body' arg.  Cleanup the check-narrow-maybe/re-narrow-maybe mess.
2007-10-20 01:46:38 +00:00
Miles Bader
1af74d06e5 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
2007-10-09 08:52:57 +00:00
Juanma Barranquero
9b97ee2e47 (easy-mmode-define-syntax): Use mapc' rather than mapcar'. 2007-09-26 00:12:23 +00:00
Stefan Monnier
dae157b7c9 (define-minor-mode): Fix staging brain damage. 2007-09-21 18:27:34 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Juanma Barranquero
9605302019 (define-minor-mode, easy-mmode-define-navigation): Fix typos in docstrings. 2007-06-04 22:51:47 +00:00
Richard M. Stallman
7d5e5e7087 (define-minor-mode): Fix generated doc string. 2007-05-10 16:33:50 +00:00
Richard M. Stallman
44395dee2e (define-globalized-minor-mode): Improve doc string of generated command. 2007-04-22 16:58:23 +00:00
Chong Yidong
275e4f4ca5 (define-globalized-minor-mode): Rename from define-global-minor-mode. 2007-02-03 17:26:28 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Richard M. Stallman
9f729dab76 (define-global-minor-mode): Doc fix. 2006-12-30 21:34:14 +00:00
Chong Yidong
9e288f7521 (easy-mmode-define-navigation): Fix interactive spec of the functions
getting defined to make them work as documented.
2006-11-28 19:22:31 +00:00
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