From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: BUG - Can not refile to the last task Date: Fri, 19 Sep 2008 16:17:32 -0400 Message-ID: <87abe3gaar.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgmQ5-0004fw-Ow for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 16:17:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgmQ4-0004fW-Dl for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 16:17:37 -0400 Received: from [199.232.76.173] (port=58528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgmQ4-0004fS-65 for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 16:17:36 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:53431) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KgmQ3-0002z9-V4 for emacs-orgmode@gnu.org; Fri, 19 Sep 2008 16:17:36 -0400 In-Reply-To: (Carsten Dominik's message of "Fri\, 19 Sep 2008 09\:26\:10 +0200") 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: Carsten Dominik Cc: org-mode list 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 ni= l) | 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 o= utline-regexp) (setq level ...) (goto-char ...) (bookmark-set "org-refile-l= ast-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-conte= xt ...)) (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) (me= ssage "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) (i= f (equal goto ...) (org-refile-goto-last-stored) (when ... ... ... ...))) | org-refile(nil) | call-interactively(org-refile) | recursive-edit() | byte-code("=C3=86=10 @=C3=87=3D=C2=83!=00=C3=88=C3=89=C3=8A\"=C2=88=C3= =8B=C3=89!=C2=89=1AA@)=C2=A2=C3=8C=3D=C2=83!=00=C3=88=C3=8D=C3=8A\"=C2=88= =C3=8E=0B!=C2=88=C3=8F =C2=88=C3=90 !=C2=88\f=C2=83c=00=C3=91ed\"=0DV=C2=83= W=00eb=C2=88=C3=92=0D=C2=A5y=C2=88`=1E=1Bdb=C2=88=C3=92=0D=C2=A5=0DZy=C2=88= =0E=1B`|=C2=88)=C3=93c=C2=88eb=C2=88=C3=94=C3=95=C3=96 \"=C2=88=C3=97 =C2= =88=C3=94=C3=98!=C2=88=C3=99=C3=8A=1E=1C=1E=1D=C3=94=C3=98!=C2=88=C2=8A=C3= =9A =C2=88+=C3=99=C2=87" [unread-command-char debugger-args x debugger-buff= er noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t bac= ktrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer cou= nt-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-e= dit 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