From: David PONCE <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: Re: `posn-at-point' and `posn-at-x-y' not in manual
Date: Fri, 4 Jun 2004 16:37:08 +0200 (CEST) [thread overview]
Message-ID: <6581542.1086359828010.JavaMail.www@wwinf0603> (raw)
Masatake YAMATO wrote:
>>Of course! Thanks!
>>As an example, here is an implementation of a `set-mouse-at-point'
>>function that seems to work very well :-)
>
>
> How about tooltip?
> Doctor, please show a sample. People wish your epiphany:-)
>
Here it is:
(defun tooltip-show-at-point (text)
"Display a tooltip with TEXT near cursor."
(let* ((oP (mouse-pixel-position))
(tooltip-x-offset 0)
(tooltip-y-offset (- (frame-char-height))))
(set-mouse-at-point)
(tooltip-show text)
(set-mouse-pixel-position (nth 0 oP) (nth 1 oP) (nthcdr 2 oP))
))
David
next reply other threads:[~2004-06-04 14:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-04 14:37 David PONCE [this message]
2004-06-04 16:53 ` `posn-at-point' and `posn-at-x-y' not in manual Masatake YAMATO
2004-06-04 17:11 ` Masatake YAMATO
-- strict thread matches above, loose matches on Subject: below --
2004-06-07 10:14 David PONCE
2004-06-04 12:15 David PONCE
2004-06-04 12:23 ` Masatake YAMATO
2004-06-07 10:47 ` Kim F. Storm
2004-06-04 11:56 David PONCE
2004-06-04 12:10 ` David Kastrup
2004-06-05 13:49 ` Richard Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6581542.1086359828010.JavaMail.www@wwinf0603 \
--to=david.ponce@wanadoo.fr \
--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 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.