From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aaron S. Hawley" Newsgroups: gmane.emacs.bugs Subject: bug#13411: 24.2.91; Sorting in Buffer Menu Mode Date: Thu, 31 Jan 2013 21:41:04 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1359686481 32631 80.91.229.3 (1 Feb 2013 02:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 02:41:21 +0000 (UTC) Cc: 13411@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 03:41:41 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U16ZR-0001qv-4i for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2013 03:41:41 +0100 Original-Received: from localhost ([::1]:58626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U16Z8-00059k-Tp for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jan 2013 21:41:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U16Z5-00059b-9r for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2013 21:41:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U16Z4-0002N6-1A for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2013 21:41:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U16Z3-0002Mv-Tl for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2013 21:41:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U16Zm-0001c7-DT for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2013 21:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Aaron S. Hawley" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Feb 2013 02:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13411 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13411-submit@debbugs.gnu.org id=B13411.13596865146190 (code B ref 13411); Fri, 01 Feb 2013 02:42:02 +0000 Original-Received: (at 13411) by debbugs.gnu.org; 1 Feb 2013 02:41:54 +0000 Original-Received: from localhost ([127.0.0.1]:58314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U16Zd-0001bm-SC for submit@debbugs.gnu.org; Thu, 31 Jan 2013 21:41:54 -0500 Original-Received: from mail-qc0-f176.google.com ([209.85.216.176]:48628) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U16Za-0001bd-OW for 13411@debbugs.gnu.org; Thu, 31 Jan 2013 21:41:51 -0500 Original-Received: by mail-qc0-f176.google.com with SMTP id n41so1563694qco.35 for <13411@debbugs.gnu.org>; Thu, 31 Jan 2013 18:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=qAsXu/F6jvcNkegYBoRHRpEt4Jt9yvXcsp1BaXTDzhg=; b=RDfay0KrBktEKy1GB4NU9cuX+VFhVeVtzWyXGoU3fogm8r67jsab7gUu2zJo5eyi0P XIM3qmTqZdcE1mtGXk9bZx7uuGj3kI55Svm2/odBk7gBUmANVphTc3qEp7at62T545qV ZIUXJnVQaVUAAHu0d+53osVmbpgOGUHDww/EaUSOcIC8DX/z6DvxEBk5guQ7OvqvBpqD zrY1yivhFfGIJE12cTNkYR8gZ4yCKsGZP2IpENGR1XADltGxTme5TQA4UDCgoUVNRddz T5u4JO9zbydKOPhquXesEQAJApVL4fJzMVVAr+E43gvKRPyXtCgo9B5axN5NQgjMJWbI j50Q== X-Received: by 10.49.2.35 with SMTP id 3mr12768493qer.36.1359686464634; Thu, 31 Jan 2013 18:41:04 -0800 (PST) Original-Received: by 10.49.48.42 with HTTP; Thu, 31 Jan 2013 18:41:04 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70547 Archived-At: >> How do I disable sorting so that it goes back to the default order of >> buffer-list? > > This is a tabulated list mode issue. > Maybe you can just (setq tabulated-list-sort-key nil); followed by g. Nice hack! I also noticed another hack where you can reset the buffer list by doing M-0 M-x Bufer-menu-sort RET and then followed by g as well. >> 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. > > Maybe 0 S is a good suggestion. Agreed. Unfortunately, tabulated-list-mode is 0-based. So other modes based on t-l-m might want to sort on the first column (in my last email I pointed out at the sorting on the current buffer is pointless). I'd suggest making it 1-based. This would affect Buffer Menu M-x buffer-menu -- sort by display time M-1 M-x Buffer-menu-sort -- sort by current buffer (there is none!) M-2 M-x Buffer-menu-sort -- sort by read-only M-3 M-x Buffer-menu-sort -- sort by modification flag M-4 M-x Buffer-menu-sort -- sort by name M-5 M-x Buffer-menu-sort -- sort by size (descending) M-6 M-x Buffer-menu-sort -- sort by mode M-7 M-x Buffer-menu-sort -- sort by file name M-x Buffer-menu-sort -- sort by the column at point I forgot to mention the `tabulated-list-sort' command doesn't even understand a bare C-u argument. Just numeric ones. That should be fixed as well. I can work on a patch for all this if it sounds good. /a -- In general, we reserve the right to have a poor memory--the computer, however, is supposed to remember! Poor computer. -- Guy Lewis Steele Jr.