From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Reducing mouse-dependency In Emacs. Date: Wed, 13 Aug 2003 07:59:37 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200308131259.h7DCxbI22580@raven.dms.auburn.edu> References: <200308130536.h7D5avD22390@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060780156 28383 80.91.224.253 (13 Aug 2003 13:09:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2003 13:09:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Aug 13 15:09:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mvNK-0007re-00 for ; Wed, 13 Aug 2003 15:09:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19mvNR-0000Mq-00 for ; Wed, 13 Aug 2003 15:09:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mvLh-0006bK-PU for emacs-devel@quimby.gnus.org; Wed, 13 Aug 2003 09:07:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19mvKF-0004cS-E8 for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:06:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19mvJD-00036L-C3 for emacs-devel@gnu.org; Wed, 13 Aug 2003 09:05:30 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mvFo-0008ID-Ak; Wed, 13 Aug 2003 09:01:28 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.9/8.12.9) with ESMTP id h7DD1QeQ012477; Wed, 13 Aug 2003 08:01:27 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h7DCxbI22580; Wed, 13 Aug 2003 07:59:37 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: miles@gnu.org In-reply-to: (message from Miles Bader on 13 Aug 2003 16:47:54 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15927 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15927 Miles Bader wrote: Luc Teirlinck 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.