unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3429: 23.0.91; solar.el: solar seasons variable should not be a constant
@ 2009-05-31 13:58 ` Teemu Likonen
  2009-06-04  6:45   ` bug#3429: marked as done (23.0.91; solar.el: solar seasons variable should not be a constant) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Teemu Likonen @ 2009-05-31 13:58 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: rfrancoise

This commit made solar-?-hemi-seasons constants:

    commit 7ac202f6ec47df634066e61cc4cf17705257d9dc
    Author: Glenn Morris <rgm@gnu.org>
    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).





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#3429: marked as done (23.0.91; solar.el: solar seasons variable should not be a constant)
  2009-05-31 13:58 ` bug#3429: 23.0.91; solar.el: solar seasons variable should not be a constant Teemu Likonen
@ 2009-06-04  6:45   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-06-04  6:45 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]


Your message dated Thu, 04 Jun 2009 02:39:10 -0400
with message-id <bezlcofqpd.fsf@fencepost.gnu.org>
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 owner@emacsbugs.donarmstrong.com
immediately.)


-- 
3429: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3429
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3550 bytes --]

From: Teemu Likonen <tlikonen@iki.fi>
To: emacs-pretest-bug@gnu.org
Cc: rfrancoise@debian.org
Subject: 23.0.91; solar.el: solar seasons variable should not be a constant
Date: Sun, 31 May 2009 16:58:26 +0300
Message-ID: <878wkdpe65.fsf@iki.fi>

This commit made solar-?-hemi-seasons constants:

    commit 7ac202f6ec47df634066e61cc4cf17705257d9dc
    Author: Glenn Morris <rgm@gnu.org>
    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).


[-- Attachment #3: Type: message/rfc822, Size: 1449 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 3429-done@emacsbugs.donarmstrong.com
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
Message-ID: <bezlcofqpd.fsf@fencepost.gnu.org>


OK, it's a defcustom.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-04  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bezlcofqpd.fsf@fencepost.gnu.org>
2009-05-31 13:58 ` bug#3429: 23.0.91; solar.el: solar seasons variable should not be a constant Teemu Likonen
2009-06-04  6:45   ` bug#3429: marked as done (23.0.91; solar.el: solar seasons variable should not be a constant) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).