From: Bernt Hansen <bernt@norang.ca>
To: Carsten Dominik <dominik@uva.nl>
Cc: org-mode list <emacs-orgmode@gnu.org>
Subject: BUG - Can not refile to the last task
Date: Fri, 19 Sep 2008 16:17:32 -0400 [thread overview]
Message-ID: <87abe3gaar.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <A12B51CD-4BAA-4480-ADEF-D48876CDDAF6@uva.nl> (Carsten Dominik's message of "Fri\, 19 Sep 2008 09\:26\:10 +0200")
Hi Carsten,
I found another one... but this was broken in 6.06b as well
I can't refile a task to the last task in the file unless another task
follows it.
I normally refile to level 1 entries. If you have a file like this
,----
| * First Task
| ** Refile me
| * Other stuff
| * Last Task
`----
then you can't refile (C-c C-w) the 'Refile me' task to 'Last Task'.
The workaround is just to create something after * Last Task like * Junk
so you can refile to Last Task - then just delete * Junk.
I get the following error:
,----
| Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
| goto-char(nil)
| (save-restriction (widen) (goto-char pos) (looking-at outline-regexp) (setq level (org-get-valid-level ... 1)) (goto-char (if reversed ... ...)) (bookmark-set "org-refile-last-stored") (org-paste-subtree level))
| (save-excursion (save-restriction (widen) (goto-char pos) (looking-at outline-regexp) (setq level ...) (goto-char ...) (bookmark-set "org-refile-last-stored") (org-paste-subtree level)))
| (save-excursion (set-buffer (setq nbuf ...)) (setq reversed (org-notes-order-reversed-p)) (save-excursion (save-restriction ... ... ... ... ... ... ...)))
| (if goto (progn (switch-to-buffer nbuf) (goto-char pos) (org-show-context ...)) (org-copy-subtree 1 nil t) (save-excursion (set-buffer ...) (setq reversed ...) (save-excursion ...)) (org-cut-subtree) (setq org-markers-to-move nil) (message "Entry refiled to \"%s\"" (car it)))
| (progn (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (org-copy-subtree 1 nil t) (save-excursion ... ... ...) (org-cut-subtree) (setq org-markers-to-move nil) (message "Entry refiled to \"%s\"" ...)))
| (if (setq it (org-refile-get-location ... default-buffer)) (progn (setq file ... re ... pos ...) (setq nbuf ...) (if goto ... ... ... ... ... ...)))
| (when (setq it (org-refile-get-location ... default-buffer)) (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (setq nbuf (or ... ...)) (if goto (progn ... ... ...) (org-copy-subtree 1 nil t) (save-excursion ... ... ...) (org-cut-subtree) (setq org-markers-to-move nil) (message "Entry refiled to \"%s\"" ...)))
| (if (equal goto (quote ...)) (org-refile-goto-last-stored) (when (setq it ...) (setq file ... re ... pos ...) (setq nbuf ...) (if goto ... ... ... ... ... ...)))
| (let* ((cbuf ...) (filename ...) pos it nbuf file re level reversed) (if (equal goto ...) (org-refile-goto-last-stored) (when ... ... ... ...)))
| org-refile(nil)
| call-interactively(org-refile)
| recursive-edit()
| byte-code("Æ\x10 @Ç=!\0ÈÉÊ\"ËÉ!\x1aA@)¢Ì=!\0ÈÍÊ\"Î\v!Ï Ð !\fc\0Ñed\"\rVW\0ebÒ\r¥y`\x1e^[dbÒ\r¥\rZy\x0e^[`|)ÓcebÔÕÖ \"× ÔØ!ÙÊ\x1e\x1c\x1e\x1dÔØ!Ú +Ù" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
| debug(error (wrong-type-argument integer-or-marker-p nil))
| org-refile(nil)
| call-interactively(org-refile)
`----
-Bernt
next prev parent reply other threads:[~2008-09-19 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 7:26 RELEASE: Org-mode version 6.07 Carsten Dominik
2008-09-19 13:20 ` BUG - " Bernt Hansen
2008-09-19 14:18 ` Carsten Dominik
2008-09-19 14:19 ` Bernt Hansen
2008-09-20 2:48 ` S.P.Tseng
2008-09-19 20:17 ` Bernt Hansen [this message]
2008-09-20 4:56 ` BUG - Can not refile to the last task Carsten Dominik
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=87abe3gaar.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=dominik@uva.nl \
--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 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).