From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: The display margin Date: 28 Nov 2003 00:08:36 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16080.60869.212521.952911@nick.uklinux.net> <200305251636.h4PGa1ll021935@rum.cs.yale.edu> <16082.42589.935105.932019@nick.uklinux.net> <16321.14941.117864.117597@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069971203 16175 80.91.224.253 (27 Nov 2003 22:13:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2003 22:13:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Nov 27 23:13:20 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 1APUO0-0007rv-00 for ; Thu, 27 Nov 2003 23:13:20 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1APUO0-0004kM-00 for ; Thu, 27 Nov 2003 23:13:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1APVIX-0007in-BI for emacs-devel@quimby.gnus.org; Thu, 27 Nov 2003 18:11:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1APVIQ-0007i4-Kb for emacs-devel@gnu.org; Thu, 27 Nov 2003 18:11:38 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1APVHu-0007YE-A9 for emacs-devel@gnu.org; Thu, 27 Nov 2003 18:11:37 -0500 Original-Received: from [193.162.153.3] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.24) id 1APVHN-0007Ly-S0; Thu, 27 Nov 2003 18:10:33 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 1BA395EE213; Thu, 27 Nov 2003 23:09:06 +0100 (CET) Original-To: David Kastrup In-Reply-To: Original-Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:18176 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18176 David Kastrup writes: > The click information for GNU Emacs is quite insufficient, anyway. > XEmacs, as far as I can remember, can tell from an event what object > has been clicked on and what pixel relative to the object's origin > has been hit. I have just added this information to mouse clicks and two functions to access it: Function `posn-object' returns the object clicked on, either an image or a cons (string . pos), or nil if there is nothing special at the place where you click the mouse (use posn-point to look at that). Function `posn-object-x-y' return a cons (dx . dy) which is the pixel coordinates relative to the top left corner of the object (image or character) that you click on. In addition, the mouse cursor now changes to an arrow (rather than the text mouse cursor) when it hoovers above an image. Finally, when you use a block cursor, images are no longer shown in "negative" when your window cursor is a filled block cursor (only the border of the image is highlighted now). So clicking on an image no longer makes it "unreadable"... > I digress. Anyway, I want more information from clicks. At the > very least, the object they appeared on. What more do you want ? -- Kim F. Storm http://www.cua.dk