* lisp/emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 May 2012 15:15:51 +0000 (11:15 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 17 May 2012 15:15:51 +0000 (11:15 -0400)
parens around the arg list.

Fixes: debbugs:11499

lisp/ChangeLog
lisp/emacs-lisp/cl-macs.el

index b1d9323..fca6543 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious
+       parens around the arg list (bug#11499).
+
 2012-05-17  Juri Linkov  <juri@jurta.org>
 
        * isearch.el (word-search-regexp, word-search-backward)
index 8050da4..66fafb9 100644 (file)
@@ -318,8 +318,9 @@ It is a list of elements of the form either:
                         (require 'help-fns)
                         (cons (help-add-fundoc-usage
                                (if (stringp (car hdr)) (pop hdr))
-                               (format "(fn %S)"
-                                       (cl--make-usage-args orig-args)))
+                               (format "%S"
+                                       (cons 'fn
+                                             (cl--make-usage-args orig-args))))
                               hdr)))
                    (list (nconc (list 'let* bind-lets)
                                 (nreverse bind-forms) body)))))))