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: Eli Zaretskii <eliz <at> gnu.org>
Cc: ma.jiehong <at> gmail.com, 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 22:22:20 -0400
> How would such a rectangular highlighting behave when some of the text
> in the region is R2L and some L2R?  Will it select text in visual
> order or in logical (buffer) order?

The rectangle operations do not currently pay attention to this (they
work on logical order) and the highlighting would do the same since the
highlighting is there to make visible what the rectangle operations
would/will do.

> Anyway, doing this kind of stuff in Lisp is not trivial even if we
> disregard the bidirectional text issue, because variable-size fonts,
> double-width characters, composed characters, display strings, and
> other display atrocities complicate the 1:1 relation between buffer
> text and what's on the glass.

Similarly, variable-width fonts and stuff would not require more work in
the highlighting than in kill-rectangle.
I'm not saying they're not relevant, but as long as kill-rectangle
doesn't take them into account, the highlighting shouldn't either.


        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.