From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pony Newsgroups: gmane.emacs.help Subject: Re: How to split the popup "Buffer Menu" by major mode? Date: Mon, 18 Oct 2010 14:42:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5995c283-0006-4579-99ea-b6b65e0575e5@k22g2000yqh.googlegroups.com> References: 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: dough.gmane.org 1291875787 1800 80.91.229.12 (9 Dec 2010 06:23:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 06:23:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 07:23:03 2010 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.69) (envelope-from ) id 1PQZuA-0006wg-87 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 07:23:02 +0100 Original-Received: from localhost ([127.0.0.1]:51515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQZu9-0007F2-A7 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:23:01 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!k22g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 93.216.247.241 Original-X-Trace: posting.google.com 1287438175 16619 127.0.0.1 (18 Oct 2010 21:42:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 18 Oct 2010 21:42:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k22g2000yqh.googlegroups.com; posting-host=93.216.247.241; posting-account=HeF48AoAAADJjyb_W7wYktndwC9KZqr5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:181854 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:76786 Archived-At: On Oct 18, 10:17=A0pm, "Drew Adams" wrote: > > When press click the left button with ctrl key pressed > > (), emacs will run the command "mouse-buffer-menu". > > > If I open a lot of buffers in different modes, the popup menu will > > generate several submenus as "Buffers 1", "Buffers 2", "Buffers 3" > > and so on. > > Is there a way to make the popup menu split according to buffers' > > major modes? For example, "C++", "Java", "Org-mode"? > > No doubt someone else will be able to help you more, but take a look at o= ption > `mouse-buffer-menu-mode-mult' (whose doc string is not very good, IMHO). > Setting it to 1 or 0 should apparently do what you want. > > FWIW - `mouse-buffer-menu' also uses variable `mouse-buffer-menu-mode-gro= ups'. > According to the (nearly incomprehensible) doc string for > `mouse-buffer-menu-mode-mult' you should not need to modify > `mouse-buffer-menu-mode-groups'. =A0But you might try doing so anyway jus= t to see > what happens. ;-) =A0Apparently things are meant to be magic, which is to= o often > just another word for user-unfriendly. ;-) Hi Drew, I add (setq mouse-buffer-menu-mode-mult 1) into .emacs, and it works perfectly. (setq mouse-buffer-menu-mode-mult 0) works also. The default value is 4. Thanks! regards, Lingyu