emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ca8d451561c: (define-derived-mode): Fix bug#68600


From: Stefan Monnier
Subject: master ca8d451561c: (define-derived-mode): Fix bug#68600
Date: Sat, 20 Jan 2024 23:02:27 -0500 (EST)

branch: master
commit ca8d451561c5f722f7c3bfc63595961334b7b5f9
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    (define-derived-mode): Fix bug#68600
    
    * lisp/emacs-lisp/derived.el (define-derived-mode): Use a reference
    to the mode symbol instead of the mode's "pretty" name in
    the hook variable's docstring.
---
 lisp/emacs-lisp/derived.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el
index 5c224362708..726f96a25f7 100644
--- a/lisp/emacs-lisp/derived.el
+++ b/lisp/emacs-lisp/derived.el
@@ -211,10 +211,10 @@ See Info node `(elisp)Derived Modes' for more details.
        (defvar ,hook nil)
        (unless (get ',hook 'variable-documentation)
          (put ',hook 'variable-documentation
-              ,(format "Hook run after entering %s mode.
+              ,(format "Hook run after entering `%S'.
 No problems result if this variable is not bound.
 `add-hook' automatically binds it.  (This is true for all hook variables.)"
-                       name)))
+                       child)))
        (unless (boundp ',map)
         (put ',map 'definition-name ',child))
        (with-no-warnings (defvar ,map (make-sparse-keymap)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]