diff options
| author | Vibhav Pant <vibhavp@gmail.com> | 2017-01-19 23:13:13 +0530 |
|---|---|---|
| committer | Vibhav Pant <vibhavp@gmail.com> | 2017-01-19 23:13:13 +0530 |
| commit | 5f3379b33866ff7dc16856b6c29712eae860af0e (patch) | |
| tree | 2febe6d7c0824d89189470ebbd8ecf6c87f7dea5 /lisp/emacs-lisp | |
| parent | 46193d5209780d21b848374d8c377fb6c8896d1b (diff) | |
| download | emacs-5f3379b33866ff7dc16856b6c29712eae860af0e.tar.gz | |
lisp/emacs-lisp/bytecomp.el: Use byte-switch only for quoted symbols
Diffstat (limited to 'lisp/emacs-lisp')
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index a4f1242ce4a..74d135d155c 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -3972,7 +3972,9 @@ that suppresses all warnings during execution of BODY." (defun byte-compile-cond-valid-obj2-p (obj) (cond - ((consp obj) (eq (car obj) 'quote)) + ((consp obj) (and (eq (car obj) 'quote) + (= (length obj) 2) + (symbolp (cadr obj)))) (t t))) (defun byte-compile-cond-vars (obj1 obj2) |
