From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Porting from XEmacs to Emacs: event-glyph-extent Date: Mon, 02 Aug 2004 19:17:42 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091474513 22139 80.91.224.253 (2 Aug 2004 19:21:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2004 19:21:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 21:21:44 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BriNU-0002L9-00 for ; Mon, 02 Aug 2004 21:21:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BriQt-0000dx-OO for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Aug 2004 15:25:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1091474262 132.204.24.84 (Mon, 02 Aug 2004 15:17:42 EDT) Original-NNTP-Posting-Date: Mon, 02 Aug 2004 15:17:42 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:124614 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19947 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19947 > > (defun zeta-marker-activate (e) > > (interactive "e") > > (let ((m (event-glyph-extent e)) act) > > (if (and m (setq act (extent-property m 'zeta-marker-action))) > > (funcall act m) > > (mouse-set-point e)))) > > "event-glyph-extent" seems to be problematic, at least my attempts to > > emulate this in GNU Emacs (with constructs like "overlays-at > > (event-start e)") failed. Is this non-trivial or do I just missing > > something obvious? I think that using something like (overlays-at (posn-point (event-start e))) should be workable. It's probably easier to just put a `keymap' property on the overlay, tho (same thing for XEmacs). Stefan