GNU bug report logs - #15796
24.3.50; rectangle-mark: Display issues in presence of TABs

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sun, 3 Nov 2013 14:42:02 UTC

Severity: normal

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15796 in the body.
You can then email your comments to 15796 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15796; Package emacs. (Sun, 03 Nov 2013 14:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 03 Nov 2013 14:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; rectangle-mark: Display issues in presence of TABs
Date: Sun, 03 Nov 2013 08:11:02 +0530
24.3.50; rectangle-mark: Display issues

The actual report is here

    http://permalink.gmane.org/gmane.emacs.devel/164710



In GNU Emacs 24.3.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-10-30 on debian-6.05
Bzr revision: 114868 rgm <at> gnu.org-20131030102316-8vif7u6ecyo3yieg
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 6.0.5 (squeeze)





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Mon, 04 Nov 2013 03:08:02 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 Nov 2013 03:08:02 GMT) Full text and rfc822 format available.

Message #10 received at 15796-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 15796-done <at> debbugs.gnu.org
Subject: Re: bug#15796: 24.3.50;
 rectangle-mark: Display issues in presence of TABs
Date: Sun, 03 Nov 2013 22:07:50 -0500
>     http://permalink.gmane.org/gmane.emacs.devel/164710

I just installed a patch which fixes similar problems.  If you still see
such problems, please re-open and provide a recipe to reproduce it.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15796; Package emacs. (Mon, 04 Nov 2013 06:53:01 GMT) Full text and rfc822 format available.

Message #13 received at 15796 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: 15796 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: Re: bug#15796: 24.3.50;
 rectangle-mark: Display issues in presence of TABs
Date: Mon, 04 Nov 2013 12:23:15 +0530
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>>     http://permalink.gmane.org/gmane.emacs.devel/164710
>
> I just installed a patch which fixes similar problems.  If you still see
> such problems, please re-open and provide a recipe to reproduce it.

Looks OK.  But I do see a minor issue.

Same snippet as before.  See the attached screenshot.  The rectangle
spans zero characters on the horizontal axis.

With the selection in that state, move the cursor right or left by one
character.  The text or rather the display moves.  It is disconcerting
to see the movement.  I count this as a bug.  WDYT...

[rectangle-mark-take-2.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15796; Package emacs. (Mon, 04 Nov 2013 14:02:02 GMT) Full text and rfc822 format available.

Message #16 received at 15796 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 15796 <at> debbugs.gnu.org
Subject: Re: bug#15796: 24.3.50;
 rectangle-mark: Display issues in presence of TABs
Date: Mon, 04 Nov 2013 09:01:15 -0500
> With the selection in that state, move the cursor right or left by one
> character.  The text or rather the display moves.  It is disconcerting
> to see the movement.  I count this as a bug.  WDYT...

In order to *display* the zero-width rectangle, I have to add
a (display-only) thin space, which does shift the rest of the text by
a few pixels.

We could make it customizable: either you see the zero-width rectangle
and you live with the corresponding "display moves", or you don't see
the zero-width rectangle.

Of course, there might be other ways to represent the rectangle that
don't suffer from this problem (e.g. only highlight the position of the
mark, but not the line between the mark and point).  If the display
engine offered a way to overlay (rather than insert) glyphs/graphics, we
would have more options.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15796; Package emacs. (Mon, 04 Nov 2013 14:32:03 GMT) Full text and rfc822 format available.

Message #19 received at 15796 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15796 <at> debbugs.gnu.org
Subject: Re: bug#15796: 24.3.50;
 rectangle-mark: Display issues in presence of TABs
Date: Mon, 04 Nov 2013 20:00:58 +0530
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> If the display engine offered a way to overlay (rather than insert)
> glyphs/graphics, we would have more options.

I thought that this facility already existed.  (I had a vague impression
that the `compose-region' and `reference-point-alist' helped one overlay
one glyph over the other)

Thanks for the note.

I am happy with the current state of affairs.  It is an improvement
already.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15796; Package emacs. (Mon, 04 Nov 2013 16:38:02 GMT) Full text and rfc822 format available.

Message #22 received at 15796 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 15796 <at> debbugs.gnu.org
Subject: Re: bug#15796: 24.3.50;
 rectangle-mark: Display issues in presence of TABs
Date: Mon, 04 Nov 2013 11:37:06 -0500
> I thought that this facility already existed.  (I had a vague impression
> that the `compose-region' and `reference-point-alist' helped one overlay
> one glyph over the other)

Indeed, compose-region lets us do that, so maybe we could cobble up
something with it.  But it's not straightforward.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Dec 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 258 days ago.

Previous Next


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