Gnus development mailing list
 help / color / mirror / Atom feed
* %f of gnus-summary-line-format
@ 1999-01-15 16:13 Michael Cook
  1999-01-15 16:21 ` Lee Willis
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Cook @ 1999-01-15 16:13 UTC (permalink / raw)


I'm trying to get %f of gnus-summary-line-format working.
The help text says:

  %f   Contents of the From: or To: headers (string)

So, in my gnus-summary-line-format, I changed the %-20,20n to
%-20,20f.  But that change had no apparent effect in the
subsequently-generated *Summary* buffers.

Poking around in gnus-sum.el, I found the function
gnus-summary-from-or-to-or-newsgroups.  This function uses the
expression `(mail-header-extra header)' repeatedly.  But that
expression always seems to evaluate to nil.  And so
gnus-summary-from-or-to-or-newsgroups just always seems to return
the usual `mail-header-from' value.

Am I misunderstanding how %f is supposed to work?
Or is there a bug here somewhere.

(I'm using nnml groups, pgnus-0.69, and EMACS 20.3.1.)

M.


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

* Re: %f of gnus-summary-line-format
  1999-01-15 16:13 %f of gnus-summary-line-format Michael Cook
@ 1999-01-15 16:21 ` Lee Willis
  1999-01-15 16:58   ` Michael Cook
  0 siblings, 1 reply; 6+ messages in thread
From: Lee Willis @ 1999-01-15 16:21 UTC (permalink / raw)


Michael Cook <cook@sightpath.com> writes:

>   %f   Contents of the From: or To: headers (string)
> 
> Am I misunderstanding how %f is supposed to work?
> Or is there a bug here somewhere.

Read the thread entitled "using multiple Summary buffer formats"

It should explain some of the things you need to do to get %f do what
you want.

HTH
Lee.
-- 
I was doing object-oriented assembly at 1 year old ...  
For some reason my mom insists on calling it "Playing with blocks"


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

* Re: %f of gnus-summary-line-format
  1999-01-15 16:21 ` Lee Willis
@ 1999-01-15 16:58   ` Michael Cook
  1999-01-15 21:24     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Cook @ 1999-01-15 16:58 UTC (permalink / raw)


> Read the thread entitled "using multiple Summary buffer formats"

Got it.  Thanks.

The help text for %f should probably explain that:

--- gnus.el~	Fri Jan 15 11:55:41 1999
+++ gnus.el	Fri Jan 15 11:57:17 1999
@@ -1816,6 +1816,10 @@
 %A   Extracted address of the poster (string)
 %F   Contents of the From: header (string)
 %f   Contents of the From: or To: headers (string)
+     You'll probably also want:
+       (setq gnus-extra-headers '(To))
+       (setq nnmail-extra-headers gnus-extra-headers)
+     See also `gnus-ignored-from-addresses'.
 %x   Contents of the Xref: header (string)
 %D   Date of the article (string)
 %d   Date of the article (string) in DD-MMM format

M.


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

* Re: %f of gnus-summary-line-format
  1999-01-15 16:58   ` Michael Cook
@ 1999-01-15 21:24     ` Lars Magne Ingebrigtsen
  1999-01-15 21:42       ` Michael Cook
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-15 21:24 UTC (permalink / raw)


Michael Cook <cook@sightpath.com> writes:

> The help text for %f should probably explain that:

[...]

> +     You'll probably also want:
  +        To read the fine manual.

:-)

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


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

* Re: %f of gnus-summary-line-format
  1999-01-15 21:24     ` Lars Magne Ingebrigtsen
@ 1999-01-15 21:42       ` Michael Cook
  1999-01-15 23:11         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Cook @ 1999-01-15 21:42 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Michael Cook <cook@sightpath.com> writes:
> 
> > The help text for %f should probably explain that:
> 
> [...]
> 
> > +     You'll probably also want:
>   +        To read the fine manual.
> 
> :-)

Ah, good point.
I'll submit a patch that removes all the help strings.
Watch this space...

:-)


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

* Re: %f of gnus-summary-line-format
  1999-01-15 21:42       ` Michael Cook
@ 1999-01-15 23:11         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-15 23:11 UTC (permalink / raw)


Michael Cook <cook@sightpath.com> writes:

> I'll submit a patch that removes all the help strings.

For this particular variable, listing all things that influence all
the format specs is beyond what one can comfortably put in a doc
string.  Doc strings are for easy reference when tinkering -- after
you've read the manual.

-- 
(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-01-15 23:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-15 16:13 %f of gnus-summary-line-format Michael Cook
1999-01-15 16:21 ` Lee Willis
1999-01-15 16:58   ` Michael Cook
1999-01-15 21:24     ` Lars Magne Ingebrigtsen
1999-01-15 21:42       ` Michael Cook
1999-01-15 23:11         ` 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).