emacs-devel
[Top][All Lists]
Advanced

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

Re: Suggested experimental test


From: Stefan Monnier
Subject: Re: Suggested experimental test
Date: Mon, 22 Mar 2021 16:54:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-03-22 20:52:19] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Maybe because it already says:
>>     To just insert a newline, use \\[electric-indent-just-newline].
> Not here (in Emacs 28)...

I guess this is a misunderstanding coming from:

    Perhaps the doc string of `RET' (i.e., `newline-and-indent' in most
    modes) should mention (and link to) to `C-o'?

RET is supposed to be bound to `newline` by default, pretty
much everywhere.  There are many modes which still bind RET to
`newline-and-indent`, but that's a historical accident that we should
fix because it disregards the user's choice to enable or disable
`electric-indent(-local)-mode`.

The docstring of `newline` (the thing bound to RET by default, AFAIC)
does include the line above, AFAICT.  I don't see a string need for
`newline-and-indent` to point to something else (like `open-line`) since
this is a command which should basically never be bound except by an
explicit choice of the end-user.


        Stefan




reply via email to

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