summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-02-21 11:46:14 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2023-02-21 12:32:48 +0100
commit7a59f20a4e5aefb8bd007275efbcf4e658d77ac0 (patch)
tree41120d641eff76e6d80ccb6df8735d04a3ca3a7d /lisp/emacs-lisp/bytecomp.el
parent68c972cba1af0f0b1572ef41bdd6010fbd1ea726 (diff)
downloademacs-7a59f20a4e5aefb8bd007275efbcf4e658d77ac0.tar.gz
Follow aliases for `interactive-only` declarations
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.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index a0e124bcf1b..b1410fc2646 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -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