emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom Weissmann <trmsw@yahoo.co.uk>
To: emacs-orgmode@gnu.org
Subject: Feature request: custom link handlers
Date: Fri, 30 Nov 2007 10:25:38 +0000 (UTC)	[thread overview]
Message-ID: <loom.20071130T100624-731@post.gmane.org> (raw)

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...

             reply	other threads:[~2007-11-30 10:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 10:25 Tom Weissmann [this message]
2007-11-30 12:46 ` Feature request: custom link handlers Bastien
2007-11-30 13:50   ` Tom Weissmann
2007-11-30 14:02     ` Bastien
2007-11-30 14:14       ` Bastien
2007-11-30 14:44         ` Tom Weissmann
2007-11-30 15:01           ` Bastien
2007-11-30 16:22             ` Tom Weissmann
2007-11-30 16:37               ` Tom Weissmann
2007-11-30 16:51                 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20071130T100624-731@post.gmane.org \
    --to=trmsw@yahoo.co.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).