From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: cyd@gnu.org, 7464@debbugs.gnu.org
Subject: bug#7464: 24.0.50; mouse highlighting vanishes upon unsplitting window
Date: Fri, 30 Mar 2012 12:10:05 +0300 [thread overview]
Message-ID: <8362dm1mky.fsf@gnu.org> (raw)
In-Reply-To: <87sjgqqxyz.fsf@escher.home>
> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: cyd@gnu.org, 7464@debbugs.gnu.org
> Date: Fri, 30 Mar 2012 10:44:52 +0200
>
> I tried to make a simple test case, but I think I still don't understand
> exactly what to do. I started my Athena build, in order to circumvent
> GTK+ interference with Emacs redisplay, under gdb with -Q, set a
> breakpoint at Fdelete_other_windows_internal, in Emacs switched to a new
> buffer, typed "test" at line 1, column 0 and then M-: (put-text-property
> (point-min) (point-max) 'mouse-face 'highlight). Then I typed C-x 2,
> put the mouse over the word "test", highlighting it, typed C-x 1 and
> proceeded in gdb thus:
> [...]
> 3631 int vpos = MATRIX_ROW_VPOS (row, desired_matrix);
> (gdb) p vpos
> $4 = 268435456
vpos is garbage because line 3631 was not yet executed, you stopped
_before_ it.
> 3655 changed_p |= update_window_line (w, vpos,
> (gdb) p vpos
> $6 = 0
> (gdb) n
> 3667 if (MATRIX_ROW_BOTTOM_Y (row) >= yb)
> (gdb) p vpos
> $7 = 0
> (gdb) p mouse_face_overwritten_p
> $8 = 0
Since you put the mouse highlighting on the 1st line of the window,
its vpos is zero, so the fact that the call to update_window_line
returned with mouse_face_overwritten_p set to zero means that the bug
is present. At this point, if you look at the Emacs display, is the
mouse highlighting still visible? I believe in the non-GTK build the
highlighting disappears when update_window_line is called for the line
with highlighting.
> At this point (vpos = 1) aren't we past the highlighted text?
In your example, we are past it when vpos is zero.
> Yet nothing has changed. What I am doing wrong?
I think you are in the wrong call to update_window_line (for another
window). At this point, type "continue" and repeat the above steps
when you are inside update_window_line again. I think this next call
to update_window_line is for the correct window.
next prev parent reply other threads:[~2012-03-30 9:10 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 14:57 bug#7464: 24.0.50; mouse highlighting vanishes upon unsplitting window Stephen Berman
2010-11-22 17:54 ` Eli Zaretskii
2010-11-22 19:17 ` Eli Zaretskii
2012-03-21 16:29 ` Chong Yidong
2012-03-21 17:52 ` Stephen Berman
2012-03-21 22:41 ` Stephen Berman
2012-03-22 3:55 ` Eli Zaretskii
2012-03-22 14:51 ` Stefan Monnier
2012-03-22 17:01 ` Stephen Berman
2012-03-22 17:05 ` Eli Zaretskii
2012-03-24 18:32 ` Eli Zaretskii
2012-03-24 21:46 ` Stephen Berman
2012-03-25 3:55 ` Eli Zaretskii
2012-03-25 12:57 ` Stephen Berman
2012-03-28 18:56 ` Eli Zaretskii
2012-03-29 7:57 ` Stephen Berman
2012-03-29 18:47 ` Eli Zaretskii
2012-03-29 22:56 ` Stephen Berman
2012-03-30 6:35 ` Eli Zaretskii
2012-03-30 8:44 ` Stephen Berman
2012-03-30 9:10 ` Eli Zaretskii [this message]
2012-03-30 11:08 ` Stephen Berman
2012-03-30 12:06 ` Eli Zaretskii
2012-03-30 19:35 ` Stephen Berman
2012-03-30 20:41 ` Eli Zaretskii
2012-03-30 23:09 ` Stephen Berman
2012-03-31 5:56 ` Eli Zaretskii
2012-03-31 14:01 ` Stephen Berman
2012-03-31 18:12 ` Eli Zaretskii
2012-03-30 7:43 ` Jan D.
2012-03-30 8:00 ` Eli Zaretskii
2012-03-30 8:45 ` Stephen Berman
2012-03-30 8:57 ` Eli Zaretskii
2012-03-30 12:20 ` Jan Djärv
2012-03-30 12:37 ` Stefan Monnier
2012-03-25 12:56 ` martin rudalics
2012-03-21 18:54 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8362dm1mky.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=7464@debbugs.gnu.org \
--cc=cyd@gnu.org \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.