emacs-devel
[Top][All Lists]
Advanced

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

Re: Suggested experimental test


From: Lars Ingebrigtsen
Subject: Re: Suggested experimental test
Date: Mon, 22 Mar 2021 22:04:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> 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`.

And I had a

(global-set-key "\C-m" 'newline-and-indent)

at 3% in my .emacs file, which makes about 15 years old, I think, and I
had no idea that it was there.

> 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.

This end user had no recollection of doing so, so I think it still makes
sense to point to `C-o' here.

-- 
(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]