unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52086: 27.2; `C-w' should kill active rectangular region (aka rectangle)
@ 2021-11-25  2:10 Drew Adams
  2021-11-25  2:17 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2021-11-25  2:10 UTC (permalink / raw)
  To: 52086

If use C-x SPC, to activate the rectangular region, commands that act on
that active region should, I think, generally act on the selected text,
that is, the text in the rectangle.

`C-w' doesn't do that.  Instead, it kills the text in the region between
point and mark - all of it, including text that is not selected (not
part of the active, rectangular region.

(Yes, there is also `C-x r k', but that acts on a rectangle regardless
of whether the region is active.  It's another way to kill a rectangle.)

I'd call this a bug.  You might see it as an enhancement request.  To
me, it's what users expect, and it's the only behavior consistent with
what users see and the notion of active rectangular region.  `C-w'
should be no different from, say, the replacement commands, when the
region is "noncontiguous".

And we should look out for other possible, similar holdovers: commands
that act on the active region, but don't respect rectangular bounds.

In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1288)






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52086: 27.2; `C-w' should kill active rectangular region (aka rectangle)
  2021-11-25  2:10 bug#52086: 27.2; `C-w' should kill active rectangular region (aka rectangle) Drew Adams
@ 2021-11-25  2:17 ` Drew Adams
  2021-11-25  2:27   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2021-11-25  2:17 UTC (permalink / raw)
  To: Drew Adams, 52086

Oops. never mind.  I was seeing this bug in Emacs 26.3.
But it was fixed in Emacs 27.  I'll close this.






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52086: 27.2; `C-w' should kill active rectangular region (aka rectangle)
  2021-11-25  2:17 ` Drew Adams
@ 2021-11-25  2:27   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2021-11-25  2:27 UTC (permalink / raw)
  To: 52086

> Oops. never mind.  I was seeing this bug in Emacs 26.3.
> But it was fixed in Emacs 27.  I'll close this.

I was doubly mistaken.  There's no bug in Emacs 26.3 either.  I wasn't using emacs -Q.  Sorry for the noise.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-25  2:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25  2:10 bug#52086: 27.2; `C-w' should kill active rectangular region (aka rectangle) Drew Adams
2021-11-25  2:17 ` Drew Adams
2021-11-25  2:27   ` Drew Adams

Code repositories for project(s) associated with this 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).