help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Diary insert date formatting


From: Glenn Morris
Subject: Re: Diary insert date formatting
Date: Mon, 10 Aug 2009 14:45:14 -0700
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

rpd wrote:

> it throws an error when I use it

I wrote:

> The following assumes Emacs 23...

Here is the version for Emacs 22, which you seem (?) to be using.

(defun my-diary-insert-entry (arg)
  "See `insert-diary-entry'."
  (interactive "P")
  (let ((calendar-date-display-form
         '((if dayname
               (concat dayname " "))
           monthname " " day ", " year)))
    (make-diary-entry (calendar-date-string (calendar-cursor-to-date t) t)
                    arg)))


reply via email to

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