From: Nick Dokos <nicholas.dokos@hp.com>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Bastien <bzg@altern.org>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-refile failing
Date: Wed, 05 Sep 2012 20:57:19 -0400 [thread overview]
Message-ID: <16353.1346893039@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from Marcelo de Moraes Serpa <celoserpa@gmail.com> of "Wed, 05 Sep 2012 19:14:25 CDT." <CACHMzOGUnFZW3usJ4m47x=Oj0uESv53hbKE7Pm_y6HandTXacA@mail.gmail.com>
Marcelo de Moraes Serpa <celoserpa@gmail.com> 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
next prev parent reply other threads:[~2012-09-06 0:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 23:25 org-refile failing Marcelo de Moraes Serpa
2012-09-05 23:43 ` Bastien
2012-09-05 23:59 ` Marcelo de Moraes Serpa
2012-09-06 0:14 ` Marcelo de Moraes Serpa
2012-09-06 0:57 ` Nick Dokos [this message]
2012-09-06 1:32 ` Marcelo de Moraes Serpa
2012-09-06 1:48 ` Nick Dokos
2012-09-06 6:53 ` Brian van den Broek
2012-09-06 13:43 ` Marcelo de Moraes Serpa
2012-09-12 14:12 ` Bastien
2012-09-06 0:35 ` Nick Dokos
2012-09-12 14:13 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16353.1346893039@alphaville.americas.hpqcorp.net \
--to=nicholas.dokos@hp.com \
--cc=bzg@altern.org \
--cc=celoserpa@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.