emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Add a different prefix for past deadlines in the agenda


From: Sebastien Vauban
Subject: Re: [O] [PATCH] Add a different prefix for past deadlines in the agenda view
Date: Thu, 28 Feb 2013 09:17:06 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.93 (windows-nt)

Hi Bastien,

Bastien wrote:
> Hi Sébastien,
>
> Bastien <address@hidden> writes:
>
>>> Here's a patch to allow for a different prefix for deadline entries which 
>>> are
>>> in the past: for example, "3 d ago" instead of "In -3 d"...
>>
>> Please make sure the change is backward compatible so that users don't
>> have to change the value of their `org-agenda-deadline-leaders'
>> (i.e. simply fall back on (nth 1 ...) when (nth 2 ...) returns nil.
>
> I finally added this, with a slightly different patch:
> http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=c8c991e

Nice...

Though, one question: why did you change the spacing (and, in fact, the width)
of the leaders?

--8<---------------cut here---------------start------------->8---
-(defcustom org-agenda-scheduled-leaders '("Scheduled: " "Sched.%2dx: ")
+(defcustom org-agenda-scheduled-leaders '(" Scheduled: " "Sched.%3dx: ")
   "Text preceding scheduled items in the agenda view.

(...)

-(defcustom org-agenda-deadline-leaders '("Deadline:  " "In %3d d.: ")
+(defcustom org-agenda-deadline-leaders '("  Deadline: " " In %3d d.: " "%3d d. 
ago: ")
--8<---------------cut here---------------end--------------->8---

> Thanks for the suggestion,

Thanks as well ;-)

Best regards,
  Seb

PS- Another question: some time ago, there was a ML with all the commits done
on Org. This seems to have disappeared (at least from Gmane). A reason for
that, or an alternative?

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]