From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: z0d Newsgroups: gmane.emacs.help Subject: Re: Sorting buffers with ibuffer Date: Tue, 25 Nov 2008 19:29:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <868f7753-ea47-4f70-9152-ae1a4ee62a6a@r40g2000yqj.googlegroups.com> <80823b7e-19ca-4522-a20a-de9db9cbc3c8@j38g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227689552 20498 80.91.229.12 (26 Nov 2008 08:52:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 08:52:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 09:53:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L5G99-0000cV-00 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 09:53:19 +0100 Original-Received: from localhost ([127.0.0.1]:43879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5G7y-00059V-2j for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 03:52:06 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j32g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-NNTP-Posting-Host: 94.44.8.219 Original-X-Trace: posting.google.com 1227670165 331 127.0.0.1 (26 Nov 2008 03:29:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 26 Nov 2008 03:29:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j32g2000yqn.googlegroups.com; posting-host=94.44.8.219; posting-account=_VxlBgoAAADZXnZrUdjWInzVVok9gw28 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164785 X-Mailman-Approved-At: Wed, 26 Nov 2008 03:51:09 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60120 Archived-At: On Nov 23, 3:39=A0am, "Juanma Barranquero" wrote: > > Could you show us =A0an example? > Yes: shell: emacs -q .emacs .ssh/config .Emacs-lisp/init-lisp.el M-: (setq-default ibuffer-default-sorting-mode 'major-mode) M-x ibuffer produces: MR Name Size Mode Filename/Process -- ---- ---- ---- ---------------- [ Default ] asdf-skeleton.el 1052 Emacs-Lisp ~/.Emacs-Lisp/asdf- skeleton.el config 488 Conf[Space] ~/.ssh/config .emacs 13170 Emacs-Lisp ~/.emacs *scratch* 191 Lisp Interaction * *Messages* 142 Fundamental % *GNU Emacs* 744 Fundamental 6 buffers 15787 3 files, no processes > In a recently started Emacs, with several buffers loaded through > desktop.el, doing > > =A0M-: (setq-default ibuffer-default-sorting-mode 'major-mode) > =A0M-x ibuffer > > produces: > > =A0MR Name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Size Mode =A0 =A0 =A0 = =A0 =A0 =A0 Filename/Process > =A0-- ---- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0---- ---- =A0 =A0 =A0 = =A0 =A0 =A0 ---------------- > [ Default ] > =A0 =A0 emacsclient.c =A0 =A0 =A0 =A0 =A039732 C/lah =A0 =A0 =A0 =A0 =A0 = =A0c:/emacs/lib-src/emacsclient.c > =A0 =A0 misc/ChangeLog =A0 =A0 =A0 =A0169122 Change Log =A0 =A0 =A0 c:/em= acs/doc/misc/ChangeLog > =A0 =A0 lisp/ChangeLog =A0 =A0 =A0 =A0595040 Change Log =A0 =A0 =A0 c:/em= acs/lisp/ChangeLog > =A0 =A0 bs.el =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A056668 Emacs-Lisp =A0 =A0= =A0 c:/emacs/lisp/bs.el > =A0 =A0 server.el =A0 =A0 =A0 =A0 =A0 =A0 =A052641 Emacs-Lisp =A0 =A0 =A0= c:/emacs/lisp/server.el > =A0 % init.el =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A079607 Emacs-Lisp =A0 =A0 =A0= ~/.emacs.d/init.el > =A0* =A0*Messages* =A0 =A0 =A0 =A0 =A0 =A0 =A0 372 Fundamental > =A0 % *server* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0 Fundamental > =A0 % *info* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0280500 Info > =A0 =A0 *scratch* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00 Lisp Interaction > > which is correctly sorted by major-mode > > =A0 =A0 =A0 =A0 =A0 =A0 =A0Juanma