unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Luc Teirlinck" <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: RE: patch for buff-menu.el enhancements
Date: Tue, 10 Jul 2007 10:25:07 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACAEGICAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <200707101602.l6AG2H2p005213@jane.dms.auburn.edu>

>    ! If `Buffer-menu-use-header-line' is non-nil, you can click a
>    ! column heading to sort by that column.
>
> _Without_ your patch, you can do that even if
> `Buffer-menu-use-header-line' is nil.  Disabling the feature in that
> case is definitely not improvement; in fact I consider it a bug.

I disabled nothing of the kind. The doc string was incorrect, sorry. Here's
the correction: Please remove the phrase "If `Buffer-menu-use-header-line'
is non-nil, ".  Thanks for noticing that.

> I do not understand _why_ you want to reimplement the existing feature,
> which seems to work perfectly fine to me and also plays well with
> autoreverting the buffer menu.  (I did not check if your
> reimplementation does.)

Please try it.  I don't think I did what you suggest.  There is no problem
reverting the buffer. Reverting changes nothing; the current sort is
maintained.

FWIW, I proposed essentially this same patch back in 2004. I updated it for
the latest version of buff-menu.el. See, for example, these threads:

* 2004/10/16, "buff-menu.el - minor enhancement to sort
  columns up or down"
* 2004/11/19, "buff-menu.el header line"
* 2005/11/28, "Buffer listing in multiple frames/ttys"
 (related wrt sorting)

The only changes from vanilla Emacs wrt column sorting that my patch makes
are those I mentioned, in particular, (1) being able to sort in either
direction, (2) indicating the current sort column and sort direction with an
overline/underline of the column heading, and (3) being able to also sort
column `CRM' (one direction of which is the default sort).

For those who use Windows Explorer, you will recognize this
click-column-header sorting; you probably use it many times a day. IMO, it
is one of the most useful features of Windows Explorer. I think we should do
the same thing for Dired.

  reply	other threads:[~2007-07-10 17:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09 23:52 patch for buff-menu.el enhancements Drew Adams
2007-07-10 16:02 ` Luc Teirlinck
2007-07-10 17:25   ` Drew Adams [this message]
2007-07-10 21:21     ` Mathias Dahl
2007-07-10 21:56       ` Drew Adams
2007-07-11 10:00         ` Mathias Dahl
2007-07-15 17:42 ` Drew Adams

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=BNELLINCGFJLDJIKDGACAEGICAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=teirllm@dms.auburn.edu \
    /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).