diff options
| author | Stefan Monnier | 2012-11-14 20:26:52 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-14 20:26:52 -0500 |
| commit | 589fc4791fb569279b23e5a09243115a7b52cf74 (patch) | |
| tree | c84ac93d8f4a84c84085770964b789180c3ca634 | |
| parent | bf20ea80f6331aaea18042a92928deb9db1b66f3 (diff) | |
| download | emacs-589fc4791fb569279b23e5a09243115a7b52cf74.tar.gz emacs-589fc4791fb569279b23e5a09243115a7b52cf74.zip | |
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Defend against
potential binding of print-gensym to t, and prettify (back)quotes in
case they appear in args's default values.
Fixes: debbugs:12884
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 01b7532e56d..1a86637f4ed 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-11-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/cl-macs.el (cl--transform-lambda): Defend against | ||
| 4 | potential binding of print-gensym to t, and prettify (back)quotes in | ||
| 5 | case they appear in args's default values (bug#12884). | ||
| 6 | |||
| 1 | 2012-11-14 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2012-11-14 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * emacs-lisp/nadvice.el: Add around advice for interactive specs. | 9 | * emacs-lisp/nadvice.el: Add around advice for interactive specs. |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 3c46c40242d..f83bfe00666 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -260,9 +260,11 @@ The name is made by appending a number to PREFIX, default \"G\"." | |||
| 260 | (require 'help-fns) | 260 | (require 'help-fns) |
| 261 | (cons (help-add-fundoc-usage | 261 | (cons (help-add-fundoc-usage |
| 262 | (if (stringp (car hdr)) (pop hdr)) | 262 | (if (stringp (car hdr)) (pop hdr)) |
| 263 | (format "%S" | 263 | ;; Be careful with make-symbol and (back)quote, |
| 264 | (cons 'fn | 264 | ;; see bug#12884. |
| 265 | (cl--make-usage-args orig-args)))) | 265 | (let ((print-gensym nil) (print-quoted t)) |
| 266 | (format "%S" (cons 'fn (cl--make-usage-args | ||
| 267 | orig-args))))) | ||
| 266 | hdr))) | 268 | hdr))) |
| 267 | (list `(let* ,cl--bind-lets | 269 | (list `(let* ,cl--bind-lets |
| 268 | ,@(nreverse cl--bind-forms) | 270 | ,@(nreverse cl--bind-forms) |