projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4a12a
)
* lisp/progmodes/elisp-mode.el (elisp--local-variables-1): Fix bug#50034
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 23 Aug 2022 14:15:48 +0000
(10:15 -0400)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 23 Aug 2022 14:16:05 +0000
(10:16 -0400)
Don't burp if the arg list of a function is not actually a list.
lisp/progmodes/elisp-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/elisp-mode.el
b/lisp/progmodes/elisp-mode.el
index 4617a01947ce7e90568515df8d173b49fa5495e3..9dc67010aa7f720effc011ca43983b29a6a4f48b 100644
(file)
--- a/
lisp/progmodes/elisp-mode.el
+++ b/
lisp/progmodes/elisp-mode.el
@@
-383,7
+383,9
@@
be used instead.
(setq sexp nil))
(`(lambda ,args . ,body)
(elisp--local-variables-1
- (append (remq '&optional (remq '&rest args)) vars)
+ (let ((args (if (listp args) args)))
+ ;; FIXME: Exit the loop if witness is in args.
+ (append (remq '&optional (remq '&rest args)) vars))
(car (last body))))
(`(condition-case ,_ ,e) (elisp--local-variables-1 vars e))
(`(condition-case ,v ,_ . ,catches)