emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: nicholas.dokos@hp.com
Cc: Bastien <bzg@altern.org>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-refile failing
Date: Wed, 5 Sep 2012 20:32:37 -0500	[thread overview]
Message-ID: <CACHMzOGGnEX1D6wBRydPV__fR61T4EgNzNNQPAOeN=HDF20iKQ@mail.gmail.com> (raw)
In-Reply-To: <16353.1346893039@alphaville.americas.hpqcorp.net>

[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]

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 <nicholas.dokos@hp.com> wrote:

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

[-- Attachment #2: Type: text/html, Size: 1986 bytes --]

  reply	other threads:[~2012-09-06  1:32 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
2012-09-06  1:32         ` Marcelo de Moraes Serpa [this message]
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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACHMzOGGnEX1D6wBRydPV__fR61T4EgNzNNQPAOeN=HDF20iKQ@mail.gmail.com' \
    --to=celoserpa@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).