* Newsgroup header sorted last in summary toggle
@ 2003-03-20 13:19 Klaus Straubinger
2003-03-21 19:35 ` Simon Josefsson
0 siblings, 1 reply; 2+ messages in thread
From: Klaus Straubinger @ 2003-03-20 13:19 UTC (permalink / raw)
The function gnus-summary-toggle-header does
(run-hooks 'gnus-article-decode-hook)
which in turn calls, at least with the default value of this hook
variable, the function article-decode-group-name. There,
(nnheader-replace-header "Newsgroups" ...
takes place, which deletes the Newsgroups header and inserts it right
again, but at the end of headers, destroying the beautiful sort order
of the headers.
For me it seems not necessary to call this function at all, but who am
I to know it.
The problem seems to be a result of a recent change with this ChangeLog
entry:
2003-02-26 Simon Josefsson <jas@extundo.com>
* gnus-sum.el (gnus-summary-toggle-header): Run
gnus-article-decode-hook instead of calling a-decode-encoded-words
directly (the latter is run as part of the former).
--
Klaus Straubinger
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Newsgroup header sorted last in summary toggle
2003-03-20 13:19 Newsgroup header sorted last in summary toggle Klaus Straubinger
@ 2003-03-21 19:35 ` Simon Josefsson
0 siblings, 0 replies; 2+ messages in thread
From: Simon Josefsson @ 2003-03-21 19:35 UTC (permalink / raw)
Cc: ding
Klaus Straubinger <ksnetz@arcor.de> writes:
> The function gnus-summary-toggle-header does
>
> (run-hooks 'gnus-article-decode-hook)
>
> which in turn calls, at least with the default value of this hook
> variable, the function article-decode-group-name. There,
>
> (nnheader-replace-header "Newsgroups" ...
>
> takes place, which deletes the Newsgroups header and inserts it right
> again, but at the end of headers, destroying the beautiful sort order
> of the headers.
>
> For me it seems not necessary to call this function at all, but who am
> I to know it.
Right, I have now made it less destructive. Thanks for pointing this
out.
(It would be nice if `article-decode-group-name' didn't depend on
*Original Article* buffer, but I wasn't able to make it so; I tried
various combinations of string-as-unibyte, string-make-unibyte and
reordering gnus-article-decode-hook. Maybe someone would like to take
a look on how to do it properly.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-21 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20 13:19 Newsgroup header sorted last in summary toggle Klaus Straubinger
2003-03-21 19:35 ` Simon Josefsson
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).