[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Console based mouse face highlighting.

From: Eli Zaretskii
Subject: Re: [PATCH] Console based mouse face highlighting.
Date: Sun, 13 May 2007 07:41:30 +0300

> From: Nick Roberts <address@hidden>
> Date: Sun, 13 May 2007 16:19:05 +1200
> Cc: address@hidden
>   -rw-r--r--  1 nickrob nickrob    22289 2007-04-23 05:00 abbrev.c
>   -rw-r--r--  1 nickrob nickrob   185308 2007-05-09 23:02 abbrev.o
>   -rw-r--r--  1 nickrob nickrob     1311 2007-02-11 11:34 acldef.h
>   -rw-r--r--  1 nickrob nickrob    14768 2004-01-31 06:10 alloca.c
> The filenames have mouse face highlighting.

Does the highlight show when you move the mouse pointer above any of
these names?

> If I click on acldef.h

Why do you need to click?  Mouse highlight is supposed to happen
without any need to click.

> then the text "alloca.c" might appear after abbrev.c, say, with the
> mouse face overlay (green background, black foreground)

When you say ``after abbrev.c'', do you mean immediately to the right
of abbrev.c, or do you mean below abbrev.c, in the line occupied by
abbrev.o above?

> Perhaps some of my glyph row/column calculations are a bit wrong.

It sounds like that.  If you turn on termscript, you will see the
exact commands that are sent to the terminal driver.  You will then be
able to compare the positioning used in the initial display of the
buffer with the positions you use when you generate highlighted

>  > > 2) After a call to write_glyphs, does the cursor position move?
>  > 
>  > I'm not sure.  Why is this important?  Anyway, Emacs always
>  > repositions the cursor at point at redisplay end.
> I've not considered the cursor up till now and it sometimes seems to jump
> around (but perhaps I'm confusing the cursor with the pointer, which are the
> same shape with Gpm).

Again, termscript will show you what cursor-positioning commands are
sent.  Also, I think the text cursor is switched off during the entire
redisplay (and you probably should turn it off when you generate
highlight, if you didn't already).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]