Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Richard Riley <rileyrg@googlemail.com>
Cc: ding@gnus.org
Subject: Using &user-date; format spec errors (was: User date in summary buffer)
Date: Thu, 03 Feb 2011 17:26:40 +0100	[thread overview]
Message-ID: <87y65xrsn3.fsf_-_@member.fsf.org> (raw)
In-Reply-To: <sa3d3n9ryow.fsf_-_@cigue.easter-eggs.fr> (Julien Danjou's message of "Thu, 03 Feb 2011 15:15:59 +0100")

Julien Danjou <julien@danjou.info> writes:

> On Thu, Feb 03 2011, Richard Riley wrote:
>
>> Possibly others dont. Hence Julien's suggestion about a more user
>> friendly default.
>
> I've just changed the default format for user-date. I did not made any
> use of it nor any change to `gnus-summary-line-format'.
>
> So it's only visible to people using it.

Now I wanted to give it a try, but when I use the %&user-date; spec in
my summary buffer line format, I get this error when trying to enter
summary:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (void-function gnus-user-date)
  (gnus-user-date (aref gnus-tmp-header 3))
  (insert "<" (gnus-user-date (aref gnus-tmp-header 3)) ">")
  (progn (insert "<" (gnus-user-date (aref gnus-tmp-header 3)) ">") (point))
  (gnus-add-text-properties (point) (progn (insert "<" (gnus-user-date (aref gnus-tmp-header 3)) ">") (point)) (quote (gnus-face t face shadow)))
  (let (gnus-position) (insert gnus-tmp-unread gnus-tmp-replied) (gnus-add-text-properties (point) (progn (insert "┃") (point)) (quote (gnus-face t face default))) (insert (format "%2s" (gnus-user-format-function-s gnus-tmp-header))) (gnus-add-text-properties (point) (progn (insert "┃") (point)) (quote (gnus-face t face default))) (gnus-put-text-property (point) (progn (insert (format "%-23s" (let* ((val ...) (need ...)) (if (> need 0) (concat nil val ...) val)))) (point)) gnus-mouse-face-prop gnus-mouse-face) (gnus-add-text-properties (point) (progn (insert "┃ ") (setq gnus-position (point)) (insert gnus-tmp-thread-tree-header-string) (point)) (quote (gnus-face t face default))) (insert " " gnus-tmp-subject-or-nil " ") (gnus-add-text-properties (point) (progn (insert "<" (gnus-user-date (aref gnus-tmp-header 3)) ">") (point)) (quote (gnus-face t face shadow))) (insert "\n") (if gnus-position (gnus-put-text-property gnus-position (1+ gnus-position) (quote gnus-position) t)))
  eval((let (gnus-position) (insert gnus-tmp-unread gnus-tmp-replied) (gnus-add-text-properties (point) (progn (insert "┃") (point)) (quote (gnus-face t face default))) (insert (format "%2s" (gnus-user-format-function-s gnus-tmp-header))) (gnus-add-text-properties (point) (progn (insert "┃") (point)) (quote (gnus-face t face default))) (gnus-put-text-property (point) (progn (insert (format "%-23s" (let* ((val ...) (need ...)) (if (> need 0) (concat nil val ...) val)))) (point)) gnus-mouse-face-prop gnus-mouse-face) (gnus-add-text-properties (point) (progn (insert "┃ ") (setq gnus-position (point)) (insert gnus-tmp-thread-tree-header-string) (point)) (quote (gnus-face t face default))) (insert " " gnus-tmp-subject-or-nil " ") (gnus-add-text-properties (point) (progn (insert "<" (gnus-user-date (aref gnus-tmp-header 3)) ">") (point)) (quote (gnus-face t face shadow))) (insert "\n") (if gnus-position (gnus-put-text-property gnus-position (1+ gnus-position) (quote gnus-position) t))))
  gnus-summary-prepare-threads((([332 #("[fb4] Fwd: Bekanntgabe Wahlergebnis Fachbereichsräte" 6 52 (charset iso-8859-15)) "Dekanat FB4 <dekan@uni-koblenz.de>" "Thu, 03 Feb 2011 17:17:11 +0100" "<4D4AD507.6070703@uni-koblenz.de>" nil 268092 11 nil ((To . "fb4@list.uni-koblenz.de"))])))
  gnus-summary-prepare()
  gnus-summary-read-group-1("nnimap+Uni:ml/fb4" nil t nil nil nil)
  gnus-summary-read-group("nnimap+Uni:ml/fb4" nil t nil nil nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group nil nil)
--8<---------------cut here---------------end--------------->8---

I grepped the gnus sources, and there's no such function
`gnus-user-date'.

Bye,
Tassilo
-- 
Sent from my Emacs



  parent reply	other threads:[~2011-02-03 16:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03  7:10 That new date header Steinar Bang
2011-02-03 11:53 ` Richard Riley
2011-02-03 12:03   ` Steinar Bang
2011-02-03 12:13     ` Richard Riley
2011-02-03 12:34   ` Julien Danjou
2011-02-03 12:54     ` Lars Ingebrigtsen
2011-02-03 13:16       ` Richard Riley
2011-02-03 13:24         ` Lars Ingebrigtsen
2011-02-03 14:05           ` Richard Riley
2011-02-03 13:27         ` Steinar Bang
2011-02-03 13:50           ` Julien Danjou
2011-02-03 14:08             ` Richard Riley
2011-02-03 14:07           ` Richard Riley
2011-02-03 14:15             ` User date in summary buffer (was: Re: That new date header...) Julien Danjou
2011-02-03 14:19               ` User date in summary buffer Lars Ingebrigtsen
2011-02-03 14:30               ` Richard Riley
2011-02-03 14:41                 ` Julien Danjou
2011-02-03 16:26               ` Tassilo Horn [this message]
2011-02-03 19:59                 ` Using &user-date; format spec errors Eric S Fraga
2011-02-03 20:06                 ` Lars Ingebrigtsen
2011-02-03 20:24                   ` Tassilo Horn
2011-02-04 10:22                     ` Julien Danjou
2011-02-04 10:46                       ` Tassilo Horn
2011-02-04 18:13                       ` Daniel Dehennin

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=87y65xrsn3.fsf_-_@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=ding@gnus.org \
    --cc=rileyrg@googlemail.com \
    /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).