]> git.eshelyaron.com Git - emacs.git/commitdiff
Follow aliases for `interactive-only` declarations
authorMattias Engdegård <mattiase@acm.org>
Tue, 21 Feb 2023 10:46:14 +0000 (11:46 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 21 Feb 2023 11:32:48 +0000 (12:32 +0100)
Make `interactive-only` declarations apply to aliases of the same
function as well since this quality isn't in the name but in what
the function does.

* lisp/emacs-lisp/bytecomp.el (byte-compile-form):
* lisp/help-fns.el (help-fns--interactive-only):
Follow aliases when retrieving the `interactive-only` property.

lisp/emacs-lisp/bytecomp.el
lisp/help-fns.el

index a0e124bcf1be03a845b84500338ff9f05200140c..b1410fc26462f809af54d7f2d5fd542372265d26 100644 (file)
@@ -3416,7 +3416,7 @@ lambda-expression."
       (let* ((fn (car form))
              (handler (get fn 'byte-compile))
             (interactive-only
-             (or (get fn 'interactive-only)
+             (or (function-get fn 'interactive-only)
                  (memq fn byte-compile-interactive-only-functions))))
         (when (memq fn '(set symbol-value run-hooks ;; add-to-list
                              add-hook remove-hook run-hook-with-args
index 1172f0689347af67f9f4b7ea9bfaffa0286298be..84266e02901cc8e5d31fd9a0de8e25b0bf6b9845 100644 (file)
@@ -769,7 +769,7 @@ the C sources, too."
   (and (symbolp function)
        (not (eq (car-safe (symbol-function function)) 'macro))
        (let* ((interactive-only
-               (or (get function 'interactive-only)
+               (or (function-get function 'interactive-only)
                    (if (boundp 'byte-compile-interactive-only-functions)
                        (memq function
                              byte-compile-interactive-only-functions)))))