[Top][All Lists]

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

Tooltipping enhancement request

From: Eric M. Ludlam
Subject: Tooltipping enhancement request
Date: Thu, 4 Mar 2004 13:17:12 -0500


  I've got four enhancement requests based on some tools I've been
writing.  I think some of you already are familiar with some stuff
I've been doing called "cedet" which you can read about here:


  A feature I've been working with lately is called "intellisense" in
other editors.  I thought it would be nifty to write something better.
I've opted to use an Emacs 21 tooltip to display completions.  Some of
that code was donated, and I had since attempted to fix some problems
I encountered.

  You can see a screenshot of what it should look like here:

http://cedet.sourceforge.net/intellisense.shtml    - page
http://cedet.sourceforge.net/inlinecompletion.png  - picture

  Here are the requests:

1) A function that takes a frame, window, and buffer position and
   returns an X/Y location on the screen that would allow
   accurate tooltip positioning.

At this time, a means of positioning the mouse pointer over a
particular character is used to then position the tool-tip.  That
requires that the mouse move.  In addition, things like header lines,
split windows, and toolbars seem to effect the accuracy of that

2) A means for accepting input from a tooltip (a strange idea)
   or a way to make a regular Emacs frame look like a tooltip.

The tooltip is pretty good for me.  I don't use the mouse much, but I
watch others use this feature in other editors, and they all like to
go clicky-clicky on the completion list.  I think it would help
mouse-bound users.

The tooltip part is important because a timer can cause Emacs to go
into this completion mode.  Splitting windows and moving the mouse
makes the feature difficult to accept.

Here are two other requests unrelated to tooltips:

3) A means of having an overline cross the entire window.

Also in the .png above, you can see some C definitions have a blue
line over them.  This overline is added to mimic a feature of IntelliJ
that has a thin line over all big functions, effectively dividing up
the buffer.  It is an interesting thought, which I quickly got used
to after implementing it.  It would be nice if that overline could
stretch across to the right side of the window to complete the effect.

4) Let multiple tools add header lines.

The mode line has had a means of management that lets different little
apps share it.  The header line does not.  I have a simple tools that
makes the function definition that is clipped at the top of the screen
appear in the header line.  I think it's pretty cool and quite
helpful.  That then conflicts with tabbar.  I had to turn it off in
the picture above because it changed how the tooltip was positioned.

The header line theme seems to be that tools use the entire line for
their purposes.  It would be nice if some official API made it easy
for apps that wish to use add a header line to be given something that
they can configure for their purposes without interfering with other
tools attempting to do the same thing.

Thanks for listening.

          Eric Ludlam:                 address@hidden, address@hidden
   Home: http://www.ludlam.net            Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net               GNU: www.gnu.org

reply via email to

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