emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-refile failing


From: Nick Dokos
Subject: Re: [O] org-refile failing
Date: Wed, 05 Sep 2012 20:57:19 -0400

Marcelo de Moraes Serpa <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]