From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Porting from XEmacs to Emacs: event-glyph-extent Date: Sun, 01 Aug 2004 15:47:29 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <864qnnc6mm.fsf@ketchup.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091368274 20388 80.91.224.253 (1 Aug 2004 13:51:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2004 13:51:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 01 15:51:06 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 1BrGjy-0004O8-00 for ; Sun, 01 Aug 2004 15:51:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrGnJ-0004aZ-76 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Aug 2004 09:54:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BrGnC-0004aK-9x for help-gnu-emacs@gnu.org; Sun, 01 Aug 2004 09:54:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BrGnA-0004a8-Qp for help-gnu-emacs@gnu.org; Sun, 01 Aug 2004 09:54:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrGnA-0004a5-O5 for help-gnu-emacs@gnu.org; Sun, 01 Aug 2004 09:54:24 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BrGjW-0001TR-4m for help-gnu-emacs@gnu.org; Sun, 01 Aug 2004 09:50:38 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BrGjV-0004Gb-00 for ; Sun, 01 Aug 2004 15:50:37 +0200 Original-Received: from pd951fbb6.dip.t-dialin.net ([217.81.251.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Aug 2004 15:50:37 +0200 Original-Received: from kai by pd951fbb6.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Aug 2004 15:50:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd951fbb6.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:67sPbtIRUTJ8NlULc4AkrP7Uf84= 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:19915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19915 "Achim D. Brucker" writes: > (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? Perhaps it is better to use text properties? Those will move with the text. The code snippet looks very interesting, btw. What does the code do that you are trying to port? Kai