diff options
| author | Mattias EngdegÄrd | 2023-02-21 11:46:14 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-02-21 12:32:48 +0100 |
| commit | 7a59f20a4e5aefb8bd007275efbcf4e658d77ac0 (patch) | |
| tree | 41120d641eff76e6d80ccb6df8735d04a3ca3a7d | |
| parent | 68c972cba1af0f0b1572ef41bdd6010fbd1ea726 (diff) | |
| download | emacs-7a59f20a4e5aefb8bd007275efbcf4e658d77ac0.tar.gz emacs-7a59f20a4e5aefb8bd007275efbcf4e658d77ac0.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 | ||||
| -rw-r--r-- | lisp/help-fns.el | 2 |
2 files changed, 2 insertions, 2 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." | |||
| 3416 | (let* ((fn (car form)) | 3416 | (let* ((fn (car form)) |
| 3417 | (handler (get fn 'byte-compile)) | 3417 | (handler (get fn 'byte-compile)) |
| 3418 | (interactive-only | 3418 | (interactive-only |
| 3419 | (or (get fn 'interactive-only) | 3419 | (or (function-get fn 'interactive-only) |
| 3420 | (memq fn byte-compile-interactive-only-functions)))) | 3420 | (memq fn byte-compile-interactive-only-functions)))) |
| 3421 | (when (memq fn '(set symbol-value run-hooks ;; add-to-list | 3421 | (when (memq fn '(set symbol-value run-hooks ;; add-to-list |
| 3422 | add-hook remove-hook run-hook-with-args | 3422 | add-hook remove-hook run-hook-with-args |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 1172f068934..84266e02901 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -769,7 +769,7 @@ the C sources, too." | |||
| 769 | (and (symbolp function) | 769 | (and (symbolp function) |
| 770 | (not (eq (car-safe (symbol-function function)) 'macro)) | 770 | (not (eq (car-safe (symbol-function function)) 'macro)) |
| 771 | (let* ((interactive-only | 771 | (let* ((interactive-only |
| 772 | (or (get function 'interactive-only) | 772 | (or (function-get function 'interactive-only) |
| 773 | (if (boundp 'byte-compile-interactive-only-functions) | 773 | (if (boundp 'byte-compile-interactive-only-functions) |
| 774 | (memq function | 774 | (memq function |
| 775 | byte-compile-interactive-only-functions))))) | 775 | byte-compile-interactive-only-functions))))) |