unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Masatake YAMATO <jet@gyve.org>
Subject: feature request: tooltip-show-at-point
Date: Fri, 05 Mar 2004 16:31:50 +0900 (JST)	[thread overview]
Message-ID: <20040305.163150.205306604.jet@gyve.org> (raw)

With tooltip I'd like to show the eldoc's output at the point, not 
at the echo area. I wrote a patch for the purpose.
The main part of the patch is the following function:

(require 'avoid)
(defun eldoc-tooltip (text)
  (let* ((P (mouse-avoidance-point-position))
	 (frame (car P))
	 (x (cadr P))
	 (y (cddr P))
	 (oP (mouse-position))
	 (oframe (car oP))
	 (ox     (cadr oP))
	 (oy     (cddr oP)))
    (set-mouse-position frame x y)
    (tooltip-show text)
    (set-mouse-position oframe ox oy)))
(eldoc-tooltip "California, here I am.")

This function works, however too slow to follow the point motion 
in real time. How do you think to provide a built-in function which
show the tooltip at point?

Regards
Masatake YAMATO

             reply	other threads:[~2004-03-05  7:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-05  7:31 Masatake YAMATO [this message]
2004-03-08 21:05 ` feature request: tooltip-show-at-point Miles Bader
2004-03-10  5:36   ` Masatake YAMATO
2004-03-11  7:00   ` Masatake YAMATO
2004-03-09  6:24 ` Eli Zaretskii

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=20040305.163150.205306604.jet@gyve.org \
    --to=jet@gyve.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).