From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: patch:org-agenda-refile Date: Sun, 25 Apr 2010 18:32:04 +0200 Message-ID: <7d7ea7-f9j.ln1@news.eternal-september.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O64p1-00032q-VL for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 12:36:43 -0400 Received: from [140.186.70.92] (port=52510 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O64p0-00032J-JK for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 12:36:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O64oz-0001fs-M1 for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 12:36:42 -0400 Received: from lo.gmane.org ([80.91.229.12]:42081) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O64oy-0001fI-Uf for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 12:36:41 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O64ot-0001qe-Dn for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 18:36:35 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Apr 2010 18:36:35 +0200 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Apr 2010 18:36:35 +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: emacs-orgmode@gnu.org Possibly naive, but useful for myself as I tend to follow Bernd's "refile" policy - just about all new remember items are placed in refile for later refiling to more relevant locations thus simplifying the remember item creation process. I have never yet had the situation where I refiled from the agenda and didnt want my agenda updated to reflect that refiling. So ... ---- diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index c68038d..02d7e1e 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6217,7 +6217,8 @@ If this information is not given, the function uses the tree at point." (widen) (goto-char marker) (org-remove-subtree-entries-from-agenda) - (org-refile goto buffer rfloc))))))) + (org-refile goto buffer rfloc)))))) + (org-agenda-redo)) (defun org-agenda-open-link (&optional arg) "Follow the link in the current line, if any. ---- regards r.