GNU bug report logs -
#38013
[PATCH] Rectangular region selection with mouse
Previous Next
Reported by: Mattias Engdegård <mattiase <at> acm.org>
Date: Thu, 31 Oct 2019 23:11:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Mattias Engdegård <mattiase <at> acm.org>
> Date: Sun, 10 Nov 2019 14:49:11 +0100
> Cc: rudalics <at> gmx.at, 38013 <at> debbugs.gnu.org
>
> Or even simpler: assuming that STRETCH_GLYPHS are mostly tabs, we can treat them as image glyphs for 'remember_mouse_glyph' purposes. What about:
>
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -2572,7 +2572,7 @@ remember_mouse_glyph (struct frame *f, int gx, int gy, NativeRectangle *rect)
>
> if (g < end)
> {
> - if (g->type == IMAGE_GLYPH)
> + if (g->type == IMAGE_GLYPH || g->type == STRETCH_GLYPH)
Sorry for a late response.
Did you try this with stretch glyphs generated by the likes of
:align-to display 'space' properties? Also, what about stretch glyphs
generated by the display engine in R2L screen lines (you can get those
easily by visiting TUTORIAL.he: each line that has white space at its
left end has a stretch glyph there)?
IOW, it might be necessary to add more conditions here, and just the
mouse_movement_in_tab thingy you added in a later version might not be
enough. E.g., we may need a condition that verifies that this is a
TAB (should be easy by looking at glyph->object, I think).
This bug report was last modified 5 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.