From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Bug: Refiling is broken [7.6 (release_7.6.132.gd8bd4)] Date: Wed, 20 Jul 2011 23:49:37 -0400 Message-ID: <87ipqwpa26.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjkGi-0003IY-Dx for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 23:49:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjkGh-0000tl-7E for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 23:49:48 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:52782 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjkGh-0000tb-4t for emacs-orgmode@gnu.org; Wed, 20 Jul 2011 23:49:47 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QjkGZ-0007ky-A8 for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 03:49:39 +0000 Received: from localhost.localdomain (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6L3nb9A022482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Jul 2011 23:49:38 -0400 Received: from localhost.localdomain (gollum [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id p6L3nbLb020751 for ; Wed, 20 Jul 2011 23:49:37 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Bastien, Bulk refiling from the agenda (B r) no longer works for me. Git bisect identifies the following commit as the problem: ,---- | $ git bisect bad | 651a537e49495b283602d7ef8979d364ef8dfbf9 is the first bad commit | commit 651a537e49495b283602d7ef8979d364ef8dfbf9 | Author: Bastien Guerry | Date: Mon Jul 18 22:57:53 2011 +0200 | | org.el: exclude current heading from the refile table. | | * org.el (org-refile-get-location): exclude current heading | from the refile table. | | Thanks to Jason Dunsmore for this idea. | | :040000 040000 98cea08554cd006a6efa65ec6af084c9193a5411 3352e4868cbc7ae3a8be1ae52a22b86ad38947a8 M lisp `---- I get the following backtrace when trying to bulk refile from the agenda: ,---- | Debugger entered--Lisp error: (error "Before first headline at position 4767 in buffer *Org Agenda*") | signal(error ("Before first headline at position 4767 in buffer *Org Agenda*")) | error("Before first headline at position %d in buffer %s" 4767 #) | (condition-case nil (outline-back-to-heading invisible-ok) (error (error "Before first headline at position %d in buffer %s" ... ...))) | org-back-to-heading(t) | (save-excursion (org-back-to-heading t) (if (looking-at ...) (match-string 1) "")) | org-get-heading() | (assoc (org-get-heading) org-refile-target-table) | (delq (assoc (org-get-heading) org-refile-target-table) org-refile-target-table) | (setq org-refile-target-table (delq (assoc ... org-refile-target-table) org-refile-target-table)) | (let ((org-refile-targets org-refile-targets) (org-refile-use-outline-path org-refile-use-outline-path)) (setq org-refile-target-table (org-refile-get-targets default-buffer)) (setq org-refile-target-table (delq ... org-refile-target-table)) (unless org-refile-target-table (error "No refile targets")) (let* (... ... ... ... ... ... ... ... ... pa answ parent-target child parent old-hist) (setq old-hist org-refile-history) (setq answ ...) (setq pa ...) (org-refile-check-position pa) (if pa ... ...))) | org-refile-get-location("Refile to" # confirm) | (setq rfloc (org-refile-get-location "Refile to" (marker-buffer ...) org-refile-allow-creating-parent-nodes)) | (cond ((equal action 36) (setq cmd ...)) ((equal action 65) (setq cmd ...)) ((member action ...) (setq rfloc ...) (if ... ...) (setq cmd ... redo-at-end t)) ((equal action 116) (setq state ...) (setq cmd ...)) ((memq action ...) (setq tag ...) (setq cmd ...)) ((memq action ...) (let* ... ...)) ((equal action 83) (if ... ... ...)) ((assoc action org-agenda-bulk-custom-functions) (setq cmd ... redo-at-end t)) ((equal action 102) (setq cmd ...)) (t (error "Invalid bulk action"))) | (let* ((action ...) (org-log-refile ...) (entries ...) redo-at-end cmd rfloc state e tag pos (cnt 0) (cntskip 0)) (cond (... ...) (... ...) (... ... ... ...) (... ... ...) (... ... ...) (... ...) (... ...) (... ...) (... ...) (t ...)) (setq entries (sort entries ...)) (while (setq e ...) (setq pos ...) (if ... ... ... ... ... ...)) (setq org-agenda-bulk-marked-entries nil) (org-agenda-bulk-remove-all-marks) (when redo-at-end (org-agenda-redo)) (message "Acted on %d entries%s" cnt (if ... "" ...))) | org-agenda-bulk-action(nil) | call-interactively(org-agenda-bulk-action nil nil) `---- Refiling also seems to be similarly broken (C-c C-w) Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Package: Org-mode version 7.6 (release_7.6.132.gd8bd4) Regards, Bernt