GNU bug report logs - #70069
30.0.50; kill-ring-deindent-mode kills too aggressively

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Fri, 29 Mar 2024 12:22:02 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 70069 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to luangruo <at> yahoo.com, bug-gnu-emacs <at> gnu.org:
bug#70069; Package emacs. (Fri, 29 Mar 2024 12:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Heerdegen <michael_heerdegen <at> web.de>:
New bug report received and forwarded. Copy sent to luangruo <at> yahoo.com, bug-gnu-emacs <at> gnu.org. (Fri, 29 Mar 2024 12:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; kill-ring-deindent-mode kills too aggressively
Date: Fri, 29 Mar 2024 13:22:19 +0100
Hi,

I had been editing in some minibuffer prompt opened by some dired
command and was at the front of two words like "foo bar".  I was
successively killing using `kill-word' and yanked the text back at some
other place but got "foobar" with inner word whitespace removed.  Took a
while until I found this was because of `kill-ring-deindent-mode' I had
enabled.

I know why it did that, technically, but: this is too much, too
surprising.  As I user I wonder: I was not editing a program, and where
was indentation to remove here at all?

Please consider to restrict the cases when the deindent functionality
kicks in.  Restrict it to programming modes, turn the mode into a local
mode, restrict for successive kills when it's obvious that we remove
whitespace from the middle of a one-line text, such things.  That would
be my suggestion.  Currently, the mode causes nasty unwanted side
effects so people will have to turn it off although they like the
idea in general.


Thanks for reading,

Michael.






This bug report was last modified 36 days ago.

Previous Next


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