[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] lisp:// URLs (was: Re: bug report: emacs-wiki.el --
From: |
Vadim Nasardinov |
Subject: |
[emacs-wiki-discuss] lisp:// URLs (was: Re: bug report: emacs-wiki.el -- recognizing extended links) |
Date: |
Thu, 16 Dec 2004 17:40:34 -0500 |
User-agent: |
KMail/1.5.4 |
On Thursday 16 December 2004 17:07, Raymond Zeitler wrote:
> Valid protocol options can be mentioned as well: bbdb://,
> bookmark://, irc://, lisp://, etc
I hadn't been aware of lisp:// URLs until you mentioned them.
So, I looked up planner-lisp.el:
| ;;; Commentary:
|
| ;; This file allows you to launch interactive Emacs Lisp functions
| ;; from a planner page.
| ;;
| ;; Example:
| ;; [[lisp://plan][Plan]] will be rendered as "Plan". Selecting the link
| ;; will run the plan function interactively.
|
| ;;; Code:
|
| (require 'planner)
|
| ;;;###autoload
| (defun planner-lisp-browse-url (url)
| "If this is a LISP URL, jump to it."
| (when (string-match "^lisp:/*\\(.+\\)" url)
| (eval (read (concat "(call-interactively '" (match-string 1 url) ")")))
| t))
That looks like a pretty nifty hack, but I'm not sure what types of
thing one would use this for.
I'd appreciate it if someone enlightened me.
Thanks,
Vadim