info-gnus-english
[Top][All Lists]
Advanced

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

Re: gnus and parse-time.el


From: Michael Heerdegen
Subject: Re: gnus and parse-time.el
Date: Thu, 22 Mar 2012 00:58:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Important addition:

Names starting with a capital letter are not ok - they don't work when
entering dates in the minibuffer (e.g. for C-c .) with org.

Something like this works perfectly:

(eval-after-load "parse-time"
  '(progn
    (dolist (entry '(("jan" . 1) ("feb" . 2) ("mär" . 3)
                     ("apr" . 4) ("mai" . 5) ("jun" . 6)
                     ("jul" . 7) ("aug" . 8) ("sep" . 9)
                     ("okt" . 10) ("nov" . 11) ("dez" . 12)
                     ("januar" . 1) ("februar" . 2)
                     ("märz" . 3) ("april" . 4) ("juni" . 6)
                     ("juli" . 7) ("august" . 8)
                     ("september" . 9) ("oktober" . 10)
                     ("november" . 11) ("dezember" . 12)))
      (add-to-list 'parse-time-months entry))

    (dolist (entry '(("so" . 0) ("mo" . 1) ("di" . 2)
                     ("mi" . 3) ("do" . 4) ("fr" . 5)
                     ("sa" . 6) ("sonntag" . 0) ("montag" . 1)
                     ("dienstag" . 2) ("mittwoch" . 3)
                     ("donnerstag" . 4) ("freitag" . 5)
                     ("sonnabend" . 6) ("samstag" . 6)))
      (add-to-list 'parse-time-weekdays entry))))

even if you enter a weekday starting with a capital letter.



reply via email to

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