all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
@ 2013-11-03  2:41 Jambunathan K
  2013-11-04  3:07 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2013-11-03  2:41 UTC (permalink / raw)
  To: 15796


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@gnu.org-20131030102316-8vif7u6ecyo3yieg
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 6.0.5 (squeeze)






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

* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
  2013-11-03  2:41 bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs Jambunathan K
@ 2013-11-04  3:07 ` Stefan Monnier
  2013-11-04  6:53   ` Jambunathan K
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-11-04  3:07 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 15796-done

>     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





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

* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
  2013-11-04  3:07 ` Stefan Monnier
@ 2013-11-04  6:53   ` Jambunathan K
  2013-11-04 14:01     ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2013-11-04  6:53 UTC (permalink / raw)
  To: 15796

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

Stefan Monnier <monnier@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...


[-- Attachment #2: rectangle-mark-take-2.png --]
[-- Type: image/png, Size: 19391 bytes --]

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

* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
  2013-11-04  6:53   ` Jambunathan K
@ 2013-11-04 14:01     ` Stefan Monnier
  2013-11-04 14:30       ` Jambunathan K
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2013-11-04 14:01 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 15796

> 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





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

* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
  2013-11-04 14:01     ` Stefan Monnier
@ 2013-11-04 14:30       ` Jambunathan K
  2013-11-04 16:37         ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2013-11-04 14:30 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 15796

Stefan Monnier <monnier@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.





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

* bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs
  2013-11-04 14:30       ` Jambunathan K
@ 2013-11-04 16:37         ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2013-11-04 16:37 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 15796

> 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





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

end of thread, other threads:[~2013-11-04 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-03  2:41 bug#15796: 24.3.50; rectangle-mark: Display issues in presence of TABs Jambunathan K
2013-11-04  3:07 ` Stefan Monnier
2013-11-04  6:53   ` Jambunathan K
2013-11-04 14:01     ` Stefan Monnier
2013-11-04 14:30       ` Jambunathan K
2013-11-04 16:37         ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.