emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Cc: Bernt Hansen <bernt@norang.ca>
Subject: [PATCH] org-remember: Skip creation of the default '* Notes' task
Date: Thu,  9 Apr 2009 17:19:32 -0400	[thread overview]
Message-ID: <1239311972-3362-3-git-send-email-bernt@norang.ca> (raw)
In-Reply-To: <1239311972-3362-1-git-send-email-bernt@norang.ca>

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

  parent reply	other threads:[~2009-04-09 21:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 21:19 [PATCH] Report org-version after reloading Bernt Hansen
2009-04-09 21:19 ` [PATCH] Document more org-refile related variables in the docstring Bernt Hansen
2009-04-09 21:19 ` Bernt Hansen [this message]
2009-04-14  6:41   ` [PATCH] org-remember: Skip creation of the default '* Notes' task Manish
2009-04-14 12:30     ` Bernt Hansen
2009-04-10  8:28 ` [PATCH] Report org-version after reloading Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1239311972-3362-3-git-send-email-bernt@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).