From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] org-remember: Skip creation of the default '* Notes' task Date: Thu, 9 Apr 2009 17:19:32 -0400 Message-ID: <1239311972-3362-3-git-send-email-bernt@norang.ca> References: <1239311972-3362-1-git-send-email-bernt@norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ls1g1-0003ne-5K for emacs-orgmode@gnu.org; Thu, 09 Apr 2009 17:20:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ls1fx-0003nS-IY for emacs-orgmode@gnu.org; Thu, 09 Apr 2009 17:20:48 -0400 Received: from [199.232.76.173] (port=53066 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ls1fx-0003nP-Bp for emacs-orgmode@gnu.org; Thu, 09 Apr 2009 17:20:45 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:52076) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ls1fw-0007P8-VQ for emacs-orgmode@gnu.org; Thu, 09 Apr 2009 17:20:45 -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.68) (envelope-from ) id 1Ls1fv-000Mpu-Ur for emacs-orgmode@gnu.org; Thu, 09 Apr 2009 21:20:44 +0000 In-Reply-To: <1239311972-3362-1-git-send-email-bernt@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: emacs-orgmode@gnu.org Cc: Bernt Hansen Remember and refile processing does not require a task. This change removes the unneeded default task. This supports a workflow where new remember tasks and notes go into a mostly empty file which just has #+FILETAGS: at the top and nothing else. This workflow has a minimal number of remember templates - one for new tasks and (filed in tasks.org) - one for new notes (filed in notes.org) - one for phone calls (filed in phone.org) New tasks are added as top-level tasks to the end of these files and the #+FILETAGS: REFILE header causes each task to be easy to find. All tasks in these files are refiled to a more appropriate org file at a later time. --- Carsten, (and list) I've started using this new workflow just this week and org remember insisted on creating an annoying '* Notes' task before my #+FILETAGS: line since there were no tasks in the file yet. I'm refiling as top-level tasks at the end of the file and the '* Notes' task was just in the way. I couldn't find any good reason to keep this so this patch removes the requirement. I find tasks to refile with a custom agenda tag search looking for the tag REFILE and this change gets rid of the bogus 'Notes' task that kept showing up. Let me know if I missed some reason you really need this '* Notes' default task. -Bernt lisp/org-remember.el | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/lisp/org-remember.el b/lisp/org-remember.el index 6895340..926da74 100644 --- a/lisp/org-remember.el +++ b/lisp/org-remember.el @@ -860,10 +860,6 @@ See also the variable `org-reverse-note-order'." (save-excursion (save-restriction (widen) - (and (goto-char (point-min)) - (not (re-search-forward "^\\* " nil t)) - (insert "\n* " (or (and (stringp heading) heading) - "Notes") "\n")) (setq reversed (org-notes-order-reversed-p)) ;; Find the default location -- 1.6.2.2.485.ge37347