From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: due today notification Date: Wed, 28 Apr 2010 18:34:48 -0400 Message-ID: <2102.1272494088@alphaville.usa.hp.com> References: <87tyr1g4pd.fsf@fastmail.fm> <87wrvs7m9q.fsf@fastmail.fm> <30668.1272487604@alphaville.usa.hp.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7FqJ-00079a-Jy for emacs-orgmode@gnu.org; Wed, 28 Apr 2010 18:34:55 -0400 Received: from [140.186.70.92] (port=60989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7FqG-00075l-Ie for emacs-orgmode@gnu.org; Wed, 28 Apr 2010 18:34:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7FqE-0001eD-RR for emacs-orgmode@gnu.org; Wed, 28 Apr 2010 18:34:52 -0400 Received: from g1t0026.austin.hp.com ([15.216.28.33]:12783) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7FqE-0001e1-OF for emacs-orgmode@gnu.org; Wed, 28 Apr 2010 18:34:50 -0400 In-Reply-To: Message from Buck Brody of "Wed\, 28 Apr 2010 17\:29\:45 EDT." 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: buckbrody@gmail.com Cc: Matthew Lundin , "nicholas.dokos" , emacs-orgmode Buck Brody wrote: > ... > Maybe it would be best if I explain my current workflow. =C2=A0I use agen= da to see what is due today. =C2=A0I > then manually assign those items the A priority. =C2=A0For the rest of th= e day, whether I am in a > different agenda view, or just within my main file, I can quickly see wha= t items are due today > because they have the A priority within the headline. =C2=A0Using a tag w= ould work just as well. =C2=A0I am > looking for a way to cut out this manual process. >=20 OK. Maybe the following will help. Define the following function (perhaps in your .emacs): (defun bb-mark-todays-deadlines-as-high-priority () "Find all entries with a DEADLINE of today and give them high priority." (interactive) (org-map-entries '(org-priority ?A) "+DEADLINE=3D\"\"" 'file 'arch= ive 'trees)) and invoke it in the project buffer with=20 M-x bb-mark-todays-deadlines-as-high-priority (or bind it to some key for convenience). You might have to fiddle with it a bit - the mapping API is described in section A.10 of the Org manual. HTH, Nick