GNU bug report logs - #2889
ibuffer: sorting by KEY + secondary key (buffer name)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Jari Aalto <jari.aalto <at> cante.net>; dated Sat, 4 Apr 2009 16:15:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.

Message received at submit <at> emacsbugs.donarmstrong.com:


Received: (at submit) by emacsbugs.donarmstrong.com; 4 Apr 2009 16:08:05 +0000
From jari.aalto <at> cante.net Sat Apr  4 09:08:05 2009
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 <submit <at> emacsbugs.donarmstrong.com>; 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 <submit <at> emacsbugs.donarmstrong.com>; 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 <submit <at> emacsbugs.donarmstrong.com>; 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 <jari.aalto <at> cante.net>)
	id 1Lq8PV-0001xJ-36
	for submit <at> 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 <jari.aalto <at> cante.net>)
	id 1Lq8PW-0000jR-F8
	for submit <at> emacsbugs.donarmstrong.com; Sat, 04 Apr 2009 19:07:58 +0300
From: Jari Aalto <jari.aalto <at> cante.net>
To: Emacs bug BTS <submit <at> debbugs.gnu.org>
Subject: ibuffer: sorting by KEY + secondary key (buffer name)
Date: Sat, 04 Apr 2009 19:07:58 +0300
Message-ID: <871vs8o10h.fsf <at> 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 <at> 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




Acknowledgement sent to Jari Aalto <jari.aalto <at> cante.net>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2889; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.