* lisp/emacs-lisp/backquote.el: Fix bug with unoptimized exp.
Fixes: debbugs:19734 * lisp/emacs-lisp/backquote.el (backquote-delay-process): Don't reuse `s' since it may be "equivalent" in some sense, yet different. * test/automated/core-elisp-tests.el (core-elisp-tests-3-backquote): New test.
This commit is contained in:
parent
adebc14b9c
commit
d5e3922e08
4 changed files with 15 additions and 5 deletions
|
@ -120,9 +120,7 @@ Vectors work just like lists. Nested backquotes are permitted."
|
|||
This simply recurses through the body."
|
||||
(let ((exp (backquote-listify (list (cons 0 (list 'quote (car s))))
|
||||
(backquote-process (cdr s) level))))
|
||||
(if (eq (car-safe exp) 'quote)
|
||||
(cons 0 (list 'quote s))
|
||||
(cons 1 exp))))
|
||||
(cons (if (eq (car-safe exp) 'quote) 0 1) exp)))
|
||||
|
||||
(defun backquote-process (s &optional level)
|
||||
"Process the body of a backquote.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue