bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43329: 28.0.50; Incorrect indentation for variables starting with `d


From: Lars Ingebrigtsen
Subject: bug#43329: 28.0.50; Incorrect indentation for variables starting with `def' in let form
Date: Fri, 11 Sep 2020 12:26:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> writes:

> In the scratch buffer, enter
>
> (let ((defa
>        foo)))
>
> and reindent the second line.  Emacs will insert an additional space
> before `foo' so that the `f' is now below the `e'.  This seems to happen
> only for variables starting with `def' (but not `def' itself).

Yes, the Emacs Lisp indentation machinery assumes that everything that
starts with "def" is a macro that defines something.  That's pretty
quirky, but it's been that way since forever, so it's probably too late
to do something about that now.

It should, however, be possible to do something about this in a `let'
form, you'd think.  But I've tried to find the place where this happens
(I was looking at it just the other day!), but my grep skills fail me.

Anybody remember which function this happens in?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]