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

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

bug#11260: 24.1.50; `holiday-sexp' may create entry twice


From: Andreas Schwab
Subject: bug#11260: 24.1.50; `holiday-sexp' may create entry twice
Date: Mon, 16 Apr 2012 23:42:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)

Michael Heerdegen <address@hidden> writes:

> the following happens also in Emacs 23.  Recipe:
>
> 1. emacs -Q
> 2. M-x calendar RET
> 3. evaluate: (require 'holidays)
> 4. evaluate:
>    (add-to-list
>     'calendar-holidays
>     '(holiday-sexp
>       '(list 4 17 2012)
>       "April 17th 2012"))
>
> 5. In the calendar, move point to April 17th 2012 and hit h.
>
> You'll see that "April 17th 2012" appears twice.

Your expression does not use year.

> | (defun holiday-sexp (sexp string)
> |   "Sexp holiday for dates in the calendar window.
> | SEXP is an expression in variable `year' that is evaluated to
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

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