unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Aaron S. Hawley" <aaron.s.hawley@gmail.com>
To: 13411@debbugs.gnu.org
Subject: bug#13411: 24.2.91; Sorting in Buffer Menu Mode
Date: Thu, 10 Jan 2013 13:40:39 -0500	[thread overview]
Message-ID: <CAFw1JJ6Xa_O0v-j_195KyPzrL=1r2gTTrxdwOq2mNNs+-fxevg@mail.gmail.com> (raw)

The old Buffer Menu Mode would sort only on 4 columns:

 M-x buffer-menu -- sort by display time
 M-2 M-x Buffer-menu-sort -- sort by name
 M-3 M-x Buffer-menu-sort -- sort by size (ascending)
 M-4 M-x Buffer-menu-sort -- sort by mode
 M-5 M-x Buffer-menu-sort -- sort by file name
 M-x Buffer-menu-sort -- go back to sorting by display time

The new Bufer Menu Mode can sort on 7 fields:

 M-x buffer-menu -- sort by display time
 M-0 M-x Buffer-menu-sort -- sort by current buffer (there is none!)
 M-1 M-x Buffer-menu-sort -- sort by read-only
 M-2 M-x Buffer-menu-sort -- sort by modification flag
 M-3 M-x Buffer-menu-sort -- sort by name
 M-4 M-x Buffer-menu-sort -- sort by size (descending)
 M-5 M-x Buffer-menu-sort -- sort by mode
 M-6 M-x Buffer-menu-sort -- sort by file name
 M-x Buffer-menu-sort -- sort by the column at point

Repeating any of these twice reverses the order.  If sorting by size
descending, then sorting by size again switches to ascending.

I can live with these changes except for one:  How do I disable
sorting so that it goes back to the default order of buffer-list?  The
only way to do is to kill the buffer for Buffer Menu and run C-x C-b
to reopen it.

 M-x buffer-menu -- update the list, but keep the sort
 C-x k RET M-x buffer-menu -- go back to sorting by display time

Maybe it could with the M-0 argument since it's not being used.  Or
maybe a M-- argument since negative columns don't exist?  Although,
with 7 columns to remember now, maybe sorting the second to last
column with M-- M-2 should be available.

Otherwise looking forward to Emacs 24.3!
aaron

-- 
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember!  Poor computer.  -- Guy Lewis Steele Jr.





             reply	other threads:[~2013-01-10 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 18:40 Aaron S. Hawley [this message]
2013-01-30 19:53 ` bug#13411: 24.2.91; Sorting in Buffer Menu Mode Glenn Morris
2013-02-01  2:41   ` Aaron S. Hawley
2021-07-15 15:37 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFw1JJ6Xa_O0v-j_195KyPzrL=1r2gTTrxdwOq2mNNs+-fxevg@mail.gmail.com' \
    --to=aaron.s.hawley@gmail.com \
    --cc=13411@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).