* bug#15782: 24.3.50; common-lisp-indent-function for with-compilation-unit
@ 2013-11-01 14:22 Helmut Eller
2013-11-04 19:51 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Helmut Eller @ 2013-11-01 14:22 UTC (permalink / raw)
To: 15782
By default, common-lisp-indent-function indents with-compilation-unit
not very nicely. E.g.:
(with-compilation-unit (:option1 foo
:option2 bar)
x)
With the patch below it will look better, like so:
(with-compilation-unit (:option1 foo
:option2 bar)
x)
diff --git a/lisp/emacs-lisp/cl-indent.el b/lisp/emacs-lisp/cl-indent.el
index bbfe9ec..cc7d2a8 100644
--- a/lisp/emacs-lisp/cl-indent.el
+++ b/lisp/emacs-lisp/cl-indent.el
@@ -756,6 +756,7 @@ optional\\|rest\\|key\\|allow-other-keys\\|aux\\|whole\\|body\\|environment\
(when 1)
(with-accessors . multiple-value-bind)
(with-condition-restarts . multiple-value-bind)
+ (with-compilation-unit (&lambda &body))
(with-output-to-string (4 2))
(with-slots . multiple-value-bind)
(with-standard-io-syntax (2)))))
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#15782: 24.3.50; common-lisp-indent-function for with-compilation-unit
2013-11-01 14:22 bug#15782: 24.3.50; common-lisp-indent-function for with-compilation-unit Helmut Eller
@ 2013-11-04 19:51 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-11-04 19:51 UTC (permalink / raw)
To: Helmut Eller; +Cc: 15782
> With the patch below it will look better, like so:
> (with-compilation-unit (:option1 foo
> :option2 bar)
> x)
Thanks, installed,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-04 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01 14:22 bug#15782: 24.3.50; common-lisp-indent-function for with-compilation-unit Helmut Eller
2013-11-04 19:51 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).