* Unified mouse-highlight code needs testing
@ 2010-11-06 8:56 Eli Zaretskii
2010-11-06 9:38 ` Jan Djärv
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2010-11-06 8:56 UTC (permalink / raw)
To: emacs-devel
I've committed a few minutes ago to the trunk revision 102261, which
unifies the mouse-highlight code for all sessions, including GUI
sessions and text terminals that support the mouse (GPM and MSDOS).
There's now only one set of note_FOO_highlight functions (in xdisp.c)
and their subroutines that determine which parts of the displayed text
should be highlighted. The only display-specific part is a single
function which actually draws a given glyph row in mouse-face.
I tested this on MS-Windows (as a representative of GUI sessions) and
on MSDOS. I don't have access to a system with GPM which actually has
a mouse, so I could only make sure it builds with GPM and runs
correctly without a mouse. I also made sure the X build compiles and
links.
Please test the new code on a TTY with GPM, on X, and on NS. On a TTY
with GPM, the immediate bonus from this unification is that now mode
line, header line, and overlays that specify mouse-face should all be
highlighted when the mouse hovers above them. The easiest way of
testing this is in Info: you have there the mode line, the header
line, and the bread crumbs which all specify mouse-face; these should
all work now.
It is also important to test this in a session that has both X and TTY
frames, especially if the TTY frame uses GPM.
Thanks in advance.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
2010-11-06 8:56 Unified mouse-highlight code needs testing Eli Zaretskii
@ 2010-11-06 9:38 ` Jan Djärv
2010-11-06 10:41 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Jan Djärv @ 2010-11-06 9:38 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Just some points, I'm still compiling.
As termchar.h now is a requrement because of MOUSE_HL_INFO, shouldn't lisp.h
or or frame.h include it? nsfont.m didn't and failed to compile (fixed now).
Isn't a name like Mouse_HLInfo explicitly against the GNU coding standards?
Quote: "Stick to lower case; reserve upper case for macros and enum constants,
and for name-prefixes that follow a uniform convention."
Jan D.
Eli Zaretskii skrev 2010-11-06 09.56:
> I've committed a few minutes ago to the trunk revision 102261, which
> unifies the mouse-highlight code for all sessions, including GUI
> sessions and text terminals that support the mouse (GPM and MSDOS).
> There's now only one set of note_FOO_highlight functions (in xdisp.c)
> and their subroutines that determine which parts of the displayed text
> should be highlighted. The only display-specific part is a single
> function which actually draws a given glyph row in mouse-face.
>
> I tested this on MS-Windows (as a representative of GUI sessions) and
> on MSDOS. I don't have access to a system with GPM which actually has
> a mouse, so I could only make sure it builds with GPM and runs
> correctly without a mouse. I also made sure the X build compiles and
> links.
>
> Please test the new code on a TTY with GPM, on X, and on NS. On a TTY
> with GPM, the immediate bonus from this unification is that now mode
> line, header line, and overlays that specify mouse-face should all be
> highlighted when the mouse hovers above them. The easiest way of
> testing this is in Info: you have there the mode line, the header
> line, and the bread crumbs which all specify mouse-face; these should
> all work now.
>
> It is also important to test this in a session that has both X and TTY
> frames, especially if the TTY frame uses GPM.
>
> Thanks in advance.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
2010-11-06 9:38 ` Jan Djärv
@ 2010-11-06 10:41 ` Eli Zaretskii
2010-11-06 12:15 ` Jan D.
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2010-11-06 10:41 UTC (permalink / raw)
To: Jan Djärv; +Cc: emacs-devel
> Date: Sat, 06 Nov 2010 10:38:46 +0100
> From: Jan Djärv <jan.h.d@swipnet.se>
> CC: emacs-devel@gnu.org
>
> As termchar.h now is a requrement because of MOUSE_HL_INFO, shouldn't lisp.h
> or or frame.h include it? nsfont.m didn't and failed to compile (fixed now).
Sorry for missing nsfont.m in my changes.
Did you need termchar.h because MOUSE_HL_INFO references
output_data.tty->display_info, or is there another issue?
As for your question, I don't think we require that a header be
included by another header if they always need to go together. We
already have other cases like this one: for example, termhooks.h uses
FRAME_X_P and FRAME_W32_P, but doesn't include frame.h where these are
defined.
That said, I have no objections to include termchar in frame.h, of
course, provided that it doesn't have unintended consequences.
> Isn't a name like Mouse_HLInfo explicitly against the GNU coding standards?
I had Display_Info as the model, but I can rename the typedef, of
course, if Stefan and Chong don't like this name.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
2010-11-06 10:41 ` Eli Zaretskii
@ 2010-11-06 12:15 ` Jan D.
0 siblings, 0 replies; 7+ messages in thread
From: Jan D. @ 2010-11-06 12:15 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii skrev 2010-11-06 11:41:
>> Date: Sat, 06 Nov 2010 10:38:46 +0100
>> From: Jan Djärv<jan.h.d@swipnet.se>
>> CC: emacs-devel@gnu.org
>>
>> As termchar.h now is a requrement because of MOUSE_HL_INFO, shouldn't lisp.h
>> or or frame.h include it? nsfont.m didn't and failed to compile (fixed now).
> Sorry for missing nsfont.m in my changes.
>
> Did you need termchar.h because MOUSE_HL_INFO references
> output_data.tty->display_info, or is there another issue?
No, thats it.
> As for your question, I don't think we require that a header be
> included by another header if they always need to go together. We
> already have other cases like this one: for example, termhooks.h uses
> FRAME_X_P and FRAME_W32_P, but doesn't include frame.h where these are
> defined.
>
Ok.
Jan D.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
@ 2010-11-15 6:36 MON KEY
2010-11-15 16:14 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: MON KEY @ 2010-11-15 6:36 UTC (permalink / raw)
To: emacs-devel, Eli Zaretskii
> I've committed a few minutes ago to the trunk revision 102261, which
> unifies the mouse-highlight code for all sessions, including GUI
> sessions and text terminals that support the mouse (GPM and MSDOS).
I'm consistently crashing Emacs built from trunk @ rev 102388 whenever
I mouse over regions with mouse highlighting face.
I've no idea if this is related but it seems so.
Unfortunately I'm unable to supply a proper backtrace right now.
--
/s_P\
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
2010-11-15 6:36 MON KEY
@ 2010-11-15 16:14 ` Eli Zaretskii
2010-11-15 18:34 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2010-11-15 16:14 UTC (permalink / raw)
To: MON KEY; +Cc: emacs-devel
> Date: Mon, 15 Nov 2010 01:36:39 -0500
> From: MON KEY <monkey@sandpframing.com>
>
> > I've committed a few minutes ago to the trunk revision 102261, which
> > unifies the mouse-highlight code for all sessions, including GUI
> > sessions and text terminals that support the mouse (GPM and MSDOS).
>
> I'm consistently crashing Emacs built from trunk @ rev 102388 whenever
> I mouse over regions with mouse highlighting face.
Ouch!
> I've no idea if this is related but it seems so.
> Unfortunately I'm unable to supply a proper backtrace right now.
Can you at least show a recipe for reproducing this starting with
"emacs -Q"?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unified mouse-highlight code needs testing
2010-11-15 16:14 ` Eli Zaretskii
@ 2010-11-15 18:34 ` Eli Zaretskii
0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2010-11-15 18:34 UTC (permalink / raw)
To: monkey, emacs-devel
> Date: Mon, 15 Nov 2010 18:14:35 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
>
> > Date: Mon, 15 Nov 2010 01:36:39 -0500
> > From: MON KEY <monkey@sandpframing.com>
> >
> > > I've committed a few minutes ago to the trunk revision 102261, which
> > > unifies the mouse-highlight code for all sessions, including GUI
> > > sessions and text terminals that support the mouse (GPM and MSDOS).
> >
> > I'm consistently crashing Emacs built from trunk @ rev 102388 whenever
> > I mouse over regions with mouse highlighting face.
>
> Ouch!
>
> > I've no idea if this is related but it seems so.
> > Unfortunately I'm unable to supply a proper backtrace right now.
>
> Can you at least show a recipe for reproducing this starting with
> "emacs -Q"?
Also, is that a GUI session that crashes, or a TTY with GPM?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-15 18:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-06 8:56 Unified mouse-highlight code needs testing Eli Zaretskii
2010-11-06 9:38 ` Jan Djärv
2010-11-06 10:41 ` Eli Zaretskii
2010-11-06 12:15 ` Jan D.
-- strict thread matches above, loose matches on Subject: below --
2010-11-15 6:36 MON KEY
2010-11-15 16:14 ` Eli Zaretskii
2010-11-15 18:34 ` Eli Zaretskii
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.