Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: emacs-w3m@namazu.org
Subject: [emacs-w3m:08485] Re: nnrss should borrow nnshibmun's RSS date processor...or something
Date: Wed, 04 Jan 2006 11:13:44 +0900	[thread overview]
Message-ID: <b4m3bk4spt3.fsf@jpl.org> (raw)
In-Reply-To: <8764p2g0wc.fsf@stone.tss.usg.edu>

>>>>> In [emacs-w3m : No.08484]
>>>>>	Mark Plaksin <happy@usg.edu> wrote:

> Here's one way to include the newer timezone-parse-date but it looks ugly
> and the Elisp docs say "In general, well-designed Lisp programs should not
> use this feature [eval-after-load]."

> (if (< emacs-major-version 22)
>     (eval-after-load "timezone" 
>       '(defun timezone-parse-date (date)
>          ... ;; include definition from Emacs 22
>          )))

This is similar to the way of APEL, with which I don't fully
agree.  One of the reasons is that it only hides imperfectness
of certain Emacs versions.

> Is there a better way or a better plan?

I think the best way at the present is yours, i.e., to make
nnrss always provide RFC822 date.  However, I still don't know
the reason why we should not use ISO 8601 date in nnrss
articles.  Though we might not be getting used to seeing it in
our eyes, I don't think that is so serious.

> If Gnus switches to date-to-time, then no change will be needed in nnrss,
> yes?

It will make several date-oriented features of Gnus, e.g.,
sorting, expiration, etc., work with ISO 8601 date.  However,
I'm not sure whether all those features actually work and are
actually used.  I can only say with certainty that they will
work with RFC822 date.

> I copied shimbun-rss-process-date, changed the first line from this:

> (luna-define-method shimbun-rss-process-date ((shimbun shimbun-rss) date)

> to this:

> (defun map-shimbun-rss-date (date)

> and then patched nnrss.el with the attached patch.

Thanks.  It looks good to me, and I seem to be able to rewrite
it in nnrss.el if we cannot use the shimbun code directly.

>> BTW, why do you prefer RFC822 date rather than ISO 8601 date?
>> If it is for the bugfix, we should apply it to both the Gnus
>> trunk and the v5-10 branch.

> I don't know enough to prefer either format :)  I was just trying to find a
> way to make nnrss show the correct date all the time.  Making nnrss able to
> do this in both the trunk and v5-10 sounds good to me though I only use
> trunk.

Does ISO 8601 date actually cause you pain, or give you any
trouble?  If so, we can call it a bug and we should fix it. ;-)



  reply	other threads:[~2006-01-04  2:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-22  3:55 [emacs-w3m:08473] " Mark Plaksin
2005-12-22  5:27 ` [emacs-w3m:08474] " Katsumi Yamaoka
2006-01-02 14:28   ` Mark Plaksin
2006-01-04  2:13     ` Katsumi Yamaoka [this message]
2006-01-04  2:50       ` [emacs-w3m:08486] " Mark Plaksin
2006-01-04  3:05         ` Katsumi Yamaoka
2006-01-04  3:17           ` Mark Plaksin
2006-01-05  7:09             ` [emacs-w3m:08489] " Katsumi Yamaoka
2006-01-05 14:48               ` [emacs-w3m:08490] " Mark Plaksin
2006-01-05 23:55                 ` [emacs-w3m:08491] " Katsumi Yamaoka
2006-01-06 13:17                   ` [emacs-w3m:08492] " Mark Plaksin
2006-01-10 10:13                     ` [emacs-w3m:08495] " Katsumi Yamaoka
2006-01-14 16:03                       ` [emacs-w3m:08502] " Mark Plaksin

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=b4m3bk4spt3.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=emacs-w3m@namazu.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.
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).