From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: org-refile failing Date: Wed, 5 Sep 2012 20:32:37 -0500 Message-ID: References: <87mx145937.fsf@altern.org> <16353.1346893039@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba84b6c28c204c8fe77c1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9QxT-0003Mh-Ia for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 21:32:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9QxS-0002xo-Hw for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 21:32:39 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:54890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9QxS-0002xi-Cr for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 21:32:38 -0400 Received: by iagk10 with SMTP id k10so1730317iag.0 for ; Wed, 05 Sep 2012 18:32:37 -0700 (PDT) In-Reply-To: <16353.1346893039@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Bastien , Org Mode --e89a8f3ba84b6c28c204c8fe77c1 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > 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 > --e89a8f3ba84b6c28c204c8fe77c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nick, thanks for the reply.

I don't remember cust= omizing 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 <nicholas.dokos@hp.com> wrote:
Marcelo de Moraes Serpa &l= t;celoserpa@gmail.com> wrote:=

> Here's the backtrace (debug-on-error set t= o 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:

,----
| =A0 =A0 =A0 =A0 (setq descre (concat "^\\*\\{1," (number-to-str= ing
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 (if org-odd-levels-only
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 (1- (* 2 (cdr desc)))
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 (cdr desc)))
| =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"\\}[ \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 d= epends
on what (cdr desc) is (presumably 0 in order to get the result you get - and org-odd-levels-only is false, correct?). =A0In turn, that comes from org-refile-targets. Have you customized org-refile-targets by any
chance? If so, please send the value.

Nick

--e89a8f3ba84b6c28c204c8fe77c1--