From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-bookmark.el Date: Thu, 28 Feb 2008 15:04:53 +0000 Message-ID: <87fxvdi0kq.fsf@bzg.ath.cx> References: <87ir0ajrol.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUkJj-0007Hd-MJ for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:05:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUkJh-0007Ev-Vx for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:05:03 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUkJh-0007Ei-RP for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:05:01 -0500 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUkJh-0004B3-MT for emacs-orgmode@gnu.org; Thu, 28 Feb 2008 10:05:01 -0500 Received: by ug-out-1314.google.com with SMTP id a2so354798ugf.48 for ; Thu, 28 Feb 2008 07:04:59 -0800 (PST) In-Reply-To: (Tokuya Kameshima's message of "Thu, 28 Feb 2008 23:20:59 +0900") 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: Tokuya Kameshima Cc: emacs-orgmode@gnu.org Tokuya Kameshima writes: > Thank you for your comments and suggestions. I would appreciate if > you add the code to the distribution. Done, thanks! >> On top of this, when `org-bookmark' is in use, storing a link while >> visiting a file (or while in dired-mode) could first check if the file >> at point is bookmarked: if it is, then `org-bookmark-store-link' would >> be used; if it isn't, storing the file would fall back on the current >> mechanism. > > It sounds nice. But it is possible for a single file to be bookmarked > by two or more. I can not find a good way to select one from multiple > bookmarks referring to the same file. Do you have any idea? Either use an option like: (setq org-bookmark-store-link-select-first-bookmark t) or interactively ask the user for the bookmark to use in the minibuffer? In any case, this should be implemented in org.el directly. When `org-store-link' checks whether we are in dired-mode or in a buffer visiting a file, then it would also check whether 'org-bookmark is provided (with (featurep 'org-bookmark)...) and act accordingly if it is. Mhh... I will have a look at this this WE. -- Bastien