From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: BUG - Can not refile to the last task Date: Sat, 20 Sep 2008 06:56:08 +0200 Message-ID: References: <87abe3gaar.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KguW4-0007nR-64 for emacs-orgmode@gnu.org; Sat, 20 Sep 2008 00:56:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KguW3-0007nF-14 for emacs-orgmode@gnu.org; Sat, 20 Sep 2008 00:56:19 -0400 Received: from [199.232.76.173] (port=42532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KguW2-0007nC-SQ for emacs-orgmode@gnu.org; Sat, 20 Sep 2008 00:56:18 -0400 Received: from pony.ic.uva.nl ([145.18.40.181]:43727) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KguW2-000307-C2 for emacs-orgmode@gnu.org; Sat, 20 Sep 2008 00:56:18 -0400 In-Reply-To: <87abe3gaar.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: org-mode list Fixed, thanks. - Carsten On Sep 19, 2008, at 10:17 PM, Bernt Hansen wrote: > 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 * =20= > 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-=20 > marker-p nil) > | goto-char(nil) > | (save-restriction (widen) (goto-char pos) (looking-at outline-=20 > regexp) (setq level (org-get-valid-level ... 1)) (goto-char (if =20 > reversed ... ...)) (bookmark-set "org-refile-last-stored") (org-=20 > paste-subtree level)) > | (save-excursion (save-restriction (widen) (goto-char pos) =20 > (looking-at outline-regexp) (setq level ...) (goto-char ...) =20 > (bookmark-set "org-refile-last-stored") (org-paste-subtree level))) > | (save-excursion (set-buffer (setq nbuf ...)) (setq reversed (org-=20= > notes-order-reversed-p)) (save-excursion (save-=20 > restriction ... ... ... ... ... ... ...))) > | (if goto (progn (switch-to-buffer nbuf) (goto-char pos) (org-=20 > show-context ...)) (org-copy-subtree 1 nil t) (save-excursion (set-=20 > buffer ...) (setq reversed ...) (save-excursion ...)) (org-cut-=20 > subtree) (setq org-markers-to-move nil) (message "Entry refiled to =20 > \"%s\"" (car it))) > | (progn (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (setq =20= > nbuf (or ... ...)) (if goto (progn ... ... ...) (org-copy-subtree 1 =20= > nil t) (save-excursion ... ... ...) (org-cut-subtree) (setq org-=20 > markers-to-move nil) (message "Entry refiled to \"%s\"" ...))) > | (if (setq it (org-refile-get-location ... default-buffer)) =20 > (progn (setq file ... re ... pos ...) (setq nbuf ...) (if =20 > goto ... ... ... ... ... ...))) > | (when (setq it (org-refile-get-location ... default-buffer)) =20 > (setq file (nth 1 it) re (nth 2 it) pos (nth 3 it)) (setq nbuf =20 > (or ... ...)) (if goto (progn ... ... ...) (org-copy-subtree 1 nil =20 > t) (save-excursion ... ... ...) (org-cut-subtree) (setq org-markers-=20= > to-move nil) (message "Entry refiled to \"%s\"" ...))) > | (if (equal goto (quote ...)) (org-refile-goto-last-stored) (when =20= > (setq it ...) (setq file ... re ... pos ...) (setq nbuf ...) (if =20 > goto ... ... ... ... ... ...))) > | (let* ((cbuf ...) (filename ...) pos it nbuf file re level =20 > reversed) (if (equal goto ...) (org-refile-goto-last-stored) =20 > (when ... ... ... ...))) > | org-refile(nil) > | call-interactively(org-refile) > | recursive-edit() > | byte-code("=C6=10 @=C7=3D=83!=C8=C9=CA\"=88=CB=C9!=89=1AA@)=A2=CC=3D= =83!=C8=CD=CA\"=88=CE=0B!=88=CF =88=D0 !=88\f=83c=D1ed\" > V=83Web=88=D2 > =A5y=88`=1E=1Bdb=88=D2 > =A5 > Zy=88=0E=1B`|=88)=D3c=88eb=88=D4=D5=D6 \"=88=D7 =88=D4=D8!=88=D9=CA=1E=1C= =1E=1D=D4=D8!=88=8A=DA =88+=D9=87" [unread-command-char =20 > debugger-args x debugger-buffer noninteractive debugger-batch-max-=20 > lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-=20 > buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" =20 > message "%s" buffer-string kill-emacs "" nil recursive-edit =20 > 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