From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Wishlist: let org-refile find buffers that have been renamed Date: Thu, 23 Dec 2010 00:05:48 -0600 Message-ID: References: <4D12B9AD.2010600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40118 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVeJE-0000aa-2k for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 01:05:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVeJC-00048f-BQ for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 01:05:51 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:60339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVeJC-00048V-4k for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 01:05:50 -0500 Received: by bwz16 with SMTP id 16so9980292bwz.0 for ; Wed, 22 Dec 2010 22:05:48 -0800 (PST) In-Reply-To: <4D12B9AD.2010600@gmail.com> 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: Suvayu Ali Cc: emacs-orgmode@gnu.org On Wed, Dec 22, 2010 at 8:53 PM, Suvayu Ali w= rote: > On Wednesday 22 December 2010 06:08 PM, Hsiu-Khuern Tang wrote: >> >> Hi Samuel, >> >> Thanks for the suggestion. =A0I just tried it, and it does a nice job >> choosing easy-to-identify buffer names. =A0But those buffer names again >> do not come up for selection by C-c C-w (org-refile). I'm going to try this tomorrow, but in case it doesn't work with C-c C-w, I would like to vote +1 for this feature. I have a wiki (in org-mode) and my personal notes (in org-mode) and they're stored in different directories. I also have common filenames like this: wiki/grails.org wiki/groovy.org wiki/vim.org and personal/grails.org personal/groovy.org personal/vim.org I resolve this problem currently by refiling my personal items first, then refiling my wiki last. I have two custom methods that set my refile target to my wiki or my personal directory. I run njn/set-refile-personal when I want to refile to my personal directory, and I run njn/set-refile-notesmine when I want to refile to my wiki. (defun njn/set-refile-personal() (interactive) (setq org-refile-targets (quote ((njn/personal-org-files :maxlevel . 5)))) ) (defun njn/set-refile-notesmine() (interactive) (setq org-refile-targets (quote (njn/notesmine-org-files :maxlevel . 5))) ) Anyway, I would love it if I didn't have to do it this way, and I'll check out uniquify tomorrow. Maybe a solution would be to use a file-property to give a buffer an alias when refiling? Like this: -------- wiki/grails.org #+refile-alias: WGrails -------- personal/grails.org would just use "grails.org" --Nate > > I think org-refile ignores duplicate entries and refiles to the first mat= ch. > I have observed this same behaviour even for sub-trees with same names. > > e.g. > > * top headline > ** sub-heading > =A0 Text for sub-heading 1 > ** sub-heading > =A0 Text for sub-heading 2 > > > -- > Suvayu > > Open source is the future. It sets us free. > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >