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

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

bug#3429: marked as done (23.0.91; solar.el: solar seasons variable shou


From: Emacs bug Tracking System
Subject: bug#3429: marked as done (23.0.91; solar.el: solar seasons variable should not be a constant)
Date: Thu, 04 Jun 2009 06:45:04 +0000

Your message dated Thu, 04 Jun 2009 02:39:10 -0400
with message-id <address@hidden>
and subject line Re: bug#3429: 23.0.91; solar.el: solar seasons variable should 
not be a constant
has caused the Emacs bug report #3429,
regarding 23.0.91; solar.el: solar seasons variable should not be a constant
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
3429: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3429
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.0.91; solar.el: solar seasons variable should not be a constant Date: Sun, 31 May 2009 16:58:26 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)
This commit made solar-?-hemi-seasons constants:

    commit 7ac202f6ec47df634066e61cc4cf17705257d9dc
    Author: Glenn Morris <address@hidden>
    Date:   2008-03-15 02:55:06 +0000

        (solar-n-hemi-seasons, solar-s-hemi-seasons): Make constants.
        (solar-sunrise-sunset): Rename some local variables for clarity.
        (sunrise-sunset): Use zerop.
        (solar-mean-equinoxes/solstices): Doc fix.

What is the rationale for that? They were defvars before.

As the doc of "defconst" says "The intent is that neither programs nor
users should ever change this value." Having solar seasons constants is
not sensible because it's very useful to localize the solar seasons'
names, and I'm trying to do exactly that with my Finnish localized
holidays:

    http://www.emacswiki.org/emacs/suomalainen-kalenteri.el

Yes, I can localize solar season by putting this in my ~/.emacs:

    (eval-after-load 'solar
      '(setq solar-n-hemi-seasons '("Kevätpäiväntasaus" "Kesäpäivänseisaus"
                                    "Syyspäiväntasaus" "Talvipäivänseisaus")
             solar-s-hemi-seasons '("Syyspäiväntasaus" "Talvipäivänseisaus"
                                    "Kevätpäiväntasaus" "Kesäpäivänseisaus")))

But this is not nice and it's difficult for external packages to
localize those variables.

I'd suggest making them defvas again (or defcustoms).


--- End Message ---
--- Begin Message --- Subject: Re: bug#3429: 23.0.91; solar.el: solar seasons variable should not be a constant Date: Thu, 04 Jun 2009 02:39:10 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
OK, it's a defcustom.

--- End Message ---

reply via email to

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