From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: Feature request: custom link handlers Date: Fri, 30 Nov 2007 15:01:41 +0000 Message-ID: <87mysvg4kq.fsf@bzg.ath.cx> References: <87wsrzkiim.fsf@bzg.ath.cx> <873aunj0gz.fsf@bzg.ath.cx> <87lk8fhlbc.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy7NE-0004us-Py for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 10:01:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy7NC-0004to-R3 for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 10:01:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy7NC-0004tl-87 for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 10:01:46 -0500 Received: from ug-out-1314.google.com ([66.249.92.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy7NB-00035T-Fm for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 10:01:45 -0500 Received: by ug-out-1314.google.com with SMTP id a2so2149491ugf for ; Fri, 30 Nov 2007 07:01:44 -0800 (PST) In-Reply-To: (Tom Weissmann's message of "Fri, 30 Nov 2007 14:44:17 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Tom Weissmann writes: > Bastien altern.org> writes: > >> > I think what you are trying to achieve is better described as a new >> > hyperlink mechanism rather than an extension of abbrev links. >> >> Sorry, should read: "as a new hyperlink type"... > > Yes. But a cheap alternative is just to let abbrev link functions > return nil if they want to. I find this a bit confusing to use a function that expands an abbreviation only for its side effects. But maybe you can just tell your function to return a string: (defun org-link-abbrev-bookmark (bookmark) "Opens a bookmark in another window" (progn (bookmark-jump-other-window bookmark) "")) No? -- Bastien