[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 a67cc63: Byte compile: Output an error, not a war
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] emacs-25 a67cc63: Byte compile: Output an error, not a warning, for odd number of args to setq |
Date: |
Tue, 24 Nov 2015 12:40:47 +0000 |
branch: emacs-25
commit a67cc630db28cf734d0e47f231add30c782bd8cf
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
Byte compile: Output an error, not a warning, for odd number of args to setq
* lisp/emacs-lisp/bytecomp.el (byte-compile-setq): Amend.
---
lisp/emacs-lisp/bytecomp.el | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b29e77b..5e6df28 100644
--- 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 a67cc63: Byte compile: Output an error, not a warning, for odd number of args to setq,
Alan Mackenzie <=