From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: deadlines with special option for warning days. Date: Mon, 03 Sep 2007 16:56:17 +0200 Message-ID: References: <23372cba80445dfe250116930c1ad0c5@science.uva.nl> <4f2f4da7d145d46a6e15c80f1db0c655@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISDLr-0002lR-9M for emacs-orgmode@gnu.org; Mon, 03 Sep 2007 10:56:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISDLq-0002kx-BM for emacs-orgmode@gnu.org; Mon, 03 Sep 2007 10:56:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISDLq-0002kq-4Z for emacs-orgmode@gnu.org; Mon, 03 Sep 2007 10:56:30 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISDLp-0007fd-Iv for emacs-orgmode@gnu.org; Mon, 03 Sep 2007 10:56:29 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ISDLk-00038d-Gy for emacs-orgmode@gnu.org; Mon, 03 Sep 2007 16:56:24 +0200 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Sep 2007 16:56:24 +0200 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Sep 2007 16:56:24 +0200 In-Reply-To: <4f2f4da7d145d46a6e15c80f1db0c655@science.uva.nl> 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 Carsten Dominik schrieb: > > On Aug 31, 2007, at 18:31, Rainer Stengele wrote: >>> How about the following solution. >>> >>> If you bind org-deadline-warning-days to 0 or a negative number, >>> this value (the absolute value of that number) will be enforced >>> no matter what. If it is a positive number, individual lead >>> times will overrule it. >>> >>> - Carsten >> >> OK - so how would I bind the value for different custom agenda views >> to different values? > > This would be using the options section of an agenda command. > > Here is a lisp example: > > (setq org-agenda-custom-commands > '(("a" agenda "" ((org-deadline-warning-days -5))))) > > It is much easier to work on these custom views through the customize > interface, so do M-x customize-variable RET org-agenda-custom-commands RET > or even easier `C-c a C' > > There you can click INS in the options field and then fill in > the variable name and the value you would like it to have. > > In the Manual, take a look at section 9.6.3 which has examples for this. > Also John Wiegley shows in his document some examples for custom views > with local variable settings and how these are made using the customize > interface. > > Hope this helps. > > - Carsten Hi Carsten, this is maybe a misunderstanding. I already use a lot of the custom agenda views. Example: ... ("d" agenda "X-Agenda 0 days deadline preview" ((org-deadline-warning-days 0)) nil ("~/org/agenda0.txt")) ... having a todo with a DEADLINE: <2007-09-07 Fr -5d> this one will show up as: CATEGORY: In 4 d.: TODO .... I do not want this one to appear because my custom org-deadline-warning-days is 0. Did I misunderstand you or is this a bug? Rainer