diff options
| author | Xiyue Deng <manphiz@gmail.com> | 2025-02-26 15:39:42 -0800 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2025-02-27 10:27:57 -0500 |
| commit | 3794389ef685b6a59b3a487d0492c3add3c42c2f (patch) | |
| tree | 62c622e0f013ca0b2bc77fdbaf3c19fad99a3ba9 | |
| parent | 5ad8a9ce57b6c076428286c3d25968b449ab6fd3 (diff) | |
Check for interpreted-function-p
Emacs 30.x added interpreted-function which is different from
byte-code-function, and hence helpful--signature will try to treat it
like a lambda which will fail with
,----
| (wrong-type-argument listp #[(x) (x) (t) nil "Foo"])
`----
This patch adds tests for such case using interpreted-function-p when
it's available.
| -rw-r--r-- | helpful.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2570,7 +2570,9 @@ For example, \"(some-func FOO &optional BAR)\"." (cond ((symbolp sym) (help-function-arglist sym)) - ((byte-code-function-p sym) + ((or (byte-code-function-p sym) + (if (fboundp 'interpreted-function-p) + (interpreted-function-p sym))) ;; argdesc can be a list of arguments or an integer ;; encoding the min/max number of arguments. See ;; Byte-Code Function Objects in the elisp manual. |
