GNU bug report logs - #2811
23.0.91; calendar

Previous Next

Package: emacs;

Reported by: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>

Date: Sun, 29 Mar 2009 00:10:04 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Peter Dyballa <Peter_Dyballa <at> Freenet.DE>
Cc: 2811 <at> debbugs.gnu.org
Subject: bug#2811: closed by Glenn Morris <rgm <at> gnu.org> (Re: bug#2811: 23.0.91; calendar)
Date: Fri, 03 Apr 2009 13:04:24 -0400
Peter Dyballa wrote:

> Am 03.04.2009 um 01:27 schrieb Glenn Morris:
>
>> Why don't you just use (setq calendar-holidays ...) as normal?
>
> I'm using them in the site init file. And additionally I want German  
> text.

I don't see the relevance of either of these facts. The recommended
way to do this is to use (setq calendar-holidays ...), whether in your
.emacs or site init file. Copying an entire lisp file and making
selective changes is never going to be the recommended method of doing
anything.

> This worked for almost 20 years now ... Actually it's only the
> "Daylight Saving Time Begins" and "Daylight Saving Time Ends" which
> don't translate.

I must misunderstand, because I can't see how what you describe would
ever work.

solar-holidays is an autoloaded defcustom (and was in Emacs 21.4 as
well). This means the definition is in loaddefs.el, and hence gets
dumped into the executable. Hence in `emacs -Q', solar-holidays is
already defined, with the original value.

If you then attempt to load a changed holidays.el, the second
defcustom has no effect on the previously defined value. You need to
use a setq.

(Personally, I wish these and other defcustoms were not autoloaded,
but people are used to them being so, so it's impossible to change.)




This bug report was last modified 16 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.