[Top][All Lists]

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

Re: [O] org-refile failing

From: Marcelo de Moraes Serpa
Subject: Re: [O] org-refile failing
Date: Wed, 5 Sep 2012 20:32:37 -0500

Hi Nick, thanks for the reply.

I don't remember customizing the org-refile-targets var. When I evaluate it, I get the following:

((org-agenda-files :maxlevel . 0))

- Marcelo.

On Wed, Sep 5, 2012 at 7:57 PM, Nick Dokos <address@hidden> wrote:
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

|         (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.


reply via email to

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