* assoc-string
@ 2008-02-25 9:27 Katsumi Yamaoka
2008-02-25 15:51 ` assoc-string Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2008-02-25 9:27 UTC (permalink / raw)
To: ding; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1191 bytes --]
Hi,
The new function `format-seconds' that time-date.el in the Gnus
CVS trunk provides now uses the `assoc-string' function, which
is not available in Emacs 21 and XEmacs.
While compiling the end of the data in file gnus/lisp/time-date.el:
** The function `assoc-string' is not known to be defined.
Wrote /tmp/.yamaoka/gnus/lisp/time-date.elc
It is not really a problem because Gnus currently does not use
`format-seconds', however someone might use it in the future
somewhere in Gnus. What do you think we should do now?
1. Provide `time-date-assoc-string' in time-date.el in both the
Emacs trunk and the Gnus trunk, and make `format-seconds' use
it. The function definition of `time-date-assoc-string' is
attached below.
2. Similar to 1. but do it in only the Gnus trunk.
3. Replace `assoc-string' with `gnus-assoc-string' in time-date.el
when compiling Gnus. It does not need to modify time-date.el
and I verified it can be done. However it seems to be risky.
(It is to make dgnushack.el provide the `assoc-string' macro
which uses `gnus-assoc-string' provided in gnus-util.el .)
4. Do nothing, but don't use `format-seconds' in Gnus from now on.
[-- Attachment #2: time-date-assoc-string --]
[-- Type: application/emacs-lisp, Size: 2008 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: assoc-string
2008-02-25 9:27 assoc-string Katsumi Yamaoka
@ 2008-02-25 15:51 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-02-25 15:51 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: ding, emacs-devel
> 4. Do nothing, but don't use `format-seconds' in Gnus from now on.
Sounds like a perfect plan,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-25 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25 9:27 assoc-string Katsumi Yamaoka
2008-02-25 15:51 ` assoc-string Stefan Monnier
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 NNTP newsgroup(s).