GNU bug report logs - #12723
24.2; Improvement: changing text rectangle kill/past and its integration with the kill-ring

Previous Next

Package: emacs;

Reported by: Jiehong Ma <ma.jiehong <at> gmail.com>

Date: Wed, 24 Oct 2012 18:09:02 UTC

Severity: wishlist

Found in version 24.2

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jiehong Ma <ma.jiehong <at> gmail.com>
Cc: 12723 <at> debbugs.gnu.org
Subject: bug#12723: 24.2; Improvement: changing text rectangle kill/past and its integration with the kill-ring
Date: Wed, 24 Oct 2012 14:59:22 -0400
> In the following, I would like to present how I think it would be
> nicer, and also more accessible to users.

100% agreement.  That's exactly how I want it to work, as well.

More specifically, I'd expect `mark-active' to take a special
`rectangle' value to mean that the current selection is
a rectangular region.

Also, I'd expect the rectangular highlighting to be done by moving the
region-highlighting code to Elisp (using the previously-mentioned
but vaporware before-redisplay-hook).

As for how to store the rectangles on the kill-ring, I haven't really
thought about it yet.  We could maybe store them as strings with
a special text-property annotation, or as lists of strings, or as a cons
cell (rectange . STRING).  The first option is probably best
compatibility-wise, while the second would be a step in the direction of
supporting general non-contiguous regions.


        Stefan




This bug report was last modified 12 years and 233 days ago.

Previous Next


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