]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indentation for with-output-to-string
authorLeo Liu <sdl.web@gmail.com>
Fri, 26 Jun 2015 10:02:30 +0000 (18:02 +0800)
committerLeo Liu <sdl.web@gmail.com>
Fri, 26 Jun 2015 10:03:30 +0000 (18:03 +0800)
* lisp/emacs-lisp/cl-indent.el: Fix indentation for
  `with-output-to-string' in elisp.

  Revert "lisp/emacs-lisp/cl-indent.el: Fix indent of with-output-to-string"
  This reverts commit 659199f2ca5f283fb246faa78a244e5ca25f53dd.

lisp/emacs-lisp/cl-indent.el

index 9314419a26fd9f0387921830ef5132ba01120619..5134e50fa3b9acfee6a54ed27f0702db2323d8be 100644 (file)
@@ -827,7 +827,7 @@ optional\\|rest\\|key\\|allow-other-keys\\|aux\\|whole\\|body\\|environment\
            (with-accessors . multiple-value-bind)
            (with-condition-restarts . multiple-value-bind)
           (with-compilation-unit (&lambda &body))
-           (with-output-to-string 0)
+           (with-output-to-string (4 2))
            (with-slots . multiple-value-bind)
            (with-standard-io-syntax (2)))))
   (dolist (el l)
@@ -839,6 +839,7 @@ optional\\|rest\\|key\\|allow-other-keys\\|aux\\|whole\\|body\\|environment\
 ;; In elisp, the else part of `if' is in an implicit progn, so indent
 ;; it more.
 (put 'if 'common-lisp-indent-function-for-elisp 2)
+(put 'with-output-to-string 'common-lisp-indent-function-for-elisp 0)
 
 \f
 ;(defun foo (x)