From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50957 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Newsgroup header sorted last in summary toggle Date: Fri, 21 Mar 2003 20:35:06 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048275345 22445 80.91.224.249 (21 Mar 2003 19:35:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 19:35:45 +0000 (UTC) Cc: ding@gnus.org Original-X-From: owner-ding@hpc.uh.edu Fri Mar 21 20:35:43 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wSIp-0005pU-00 for ; Fri, 21 Mar 2003 20:35:43 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18wSIa-0002qJ-00; Fri, 21 Mar 2003 13:35:28 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Mar 2003 13:36:31 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA18232 for ; Fri, 21 Mar 2003 13:36:18 -0600 (CST) Original-Received: (qmail 52858 invoked by alias); 21 Mar 2003 19:35:11 -0000 Original-Received: (qmail 52853 invoked from network); 21 Mar 2003 19:35:11 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by 66.230.238.6 with SMTP; 21 Mar 2003 19:35:11 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.8/8.12.8) with ESMTP id h2LJZ6ZG007706 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 21 Mar 2003 20:35:06 +0100 Original-To: Klaus Straubinger Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030321:ksnetz@arcor.de:dd8026ff2742cb21 X-Hashcash: 0:030321:ksnetz@arcor.de:dd8026ff2742cb21 X-Payment: hashcash 1.2 0:030321:ding@gnus.org:29a5ce265b1b04b2 X-Hashcash: 0:030321:ding@gnus.org:29a5ce265b1b04b2 In-Reply-To: (Klaus Straubinger's message of "Thu, 20 Mar 2003 14:19:44 +0100 (CET)") User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50957 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50957 Klaus Straubinger 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.)