emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] planner-bookmark.el


From: Dryice Liu
Subject: Re: [emacs-wiki-discuss] planner-bookmark.el
Date: Thu, 16 Dec 2004 22:14:16 +0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix)

Dryice Liu <address@hidden> wrote:

> Thanks Frederik for the great idea of integrating bookmark.el to
> planner. The good thing is I only need to take care of the URL
> handling, and bookmark.el will take care of the rest :)
>
> Attached is the code. Note this is my second lisp (see, I'm growing :))
> so welcome and comments :)

Hmmm, there's a good chance that there's space in the bookmark
name. So I should use planner-make-link instead make the link myself:

======================================================================
--- planner-bookmark.el.orig    Thu Dec 16 22:10:45 2004
+++ planner-bookmark.el Thu Dec 16 22:07:48 2004
@@ -84,11 +84,11 @@
                               bookmark-name))
     (if (and bookmark-annotation (string-equal bookmark-annotation ""))
        (setq bookmark-annotation nil))
-    (concat "[[bookmark://" bookmark-name "][" 
-           (if bookmark-annotation
-               bookmark-annotation
-             bookmark-name)
-           "]]")))
+    (planner-make-link
+     (concat "bookmark://" bookmark-name)
+     (if bookmark-annotation
+        bookmark-annotation
+       bookmark-name))))
 
 ;;;###autoload
 (defun planner-bookmark-browse-url (url)
======================================================================

-- 
Cheers,
Dryice

http://dryice.3322.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]