Subject: Re: bug#18348: 24.4.50; `common-lisp-indent-function'

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 09 Oct 2019 03:21:59 +0200

Drew Adams <[email-masked]> 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