emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Org Linking to Bookmark [+]


From: Drew Adams
Subject: Re: [O] Org Linking to Bookmark [+]
Date: Wed, 11 Feb 2015 06:46:50 -0800 (PST)

>      (defun org-bmkp-store-link ()
>        "Store a link to a bmkp bookmark."
>        (when (memq major-mode '(bookmark-bmenu-mode))
>          (let* ((bookmark (org-bmkp-get-bookmark-name))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                          |
                                          v
                             (bookmark-bmenu-bookmark)

It looks like you are trying to get the name of the bookmark at
point in buffer `*Bookmark List*'.  To do that, just evaluate
(bookmark-bmenu-bookmark).

For Bookmark+, if you pass that function a non-nil arg then you
get the full bookmark record, not just the name.  (But anyway,
most bookmark functions accept either the name or the bookmark.)

(No relation with Org links, but you can also create simple, 
non-persistent bookmark links using `bmkp-insert-bookmark-link'.
Dunno whether that will help with what you want to do.
http://www.emacswiki.org/emacs/BookmarkPlus#BookmarkLinks)



reply via email to

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