GNU bug report logs -
#18348
common-lisp-indent-function: undesirable indent of (back)quoted list
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Thu, 28 Aug 2014 22:05:01 UTC
Severity: minor
Tags: wontfix
Found in version 24.4.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 18348 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> In emacs-lisp-mode, do this:
>
> (set (make-local-variable 'lisp-indent-function)
> 'common-lisp-indent-function)
>
> In Emacs 20, this Emacs-Lisp sexp indents correctly (IMO) to this, using
> `C-M-q':
>
> (toto beg end
> `(foo ,bar
> keymap ,map
> mouse-face highlight
> help-echo "jjjjjjjjjjjjjjjjjjjj"))
>
> Starting with Emacs 22, it indents to this, which is bad (IMO):
>
> (toto beg end
> `(foo ,bar
> keymap ,map
> mouse-face highlight
> help-echo "jjjjjjjjjjjjjjjjjjjj"))
>
> If this is really what Emacs Dev prefers (why?), can you please let me
> know a simple way to get the Emacs 20 indentation instead?
I guess it looks extra awkward because of the strange way you add white
space, but I guess the mode interprets the `(foo bar ...) form as being
a function call-like structure instead of a list of pairs.
Funnily enough, if you use '(foo ,bar ...) it indents the way you want.
It seems awfully inconsistent to indent one way with ` and another way
with '.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.