From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Weissmann Subject: Feature request: custom link handlers Date: Fri, 30 Nov 2007 10:25:38 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy34I-0003a6-3s for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 05:25:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy34G-0003YL-HI for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 05:25:57 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy34G-0003Xv-Bt for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 05:25:56 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iy34F-0000DM-ST for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 05:25:56 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iy346-0003XB-4A for emacs-orgmode@gnu.org; Fri, 30 Nov 2007 10:25:46 +0000 Received: from mail2.siscog.pt ([195.22.30.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2007 10:25:46 +0000 Received: from trmsw by mail2.siscog.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Nov 2007 10:25:46 +0000 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 This is basically a request to be able to create custom link handlers. For example, my `org-link-abbrev-alist' is this: `(("wiki" . org-link-abbrev-wiki) ("bmk" . org-link-abbrev-bookmark) ("POA" . org-link-abbrev-poa)) Only one of these actually returns a link that Org mode can use: wiki returns a url. "bmk" opens a bookmark and "POA" opens another application; neither return anything, so using them raises an error message. One possibility would be to allow the link abbreviations to return two values: nil and a message. `org-link-abbrev-poa' could then return '(nil "Opening POA XYZ") and Org mode wouldn't fret about not receiving a null link, but simply display the message. Another possibility would be to create a door to add custom link handlers with custom completion - that way one could add bookmark links with minibuffer completion...