From unknown Sat Aug 16 19:20:23 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2889: ibuffer: sorting by KEY + secondary key (buffer name) Reply-To: Jari Aalto , 2889@debbugs.gnu.org Resent-From: Jari Aalto Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 04 Apr 2009 16:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2889 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123886128517815 (code B ref -1); Sat, 04 Apr 2009 16:15:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Apr 2009 16:08:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from emh04.mail.saunalahti.fi (emh04.mail.saunalahti.fi [62.142.5.110]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n34G81qo017809 for ; Sat, 4 Apr 2009 09:08:02 -0700 Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh04-2.mail.saunalahti.fi (Postfix) with SMTP id 3E10113B612 for ; Sat, 4 Apr 2009 19:08:00 +0300 (EEST) Received: from emh07.mail.saunalahti.fi ([62.142.5.117]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A015231E49E; Sat, 04 Apr 2009 19:08:00 +0300 Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh07.mail.saunalahti.fi (Postfix) with ESMTP id 283DF1C6387 for ; Sat, 4 Apr 2009 19:07:59 +0300 (EEST) Received: from [192.168.1.7] (helo=jondo.cante.net) by picasso.cante.net with esmtp (Exim 4.69) (envelope-from ) id 1Lq8PV-0001xJ-36 for submit@emacsbugs.donarmstrong.com; Sat, 04 Apr 2009 19:07:57 +0300 Received: from jaalto by jondo.cante.net with local (Exim 4.69) (envelope-from ) id 1Lq8PW-0000jR-F8 for submit@emacsbugs.donarmstrong.com; Sat, 04 Apr 2009 19:07:58 +0300 From: Jari Aalto To: Emacs bug BTS Date: Sat, 04 Apr 2009 19:07:58 +0300 Message-ID: <871vs8o10h.fsf@jondo.cante.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SA-Exim-Connect-IP: 192.168.1.7 X-SA-Exim-Mail-From: jari.aalto@cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS Severity: wishlist M-x ibuffer C-h m Sorting commands: ',' - Rotate between the various sorting modes. 's i' - Reverse the current sorting order. 's a' - Sort the buffers lexicographically. 's f' - Sort the buffers by the file name. 's v' - Sort the buffers by last viewing time. 's s' - Sort the buffers by size. 's m' - Sort the buffers by major mode. SUGGESTION The commands currently sort by the KEY only. But it would be helpful if the sorting were done by secondary KEY too; the buffer name. Instead of current behavior: s m Current Key ... | % emacs-lisp-my-s... 428 Dired by name % exam 1699 Dired by name % all 2524 Dired by name % new 404 Dired by name % examples 929 Dired by name % string 292 Dired by name % fstream 224 Dired by name % other 2908 Dired by name % class 470 Dired by name % argv 281 Dired by name % struct 223 Dired by name .. The sencondary key would be used to determine the order. The result being: Secondary key | % all 2524 Dired by name % argv 281 Dired by name % class 470 Dired by name % emacs-lisp-my-s... 428 Dired by name % exam 1699 Dired by name % examples 929 Dired by name % fstream 224 Dired by name % new 404 Dired by name % other 2908 Dired by name % string 292 Dired by name % struct 223 Dired by name From unknown Sat Aug 16 19:20:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2889: ibuffer: sorting by KEY + secondary key (buffer name) Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 08:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2889 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jari Aalto Cc: 2889@debbugs.gnu.org Received: via spool by 2889-submit@debbugs.gnu.org id=B2889.15698309931117 (code B ref 2889); Mon, 30 Sep 2019 08:10:01 +0000 Received: (at 2889) by debbugs.gnu.org; 30 Sep 2019 08:09:53 +0000 Received: from localhost ([127.0.0.1]:56871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqki-0000Hx-Pn for submit@debbugs.gnu.org; Mon, 30 Sep 2019 04:09:52 -0400 Received: from quimby.gnus.org ([80.91.231.51]:47184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqkg-0000Ho-NA for 2889@debbugs.gnu.org; Mon, 30 Sep 2019 04:09:51 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEqka-00056i-Uv; Mon, 30 Sep 2019 10:09:48 +0200 From: Lars Ingebrigtsen References: <871vs8o10h.fsf@jondo.cante.net> Date: Mon, 30 Sep 2019 10:09:44 +0200 In-Reply-To: <871vs8o10h.fsf@jondo.cante.net> (Jari Aalto's message of "Sat, 04 Apr 2009 19:07:58 +0300") Message-ID: <87v9tadx2v.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jari Aalto writes: > M-x ibuffer > C-h m > > Sorting commands: > > ', ' - Rotate between the various sorting modes. > 's i' - Reverse the current sorting order. > 's a' - Sort the buffers lexicographically. > 's f' - Sor [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jari Aalto writes: > M-x ibuffer > C-h m > > Sorting commands: > > ',' - Rotate between the various sorting modes. > 's i' - Reverse the current sorting order. > 's a' - Sort the buffers lexicographically. > 's f' - Sort the buffers by the file name. > 's v' - Sort the buffers by last viewing time. > 's s' - Sort the buffers by size. > 's m' - Sort the buffers by major mode. > > SUGGESTION > > The commands currently sort by the KEY only. > > But it would be helpful if the sorting were done by secondary KEY too; > the buffer name. (I'm going through old bug reports that unfortunately didn't get any response at the time.) I think that would be surprising behaviour. Currently the sorting commands are "stable": That is, if you first reverse-sort by buffer name, and then by size, all the buffers with identical size are then reversed-sort by buffer name. The proposed change would make that feature go missing, so I don't think this would be a good change, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 30 04:09:56 2019 Received: (at control) by debbugs.gnu.org; 30 Sep 2019 08:09:56 +0000 Received: from localhost ([127.0.0.1]:56874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqkm-0000IG-1I for submit@debbugs.gnu.org; Mon, 30 Sep 2019 04:09:56 -0400 Received: from quimby.gnus.org ([80.91.231.51]:47198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEqkk-0000I5-AL for control@debbugs.gnu.org; Mon, 30 Sep 2019 04:09:54 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEqkh-00056p-Jt for control@debbugs.gnu.org; Mon, 30 Sep 2019 10:09:53 +0200 Date: Mon, 30 Sep 2019 10:09:51 +0200 Message-Id: <87tv8udx2o.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #2889 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 2889 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 2889 quit