GNU bug report logs -
#78262
30.1; comint-delchar-or-maybe-eof doesn't respect delete-active-region
Previous Next
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
View this message in rfc822 format
> From: Sebastián Monía <sebastian <at> sebasmonia.com>
> Cc: 78262 <at> debbugs.gnu.org
> Date: Thu, 08 May 2025 09:24:31 -0400
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
> >> But maybe there's a reason it works like this, and my limited comint
> >> usage misses the point.
> >
> > I'm not a frequent user of comint-derived modes, but is this indeed
> > consistent with what users expect from interactive shells? AFAIK,
> > shells don't support the notion of "active region" or
> > "delete-selection" or anything similar. Wouldn't this change in
> > behavior surprise people? Should we perhaps have it as an opt-in
> > behavior?
>
> Well, that is a good point.
> The counterargument (emmm from blogs and reddit :) so take it with a
> grain of salt) is that the point of running shells inside Emacs is to
> have all the same editing capabilities, combined with the shell.
>
> And another data point: I was suprised/annoyed that it didn't behave the
> same as any buffer.
>
> But there's no harm in putting the new behavior behing a new defcustom
> comint-delete-active-region?
Yes, that's what I meant by making it an opt-in behavior.
This bug report was last modified 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.