unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8130: 23.2; transient-rectangle-mode
@ 2011-02-27 11:35 Andrea Crotti
  2011-02-28  3:30 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Crotti @ 2011-02-27 11:35 UTC (permalink / raw)
  To: 8130

I would like to propose transient-rectangle-mode.  Working with
rectangles sometimes is a bit hard to understand what exactly the
boundaries of the rectangle are.

My idea was to give a slightly different face to the part of the
buffer which is highlighted by transient-mode and also in the current
rectangle.

There are other modes for rectangle selection (cua-selection-mode for
example) but they involve using a different key combination, while
with transient-rectangle-mode I would like to use the same selection
mechanism.

Thanks,
Andrea Crotti





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

* bug#8130: 23.2; transient-rectangle-mode
  2011-02-27 11:35 bug#8130: 23.2; transient-rectangle-mode Andrea Crotti
@ 2011-02-28  3:30 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2011-02-28  3:30 UTC (permalink / raw)
  To: Andrea Crotti; +Cc: 8130

> I would like to propose transient-rectangle-mode.  Working with
> rectangles sometimes is a bit hard to understand what exactly the
> boundaries of the rectangle are.

Yes, that would be good.  I think the best way to go about doing it is
to move the highlighting of the region to Elisp code.
One element to doing it would be to add a pre-redisplay-hook of some
sort which could update a "region overlay" (move its beg and end to
region-beginning and region-end), at which point it should be reasonably
easy to make the region appear any other way (e.g. as a rectangle or
a combination of the two as you suggest).


        Stefan





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

end of thread, other threads:[~2011-02-28  3:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-27 11:35 bug#8130: 23.2; transient-rectangle-mode Andrea Crotti
2011-02-28  3:30 ` Stefan Monnier

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).