From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature Request: org-remember to attach toa different headline level Date: Fri, 14 Nov 2008 22:34:15 +0100 Message-ID: <5032BE5E-DB6E-4AD5-ABA0-826E798EF7EC@uva.nl> References: <5146889A6969A24D82AFD05233CF024F012D4D18@Haze.cmass.criticalmass.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L16J3-0003Ky-5m for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:34:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L16J1-0003Jx-Og for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:34:20 -0500 Received: from [199.232.76.173] (port=58052 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L16J1-0003Ju-Im for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:34:19 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]:3080) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L16J1-0006vQ-6P for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:34:19 -0500 Received: by ug-out-1314.google.com with SMTP id 36so2099948uga.17 for ; Fri, 14 Nov 2008 13:34:17 -0800 (PST) In-Reply-To: <5146889A6969A24D82AFD05233CF024F012D4D18@Haze.cmass.criticalmass.com> 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: Jonathan Arkell Cc: emacs-orgmode@gnu.org Hi Jonathan, The headline only needs to be unique in the target file. It will be =20 found independent of the level it is at. The display in the remember buffer may be a bit =20 misleading, but this is how it works. - Carsten On Nov 14, 2008, at 4:47 PM, Jonathan Arkell wrote: > Hi everyone > > Having moved from planner mode to org mode, I am quite happy. It =20 > has required a few shifts in my planning behavior, but all in all it =20= > is for the better. One of the biggest things I miss about planner =20 > mode though is the ability to quickly attach a task to a particular =20= > planner page from anywhere. I've been able to replicate the same =20 > behavior with a bit of elisp and Remember, but Remember always likes =20= > to attach tasks to the first level, but I need it to attach to a 2nd =20= > level headline. Would it be possible to do a check on the headline, =20= > and if it is prefixed by a star, it would attach to the headline at =20= > the starred level? For instance if the headline in org-remember-=20 > template is set to "*** Tasks" it would attach the Remember note to =20= > the first *** Tasks headline it saw. If it was "Tasks" it would do =20= > the normal behavior, which is to attach it to "* Tasks". > > Here is my org-create-task so that other planner-mode refugees can =20 > utilize it. Note that it assumes all org files are in ~/org/ > > (defun org-create-task (org-file) > "An emulation of planner-create-task." > (interactive > (list > (completing-read "Org file: " (directory-files "~/org/")))) > (aput 'org-remember-templates "Current Project" `(?c "** TODO %?=20 > \n DEADLINE: %^t\n Made From:%i\n %a" ,(concat "~/org/" =20 > org-file) "Tasks")) > (org-remember nil ?c)) > > > Jonathan Arkell > Sr. Web Developer > Inspired by Drum + Bass, Scheme, Kawaii > 402 =96 11 Avenue SE > Calgary, AB T2G 0Y4 > t: 403.206.4377 > www.criticalmass.com > > > The information contained in this message is confidential. It is =20 > intended to be read only by the individual or entity named above or =20= > their designee. If the reader of this message is not the intended =20 > recipient, you are hereby notified that any distribution of this =20 > message, in any form, is strictly prohibited. If you have received =20 > this message in error, please immediately notify the sender and =20 > delete or destroy any copy of this message. > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode