GNU bug report logs - #78262
30.1; comint-delchar-or-maybe-eof doesn't respect delete-active-region

Previous Next

Package: emacs;

Reported by: Sebastián Monía <sebastian <at> sebasmonia.com>

Date: Mon, 5 May 2025 14:45:02 UTC

Severity: normal

Merged with 73527

Found in versions 30.1, 30.0.90

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: sebastian <at> sebasmonia.com, monnier <at> iro.umontreal.ca, 78262 <at> debbugs.gnu.org
Subject: Re: bug#78262: 30.1; comint-delchar-or-maybe-eof doesn't respect
 delete-active-region
Date: Sun, 11 May 2025 22:40:33 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  sebastian <at> sebasmonia.com,
>   78262 <at> debbugs.gnu.org
> Date: Sun, 11 May 2025 20:53:17 +0300
> 
> >> PS: this still requires
> >>
> >>   (put 'comint-delchar-or-maybe-eof 'delete-selection 'supersede)
> >>
> >> that could be added later.
> >
> > Hmm... sorry my `delete-selection`-fu is rusty, what would this
> > do/fix, again?
> 
> This is a copy from delsel.el
> 
>   ;; delete-backward-char and delete-forward-char already delete the selection by
>   ;; default, but not delete-char.
>   (put 'delete-char 'delete-selection 'supersede)
> 
> that will do the same for 'comint-delchar-or-maybe-eof'
> that uses 'delete-char' by default.

And that's why I questioned the wisdom of doing this.  Deleting the
entire active region is a dangerous operation, and users who don't
expect that will be extremely annoyed, I'm afraid.




This bug report was last modified 65 days ago.

Previous Next


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