unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44707: 27.1; Add gnus-article-date-user user-defined examples
@ 2020-11-17  6:12 積丹尼 Dan Jacobson
  2020-11-24  8:39 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-11-17  6:12 UTC (permalink / raw)
  To: 44707

(info "(gnus) Article Date") says

‘W T s’
     Display the date using a user-defined format
     (‘gnus-article-date-user’).  The format is specified by the
     ‘gnus-article-time-format’ variable, and is a string that’s passed
     to ‘format-time-string’.  See the documentation of that variable
     for a list of possible format specs.

Without examples the user is a loss at figuring out how to set this.

Maybe one does
(setq gnus-article-date-user "%a, %d ...")
but probably not.

(info "(gnus) User-Defined Specs")
has no examples either. In fact maybe some words are missing... without
examples one cannot be sure.

gnus-article-date-headers is a variable defined in ‘gnus-art.el’.
its docstring seems to say we can do
(set-variable 'gnus-article-date-headers '(user-defined))

Same on (info "(gnus) Customizing Articles")

Maybe we are supposed to do
(set-variable 'gnus-article-date-headers '("%a, %d...")) but that
triggers an error.

Wait. Let's try
(set-variable 'gnus-article-time-format "%a, %d...")
(set-variable 'gnus-article-date-headers '(user-defined))

Ah, finally I figured out what the docs are trying to say. Wish they
added an example.

Alas, not only does doing that correctly affect W T s itself,
but it also affects all the other W T's!

emacs-version "27.1"





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

* bug#44707: 27.1; Add gnus-article-date-user user-defined examples
  2020-11-17  6:12 bug#44707: 27.1; Add gnus-article-date-user user-defined examples 積丹尼 Dan Jacobson
@ 2020-11-24  8:39 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-24  8:39 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 44707

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> (info "(gnus) Article Date") says
>
> ‘W T s’
>      Display the date using a user-defined format
>      (‘gnus-article-date-user’).  The format is specified by the
>      ‘gnus-article-time-format’ variable, and is a string that’s passed
>      to ‘format-time-string’.  See the documentation of that variable
>      for a list of possible format specs.
>
> Without examples the user is a loss at figuring out how to set this.
>
> Maybe one does
> (setq gnus-article-date-user "%a, %d ...")
> but probably not.

The manual describes a command: `W T s', so I'm not sure why you're:

> (set-variable 'gnus-article-date-headers '(user-defined))

In any case, `gnus-article-date-user' has a default value that is pretty
self-explanatory.

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-11-24  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17  6:12 bug#44707: 27.1; Add gnus-article-date-user user-defined examples 積丹尼 Dan Jacobson
2020-11-24  8:39 ` Lars Ingebrigtsen

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