* bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list
@ 2016-03-24 16:39 Michael Heerdegen
2016-03-25 16:04 ` Kaushal Modi
2016-03-26 1:49 ` Michael Heerdegen
0 siblings, 2 replies; 4+ messages in thread
From: Michael Heerdegen @ 2016-03-24 16:39 UTC (permalink / raw)
To: 23108
Hello,
in emacs -Q, this expression:
--8<---------------cut here---------------start------------->8---
(let (from to
(temp-buffer (generate-new-buffer "temp")))
body
body)
--8<---------------cut here---------------end--------------->8---
is indented exactly as I pasted it here, e.g. in scratch or any
emacs-lisp-mode buffer. IMHO the `temp-buffer' binding should be
indented to the same column as `from'.
When I wrap `from' in parens (which doesn't change the semantic of the
expression), the indentation suddenly works as I expect.
Thanks,
Michael.
In GNU Emacs 25.0.92.5 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2016-03-23 built on drachen
Repository revision: c0165ea4d6ecf81db6728782c7322c311ee0a783
Windowing system distributor 'The X.Org Foundation', version 11.0.11802000
System Description: Debian GNU/Linux testing (stretch)
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
value of $LC_ALL: de_DE.utf8
value of $LC_COLLATE: C
value of $LC_TIME: C
value of $LANG: de_DE.utf8
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list
2016-03-24 16:39 bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list Michael Heerdegen
@ 2016-03-25 16:04 ` Kaushal Modi
2016-03-25 16:29 ` Dmitry Gutov
2016-03-26 1:49 ` Michael Heerdegen
1 sibling, 1 reply; 4+ messages in thread
From: Kaushal Modi @ 2016-03-25 16:04 UTC (permalink / raw)
To: 23108
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
I would also like to have a solution to this.
For now, I arrange my let bindings as follows:
--8<---------------cut here---------------start------------->8---
(let ((temp-buffer (generate-new-buffer "temp"))
from to)
body
body)
--8<---------------cut here---------------end--------------->8---
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 425 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list
2016-03-25 16:04 ` Kaushal Modi
@ 2016-03-25 16:29 ` Dmitry Gutov
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2016-03-25 16:29 UTC (permalink / raw)
To: Kaushal Modi, 23108
On 03/25/2016 06:04 PM, Kaushal Modi wrote:
> I would also like to have a solution to this.
>
> For now, I arrange my let bindings as follows:
Me too, on both counts.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list
2016-03-24 16:39 bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list Michael Heerdegen
2016-03-25 16:04 ` Kaushal Modi
@ 2016-03-26 1:49 ` Michael Heerdegen
1 sibling, 0 replies; 4+ messages in thread
From: Michael Heerdegen @ 2016-03-26 1:49 UTC (permalink / raw)
To: 23108
Michael Heerdegen <michael_heerdegen@web.de> writes:
> (let (from to
> (temp-buffer (generate-new-buffer "temp")))
> body
> body)
Hmm, `let' has just simply lisp-indent-function -> 1, so it seems the
list of bindings is not treated specially. Thus, in the above case you
get an indentation like for a function call.
Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-26 1:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24 16:39 bug#23108: 25.0.92; emacs-lisp-mode: wrong indentation in `let' binding list Michael Heerdegen
2016-03-25 16:04 ` Kaushal Modi
2016-03-25 16:29 ` Dmitry Gutov
2016-03-26 1:49 ` Michael Heerdegen
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).