all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: mah@everybody.org (Mark A. Hershberger)
To: emacs-devel@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.50; Holidays from year 2007 are displayed in a buffer named 2002
Date: Sat, 24 Nov 2007 14:45:37 -0500	[thread overview]
Message-ID: <877ik7v34u.fsf@everybody.org> (raw)
In-Reply-To: DE7633EF-1981-4E39-B1B9-336979F272D2@Freenet.DE

Peter Dyballa <Peter_Dyballa@Freenet.DE> writes:

> When I then choose year 2007 from the Holidays menu the holidays
> buffer has "Holidays for 2002" in its mode line – and the holiday
> dates are recorded as coming from 2002, which I can't check further,
> because my oldest calendar is from 2005

I was able to reproduce this with the latest CVS snapshot.

I've applied the following patch to fix it:

*** cal-menu.el.~1.76.~	2007-11-21 23:17:17.000000000 -0500
--- cal-menu.el	2007-11-24 14:38:15.000000000 -0500
***************
*** 95,107 ****
      ,@(let ((l ()))
          ;; Show 11 years--5 before, 5 after year of middle month.
          (dotimes (i 11)
!           (push (vector "For Year"
!                         `(lambda ()
!                            (interactive)
!                            (holiday-list (+ displayed-year ,(- i 5))
!                                          (+ displayed-year ,(- i 5))))
!                         :suffix `(number-to-string (+ displayed-year ,(- i 5))))
!                 l))
          (nreverse l))
      "--"
      ["Unmark Calendar" calendar-unmark]
--- 95,105 ----
      ,@(let ((l ()))
          ;; Show 11 years--5 before, 5 after year of middle month.
          (dotimes (i 11)
! 	  (let ((y (+ 2007 -5 i)))
! 	    (push (vector (format "For Year %s" y)
! 			  (list (list 'lambda 'nil '(interactive)
! 				      (list 'list-holidays y y))))
!                 l)))
          (nreverse l))
      "--"
      ["Unmark Calendar" calendar-unmark]


-- 
http://hexmode.com/
GPG Fingerprint: 7E15 362D A32C DFAB E4D2  B37A 735E F10A 2DFC BFF5

The most beautiful experience we can have is the mysterious.
    -- Albert Einstein, The World As I See it

  reply	other threads:[~2007-11-24 19:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-24 14:03 23.0.50; Holidays from year 2007 are displayed in a buffer named 2002 Peter Dyballa
2007-11-24 19:45 ` Mark A. Hershberger [this message]
2007-11-25  2:51   ` Glenn Morris
2007-11-25  4:42     ` Mark A. Hershberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ik7v34u.fsf@everybody.org \
    --to=mah@everybody.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.