From: Juri Linkov <juri@jurta.org>
Cc: eliz@gnu.org, czkmt@remus.dti.ne.jp, emacs-devel@gnu.org
Subject: Re: tooltip can be displayed outside the screen
Date: Thu, 15 Dec 2005 11:28:15 +0200 [thread overview]
Message-ID: <87k6e6myqw.fsf@jurta.org> (raw)
In-Reply-To: <43A08825.8070704@swipnet.se> (Jan Djärv's message of "Wed, 14 Dec 2005 22:01:25 +0100")
>> One idea that came to me is that negative offsets could be interpreted
>> as absolute distances between the X (Y) position of the mouse and the
>> right (bottom) border of the tooltip frame (and to leave positive offsets
>> relative to the left (top) border as they work now). This way no matter
>> what values offsets will have, the tooltip frame will never cover the mouse
>> pointer. And this will work exactly the same way as currently calculations
>> behave to avoid the tooltip displayed outside the screen (i.e. negating the
>> interpretation of offsets to opposite sides of the tooltip frame).
>
> That seems to complicated. I just fixed so negative offsets is handeled OK.
OK.
BTW, I think current docstrings are not clear. I propose to change
them as below:
Index: lisp/tooltip.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/tooltip.el,v
retrieving revision 1.70
diff -c -r1.70 tooltip.el
*** lisp/tooltip.el 12 Dec 2005 09:36:22 -0000 1.70
--- lisp/tooltip.el 15 Dec 2005 09:27:14 -0000
***************
*** 96,104 ****
(defcustom tooltip-x-offset 5
"X offset, in pixels, for the display of tooltips.
! The offset is relative to the position of the mouse. It must
! be chosen so that the tooltip window doesn't contain the mouse
! when it pops up.
If `tooltip-frame-parameters' includes the `left' parameter,
the value of `tooltip-x-offset' is ignored."
--- 98,106 ----
(defcustom tooltip-x-offset 5
"X offset, in pixels, for the display of tooltips.
! The offset is the distance between the X position of the mouse and
! the left border of the tooltip frame. It must be chosen so that the
! tooltip window doesn't contain the mouse when it pops up.
If `tooltip-frame-parameters' includes the `left' parameter,
the value of `tooltip-x-offset' is ignored."
***************
*** 108,116 ****
(defcustom tooltip-y-offset +20
"Y offset, in pixels, for the display of tooltips.
! The offset is relative to the position of the mouse. It must
! be chosen so that the tooltip window doesn't contain the mouse
! when it pops up.
If `tooltip-frame-parameters' includes the `top' parameter,
the value of `tooltip-y-offset' is ignored."
--- 110,118 ----
(defcustom tooltip-y-offset +20
"Y offset, in pixels, for the display of tooltips.
! The offset is the distance between the Y position of the mouse and
! the top border of the tooltip frame. It must be chosen so that the
! tooltip window doesn't contain the mouse when it pops up.
If `tooltip-frame-parameters' includes the `top' parameter,
the value of `tooltip-y-offset' is ignored."
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-12-15 9:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3sltjuvd6.fsf@czkmt.remus.dti.ne.jp>
2005-11-27 3:28 ` tooltip can be displayed outside the screen Richard M. Stallman
2005-11-27 4:55 ` Tetsuo Tsukamoto
2005-11-27 22:34 ` Richard M. Stallman
2005-12-02 14:58 ` Jan D.
2005-12-02 18:33 ` Eli Zaretskii
2005-12-02 21:04 ` Juri Linkov
2005-12-03 14:21 ` Jan Djärv
2005-12-06 0:52 ` Juri Linkov
2005-12-12 10:25 ` Jan D.
2005-12-14 7:54 ` Juri Linkov
2005-12-14 21:01 ` Jan Djärv
2005-12-15 9:28 ` Juri Linkov [this message]
2005-12-16 1:52 ` Richard M. Stallman
2005-12-16 9:03 ` Juri Linkov
2005-12-17 1:04 ` Richard M. Stallman
2005-12-17 10:48 ` GC garbles menu items (was: tooltip can be displayed outside the screen) Juri Linkov
2005-12-18 0:00 ` Richard M. Stallman
2005-12-20 21:54 ` GC garbles menu items Juri Linkov
2005-12-22 5:47 ` Richard M. Stallman
2005-12-22 20:48 ` Juri Linkov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k6e6myqw.fsf@jurta.org \
--to=juri@jurta.org \
--cc=czkmt@remus.dti.ne.jp \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).