GNU bug report logs - #46296
28.0.50; indent-rigidly inserts newline when exiting with RET

Previous Next

Package: emacs;

Reported by: Tomas Nordin <tomasn <at> posteo.net>

Date: Thu, 4 Feb 2021 14:45:01 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in versions 28.1, 27.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tomas Nordin <tomasn <at> posteo.net>
Cc: 46296 <at> debbugs.gnu.org
Subject: bug#46296: 28.0.50; indent-rigidly inserts newline when exiting with RET
Date: Thu, 04 Feb 2021 17:35:00 +0200
> From: Tomas Nordin <tomasn <at> posteo.net>
> Date: Thu, 04 Feb 2021 15:43:23 +0100
> 
> emacs -Q /tmp/indent.me
> 
> Insert the following
> 
> wording1
> wording2
> 
> Move point to beginning of wording1, C-SPC, move to end of wording2. Say
> C-x TAB, hit <right> two times or something, RET. A newline is
> inserted. The doc of 'indent-rigidly' gives me the impression that any
> key other than <left> and friends should just exit the mode.
> 
> Seems like a bug to me but I am not sure.

I think it's a documentation bug.  The manual says:

  Typing any other key disables the transient mode, and resumes normal
  editing.                                          ^^^^^^^^^^^^^^^^^^
  ^^^^^^^

So I think this means that any other character terminates the mode and
is acted upon.  We can clarify this in the docs.




This bug report was last modified 4 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.