emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 12654b7: * lisp/menu-bar.el (yank-menu-length): Fix docstring (


From: Juri Linkov
Subject: emacs-28 12654b7: * lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).
Date: Fri, 15 Oct 2021 03:00:45 -0400 (EDT)

branch: emacs-28
commit 12654b74236b914f571f173689b0ac87247d0f24
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/menu-bar.el (yank-menu-length): Fix docstring (bug#51138).
---
 lisp/help-fns.el | 2 +-
 lisp/menu-bar.el | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 03bbc97..2b759a5 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -823,7 +823,7 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED 
REAL-DEF)."
                            ;; Advised & aliased function.
                            (and advised (symbolp real-function)
                                 (not (eq 'autoload (car-safe def))))
-                           (and (subrp def)
+                           (and (subrp def) (symbolp function)
                                 (not (string= (subr-name def)
                                               (symbol-name function)))))))
         (real-def (cond
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index b2577c0..1cc126b 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -2159,7 +2159,7 @@ otherwise it could decide to silently do nothing."
     (> count 1)))
 
 (defcustom yank-menu-length 20
-  "Maximum length to display in the `yank-menu'."
+  "Text of items in `yank-menu' longer than this will be truncated."
   :type 'integer
   :group 'menu)
 



reply via email to

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