From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [PATCH] Add a different prefix for past deadlines in the agenda view Date: Thu, 28 Feb 2013 09:17:06 +0100 Message-ID: <86zjyo97jx.fsf@somewhere.org> References: <861ucvrbb8.fsf@somewhere.org> <877gmn4s0y.fsf@bzg.ath.cx> <87k3ptsvvk.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien, Bastien wrote: > Hi S=C3=A9bastien, > > Bastien writes: > >>> Here's a patch to allow for a different prefix for deadline entries whi= ch 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=3Dc8c991e Nice... Though, one question: why did you change the spacing (and, in fact, the wid= th) 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.: " "%3= d d. ago: ") --8<---------------cut here---------------end--------------->8--- > Thanks for the suggestion, Thanks as well=C2=A0;-) Best regards, Seb PS- Another question: some time ago, there was a ML with all the commits do= ne on Org. This seems to have disappeared (at least from Gmane). A reason for that, or an alternative? --=20 Sebastien Vauban