unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70069: 30.0.50; kill-ring-deindent-mode kills too aggressively
@ 2024-03-29 12:22 Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; only message in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-29 12:22 UTC (permalink / raw)
  To: 70069; +Cc: Po Lu


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.







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-29 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-29 12:22 bug#70069: 30.0.50; kill-ring-deindent-mode kills too aggressively Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).