projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1bd34
)
Byte compile: Output an error, not a warning, for odd number of args to setq
author
Alan Mackenzie
<acm@muc.de>
Tue, 24 Nov 2015 12:40:39 +0000
(12:40 +0000)
committer
Alan Mackenzie
<acm@muc.de>
Tue, 24 Nov 2015 12:40:39 +0000
(12:40 +0000)
* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index b29e77b14b534f46faefe8364e9489c905971fa3..5e6df282b3f90394a1a01a50e3bee37d8dcdecf1 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-3713,9
+3713,9
@@
discarding."
(if args
(while args
(if (eq (length args) 1)
- (byte-compile-
warn
- "missing value for `%S' at end of setq"
-
(car args)
))
+ (byte-compile-
log-warning
+ (format "missing value for `%S' at end of setq" (car args))
+
nil :error
))
(byte-compile-form (car (cdr args)))
(or byte-compile--for-effect (cdr (cdr args))
(byte-compile-out 'byte-dup 0))