From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Reducing mouse-dependency In Emacs.
Date: Wed, 13 Aug 2003 07:59:37 -0500 (CDT) [thread overview]
Message-ID: <200308131259.h7DCxbI22580@raven.dms.auburn.edu> (raw)
In-Reply-To: <buo1xvqknh1.fsf@mcspd15.ucom.lsi.nec.co.jp> (message from Miles Bader on 13 Aug 2003 16:47:54 +0900)
Miles Bader wrote:
Luc Teirlinck <teirllm@dms.auburn.edu> writes:
> To take care of functional values, I need not only the value of the
> property but also need to know whether it was found in an overlay (and
> if so which overlay) or as a text property.
How come?
Because:
If the value of the `help-echo' property is a function, that
function is called with three arguments, WINDOW, OBJECT and
POSITION and should return a help string or NIL for none. The
first argument, WINDOW is the window in which the help was found.
The second, OBJECT, is the buffer, overlay or string which had
the
`help-echo' property. The POSITION argument is as follows:
* If OBJECT is a buffer, POS is the position in the buffer
where the `help-echo' text property was found.
* If OBJECT is an overlay, that overlay has a `help-echo'
property, and POS is the position in the overlay's buffer
under the mouse.
* If OBJECT is a string (an overlay string or a string
displayed
with the `display' property), POS is the position in that
string under the mouse.
I do not believe that in my case I need to worry about the string case
(unlike the mouse, point can not get "inside" a string given as a
value for the display property), but I do need to worry about the
buffer and overlay cases. I need to know which arguments to pass to
the function. In my case, WINDOW will be (selected-window) and
POSITION will be (point), but I need to know which value to pass for
OBJECT.
Sincerely,
Luc.
next prev parent reply other threads:[~2003-08-13 12:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-13 5:36 Reducing mouse-dependency In Emacs Luc Teirlinck
2003-08-13 7:47 ` Miles Bader
2003-08-13 12:59 ` Luc Teirlinck [this message]
2003-08-13 22:56 ` Nick Roberts
2003-08-14 0:35 ` Luc Teirlinck
2003-08-14 1:42 ` Miles Bader
2003-08-14 1:04 ` Luc Teirlinck
2003-08-13 14:32 ` Luc Teirlinck
-- strict thread matches above, loose matches on Subject: below --
2003-08-12 2:49 Luc Teirlinck
2003-08-12 1:29 Luc Teirlinck
2003-08-12 1:43 ` Luc Teirlinck
2003-08-10 3:42 Luc Teirlinck
2003-08-10 6:08 ` Eli Zaretskii
2003-08-10 14:53 ` Luc Teirlinck
2003-08-11 12:53 ` Richard Stallman
2003-08-10 16:50 ` Stefan Monnier
2003-08-10 23:09 ` Luc Teirlinck
2003-08-11 4:05 ` Luc Teirlinck
2003-08-11 23:16 ` Richard Stallman
2003-08-11 6:04 ` Eli Zaretskii
2003-08-11 15:52 ` Luc Teirlinck
2003-08-11 17:52 ` Eli Zaretskii
2003-08-11 14:54 ` Stefan Monnier
2003-08-12 2:30 ` Luc Teirlinck
2003-08-12 6:28 ` Eli Zaretskii
2003-08-12 16:08 ` Luc Teirlinck
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=200308131259.h7DCxbI22580@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--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.