[Top][All Lists]

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

Re: Emacs 21 font issues and manual window manipulation.

From: Kevin A. Burton
Subject: Re: Emacs 21 font issues and manual window manipulation.
Date: 22 Oct 2001 00:13:35 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Hash: SHA1

Eli Zaretskii <address@hidden> writes:

> Similar (almost identical) feature exists already: see
> lisp/emacs-lisp/eldoc.el.  If you want to have the info pop in a tooltip,
> please consider extending eldoc.el and donating the diffs.

Ah yes.. I am aware.

I would like to have similar functionality but:

- - provide this for all major modes that enable it (initially this will be
  enabled for java and lisp).

- - use a tooltip so that your eyes don't have to look all the way to the bottom
  of the screen :)

> > This work in theory but there is no way for me to get an x-offset and
> > y-offset for the tooltip because Emacs doesn't provide any way for me to
> > find the x-offset and y-offset for the pointer.
> I think you don't need to.  See the doc string of x-show-tip: it says that if
> tooltip-frame-parameters alist includes `left' and `top' parameters, these
> parameters determine where the tooltip is popped.

Yes... but where do I get the integer value for left and top?

This is how I am currently trying to set the tooltip but I have no reliable way
to get these values. 

> > This pattern seems to be in a lot of places.  AKA there is no way to set the
> > frame width based on pixels.  The only way to set the frame width is to use
> > characters.
> > 
> > Does this bother anyone else?  Am I missing something?
> There are functions on the C level that convert between these two coordinate
> systems, but I don't see anything exported to Lisp.  Gerd, am I missing
> something?  If not, I guess no Lisp code needed to do these conversions until
> now.
> Adding this would be a simple matter of providing a Lisp wrapper around
> glyph_to_pixel_coords, I think.

I assume that on *NIX systems this is defined in xterm.c?

This is frame-relative and x-show-tip is display relative.  I need to get the
x,y coords for the point WRT the display.

> > Is this fixed in GNU Emacsen later than
> Note that Emacs 21.1 was just released.

yes..  I need to review the docs but hopefully the API hasn't changed much in
one month :)


BTW it is *REALLY* awesome to see this mailing list has been created :)


- -- 

   Need a good Engineer?  Hire me!  ( Java | P2P | XML | Linux | Open Source )

Kevin A. Burton address@hidden, address@hidden, address@hidden )
  Location: San Francisco, CA Cell: 415-595-9965 URL: http://relativity.yi.org 

Questions are the beginning of wisdom.
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt


reply via email to

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