From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-refile failing Date: Wed, 05 Sep 2012 20:57:19 -0400 Message-ID: <16353.1346893039@alphaville.americas.hpqcorp.net> References: <87mx145937.fsf@altern.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9QPL-0007MI-SJ for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 20:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9QPK-00085h-Qa for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 20:57:23 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:45657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9QPK-00085G-LI for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 20:57:22 -0400 In-Reply-To: Message from Marcelo de Moraes Serpa of "Wed, 05 Sep 2012 19:14:25 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Bastien , Org Mode Marcelo de Moraes Serpa wrote: > Here's the backtrace (debug-on-error set to t): > Thanks for that! I sent mail requesting the same just a second before I got your mail, so I was wondering if the speed of light limit had been violated, but I guess not :-) Looks like the calculation of descre in org-refile-get-location is wrong: ,---- | (setq descre (concat "^\\*\\{1," (number-to-string | (if org-odd-levels-only | (1- (* 2 (cdr desc))) | (cdr desc))) | "\\}[ \t]"))) `---- The subexpression gives 0 and re-search-forward does not like things like "^\\*\\{1,0\\}[ ]". But why that is is not clear to me: it depends on what (cdr desc) is (presumably 0 in order to get the result you get - and org-odd-levels-only is false, correct?). In turn, that comes from org-refile-targets. Have you customized org-refile-targets by any chance? If so, please send the value. Nick