Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-treat-date-user-defined not working
@ 1999-02-21 15:51 Jari Aalto+mail.emacs
  1999-02-26  6:55 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Jari Aalto+mail.emacs @ 1999-02-21 15:51 UTC (permalink / raw)



    I use

        (setq gnus-treat-date-user-defined 'gnus-article-date-user)
        (setq gnus-article-time-format     'my-gnus-article-date)

    But the articles don't use the customised format; but look like:

        Message-Id: <t6qpv741at8.fsf@fsui02.fnal.gov>
        From: Chris Tessone <tessone@fnal.gov>
        Date: Sun, 21 Feb 1999 01:21:39 -0600
        Subject: Re: forwarding as text rather than MIME?
    
    If I manually hit  w t s  the Date becomes as I want it.

        Message-Id: <t6qpv741at8.fsf@fsui02.fnal.gov>
        From: Chris Tessone <tessone@fnal.gov>
        Date: 8 hours, 28 minutes -- 1999-02-21 09:21 Sun EET
        Subject: Re: forwarding as text rather than MIME?

    How do I make gnus to display it like this all the time?

    jari


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

* Re: gnus-treat-date-user-defined not working
  1999-02-21 15:51 gnus-treat-date-user-defined not working Jari Aalto+mail.emacs
@ 1999-02-26  6:55 ` Lars Magne Ingebrigtsen
  1999-02-26 20:37   ` gnus-treat-date-user-defined not working (patch included) Jari Aalto+mail.emacs
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-02-26  6:55 UTC (permalink / raw)


jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:

> How do I make gnus to display it like this all the time?

See `gnus-treat-date-user-defined'.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: gnus-treat-date-user-defined not working (patch included)
  1999-02-26  6:55 ` Lars Magne Ingebrigtsen
@ 1999-02-26 20:37   ` Jari Aalto+mail.emacs
  1999-02-26 22:11     ` Jari Aalto+mail.emacs
  1999-02-26 22:43     ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Jari Aalto+mail.emacs @ 1999-02-26 20:37 UTC (permalink / raw)


* 1999-02-26 Lars Magne Ingebrigtsen <larsi@gnus.org> list.ding
* Message-Id: <m3hfs9hcwb.fsf@quimbies.gnus.org>
| jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:
| 
| > How do I make gnus to display it like this all the time?
| 
| See `gnus-treat-date-user-defined'.

    gnus-treat-date-user-defined's value is 
    gnus-article-date-user

    Documentation:
    Display the date in a user-defined format.
    The format is defined by the `gnus-article-time-format' variable.

    ---

    gnus-article-time-format's value is 
    my-gnus-article-date

    Documentation:
    Format for display of Date headers in article bodies.
    See `format-time-string' for the possible values.

    The variable can also be function, which should return a complete Date
    header.  The function is called with one argument, the time, which can
    be fed to `format-time-string'.

I had:

        (setq gnus-treat-date-user-defined 'gnus-article-date-user)
        (setq gnus-article-time-format     'my-gnus-article-date)

But it didn't make a difference Hm; after debugging I found 
out that the the visual had to be turned on in order to these
variables be respected. I propose following patch to the documentation.

jari


--- gnus-art.el.orig	Fri Feb 26 22:33:09 1999
+++ gnus-art.el	Fri Feb 26 22:34:18 1999
@@ -717,7 +717,8 @@
 
 (defcustom gnus-treat-date-user-defined nil
   "Display the date in a user-defined format.
-The format is defined by the `gnus-article-time-format' variable."
+The format is defined by the `gnus-article-time-format' variable.
+Note: `gnus-visual' must contain value 'article-highlight."
   :group 'gnus-article-treat
   :type gnus-article-treat-custom)
 


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

* Re: gnus-treat-date-user-defined not working (patch included)
  1999-02-26 20:37   ` gnus-treat-date-user-defined not working (patch included) Jari Aalto+mail.emacs
@ 1999-02-26 22:11     ` Jari Aalto+mail.emacs
  1999-02-26 22:51       ` Lars Magne Ingebrigtsen
  1999-02-26 22:43     ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Jari Aalto+mail.emacs @ 1999-02-26 22:11 UTC (permalink / raw)


* 1999-02-26 jari.aalto@poboxes.com (Jari Aalto+mail.emacs) list.ding
* Message-Id: <tbww14aoli.fsf_-_@blue.sea.net>
| * 1999-02-26 Lars Magne Ingebrigtsen <larsi@gnus.org> list.ding
| * Message-Id: <m3hfs9hcwb.fsf@quimbies.gnus.org>
| | jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:
| | 
| | > How do I make gnus to display it like this all the time?
| | 
| | See `gnus-treat-date-user-defined'.

Somehow Gnus put's User's date in the middle of the article. You can see
it with vanilla 0.77 and with this setup:


    (setq gnus-treat-date-ut        t)
    (setq gnus-treat-date-user-defined  'gnus-article-date-user)
    (setq gnus-article-time-format          'my-gnus-article-date)

    (setq gnus-treatment-function-alist
          '((gnus-treat-date-ut gnus-article-date-user)))

    (defun my-gnus-article-date (date-list)
      "Date:                                     //// test /////")

Any ideas?
jari


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

* Re: gnus-treat-date-user-defined not working (patch included)
  1999-02-26 20:37   ` gnus-treat-date-user-defined not working (patch included) Jari Aalto+mail.emacs
  1999-02-26 22:11     ` Jari Aalto+mail.emacs
@ 1999-02-26 22:43     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-02-26 22:43 UTC (permalink / raw)


jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:

>     gnus-treat-date-user-defined's value is 
>     gnus-article-date-user
> 
>     Documentation:
>     Display the date in a user-defined format.
>     The format is defined by the `gnus-article-time-format' variable.

I guess all these variables should enumerate the valid values.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: gnus-treat-date-user-defined not working (patch included)
  1999-02-26 22:11     ` Jari Aalto+mail.emacs
@ 1999-02-26 22:51       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-02-26 22:51 UTC (permalink / raw)


jari.aalto@poboxes.com (Jari Aalto+mail.emacs) writes:

>     (setq gnus-treat-date-ut        t)

That should be `head' unless you want a Date header in the body.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1999-02-26 22:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-21 15:51 gnus-treat-date-user-defined not working Jari Aalto+mail.emacs
1999-02-26  6:55 ` Lars Magne Ingebrigtsen
1999-02-26 20:37   ` gnus-treat-date-user-defined not working (patch included) Jari Aalto+mail.emacs
1999-02-26 22:11     ` Jari Aalto+mail.emacs
1999-02-26 22:51       ` Lars Magne Ingebrigtsen
1999-02-26 22:43     ` Lars Magne Ingebrigtsen

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).