projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1bb71
)
* Allow for optional function name parameter in 'ftype' declaration
author
Andrea Corallo
<acorallo@gnu.org>
Tue, 14 May 2024 07:58:42 +0000
(09:58 +0200)
committer
Andrea Corallo
<acorallo@gnu.org>
Tue, 14 May 2024 09:17:25 +0000
(11:17 +0200)
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Allow for
optional function name parameter in 'ftype' declaration.
lisp/emacs-lisp/byte-run.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-run.el
b/lisp/emacs-lisp/byte-run.el
index 2031049e6788ab88f7c1e987074c15a6032d4a1b..2fa646f25317954f6e9dd7807dfed5336b70d38a 100644
(file)
--- a/
lisp/emacs-lisp/byte-run.el
+++ b/
lisp/emacs-lisp/byte-run.el
@@
-223,7
+223,11
@@
So far, FUNCTION can only be a symbol, not a lambda expression."
val)))))
(defalias 'byte-run--set-function-type
- #'(lambda (f _args val)
+ #'(lambda (f _args val &optional f2)
+ (when (and f2 (not (eq f2 f)))
+ (error
+ "`%s' does not match top level function `%s' inside function type \
+declaration" f2 f))
(list 'function-put (list 'quote f)
''function-type (list 'quote val))))