From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: remember handling. Date: Mon, 23 Apr 2007 21:14:45 +0200 Message-ID: References: <87fy7jck2h.fsf@is003308.saclay.cea.fr> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hg45J-0002Ow-6Y for emacs-orgmode@gnu.org; Mon, 23 Apr 2007 15:20:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hg45I-0002O5-Hu for emacs-orgmode@gnu.org; Mon, 23 Apr 2007 15:20:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hg45I-0002Nw-Ee for emacs-orgmode@gnu.org; Mon, 23 Apr 2007 15:20:24 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hg3zr-0004WC-2w for emacs-orgmode@gnu.org; Mon, 23 Apr 2007 15:14:47 -0400 In-Reply-To: <87fy7jck2h.fsf@is003308.saclay.cea.fr> 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: =?ISO-8859-1?Q?Fran=E7ois_Lagarde?= Cc: emacs-orgmode@gnu.org I guess an `org-occur' sparse tree searching for the file name in a link might do the trick, like the following command (untested). (defun my-links-to-this-file () "Find links to the current file in ~/org/notes.org." (interactive) (let ((file (file-name-nondirectory (buffer-file-name)))) (find-file-other-window "~/org/notes.org") (org-occur (concat "\\[\\[file:.*?" (regexp-quote file) ".*?\\]\\]")))) (define-key global-map [(f11)] 'my-links-to-this-file) This only looks for the file name and does not pay attention to the directory, so if you have several files with the same name, this will have to become more complicated. Also, I am using explicitly the file ~/org/notes.org as the place to look for links, this you have to modify as well. Really just a proof of concept, But maybe something to start from? - Carsten On Apr 2, 2007, at 9:27, Fran=E7ois Lagarde wrote: > I really enjoy using org for a lot of things. > > I also use remember, which provides me an easy way to create quick=20 > notes, > especially when i am working on a file. > > My question is, if (and how) would be possible to find quickly (I mean > with a keyboard shortcut) all the notes belonging to the current=20 > buffer. > > Thanks, > > --=20 > Fran=E7ois Lagarde > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477=