From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65408 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Sorting in summary buffer is case sensitive Date: Mon, 15 Oct 2007 18:38:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <877ilpv8l1.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192441294 27459 80.91.229.12 (15 Oct 2007 09:41:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 09:41:34 +0000 (UTC) Cc: ding@gnus.org, bugs@gnus.org To: Sven Joachim Original-X-From: ding-owner+M13910@lists.math.uh.edu Mon Oct 15 11:41:24 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IhMQm-0003uh-7L for ding-account@gmane.org; Mon, 15 Oct 2007 11:40:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IhMPx-0004b6-AZ; Mon, 15 Oct 2007 04:39:21 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IhMPv-0004at-Uo for ding@lists.math.uh.edu; Mon, 15 Oct 2007 04:39:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IhMPp-0004wU-Lm for ding@lists.math.uh.edu; Mon, 15 Oct 2007 04:39:19 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IhMPi-00041u-00; Mon, 15 Oct 2007 11:39:06 +0200 Original-Received: from [66.225.201.151] (port=41305 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1IhMPC-0003sW-Cb; Mon, 15 Oct 2007 04:38:35 -0500 X-Hashcash: 1:20:071015:svenjoac@gmx.de::ZamIUAHk2m/oL/w3:0061HI X-Hashcash: 1:20:071015:ding@gnus.org::BwOYaqGSe7ECBypH:00001OXz X-Hashcash: 1:20:071015:bugs@gnus.org::bvNsb8GSnQcuEZMC:00006riP X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:NzDMsw51fjtK6S3J6QQWVFXutio= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65408 Archived-At: >>>>> Sven Joachim wrote in : > Gnus v5.11 > GNU Emacs 22.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.10.13) > of 2007-10-13 on debian, modified by Debian > 200 news.gmane.org InterNetNews NNRP server INN 2.4.1 ready (posting ok). > I just sorted a summary buffer by author, which did not give the > expected results according to the documentation: > ,----(describe-key "\C-c\C-s\C-a") >| C-c C-s C-a runs the command gnus-summary-sort-by-author >| which is an interactive compiled Lisp function in `gnus-sum.el'. >| It is bound to C-c C-s C-a, . >| (gnus-summary-sort-by-author &optional reverse) >| >| Sort the summary buffer by author name alphabetically. >| If `case-fold-search' is non-nil, case of letters is ignored. >| Argument reverse means reverse order. > `---- > But despite case-fold-search being t, authors with capitalized names > were listed before those with all lowercase names. The cause is that gnus-summary-sort-by-(author|recipient|subject) uses `string-lessp' which doesn't see `case-fold-search'. I've fixed it in Gnus CVS (trunk + v5-10 branch). Since `case-fold-search' is a buffer-local variable, now people who like the former behavior have to set `case-fold-search' to nil in the summary buffer as follows: (add-hook 'gnus-summary-mode-hook (lambda nil (setq case-fold-search nil))) Regards,