From: Michael Heerdegen Date: Fri, 29 Aug 2014 20:28:19 +0000 (+0200) Subject: * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function X-Git-Tag: emacs-25.0.90~2635^2~679^2~394 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e6a4c15ff1a2dad24eb695d0f9f1e63398aadf9f;p=emacs.git * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function name instead of variable name in hook docstring. (Bug#18349) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6df129d22ea..af801a27e98 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-08-29 Michael Heerdegen + + * emacs-lisp/easy-mmode.el (define-minor-mode): Use mode function + name instead of variable name in hook docstring. (Bug#18349) + 2014-08-29 Martin Rudalics * window.el (display-buffer-at-bottom): Prefer bottom-left diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index b5b6566cf66..9a17a75e48b 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -300,7 +300,7 @@ the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'. ,(format "Hook run after entering or leaving `%s'. No problems result if this variable is not bound. `add-hook' automatically binds it. (This is true for all hook variables.)" - mode)) + modefun)) ;; Define the minor-mode keymap. ,(unless (symbolp keymap) ;nil is also a symbol.