From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: remember/refiling filing target Date: Wed, 17 Sep 2008 22:57:58 +0200 Message-ID: References: <4884A4EF.2040709@gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg46L-0004DI-BC for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 16:58:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg46K-0004D2-P9 for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 16:58:17 -0400 Received: from [199.232.76.173] (port=41393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg46K-0004Cz-Jz for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 16:58:16 -0400 Received: from postduif.ic.uva.nl ([145.18.40.180]:38439) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kg46K-0004n7-2q for emacs-orgmode@gnu.org; Wed, 17 Sep 2008 16:58:16 -0400 In-Reply-To: <4884A4EF.2040709@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: Wanrong Lin Cc: emacs-orgmode@gnu.org Hi Wanrong, still, this is a difficult bug to fix, because my completion function keeps the outline path internally as a string. What I have done now is that during completion, any "/" in the headlines will be modified to "\". This is a bit annoying in the case when you actually need to type that character to move forward with completion. However, most of the time this is not needed, and this trick makes sure that the completion is not interrupted at the wrong location in the string. - Carsten On Jul 21, 2008, at 5:02 PM, Wanrong Lin wrote: > Hi, > > There seems to be a bug in remember/refiling filing target auto- > completion prompt, if the target heading text has a forward slash > "/". For example, if my filing target is the following: > > * TODO A/B switch needs to be fixed > > With M-x org-refile, when I press "TAB" in the mini-buffer to bring > up the filing target list, the above target shows up as "A/", all > text after the forward slash is cut out. However, the actual auto- > completion (by pressing "A/" and TAB) does work. > > I am using org 6.05b on Emacs 22.2, my refiling config is: > > (setq org-refile-targets '((org-agenda-files . (:maxlevel . 2)))) > (setq org-refile-use-outline-path t) > > Thanks a lot if someone can take a look of it. > > Wanrong > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode