From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to split the popup "Buffer Menu" by major mode? Date: Mon, 18 Oct 2010 13:17:17 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287433160 4661 80.91.229.12 (18 Oct 2010 20:19:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2010 20:19:20 +0000 (UTC) To: "'Lingyu Ma'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 18 22:19:18 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 1P7wAu-0005et-HP for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Oct 2010 22:19:17 +0200 Original-Received: from localhost ([127.0.0.1]:48794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7wAn-0003U4-8N for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Oct 2010 16:19:09 -0400 Original-Received: from [140.186.70.92] (port=45642 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7wAH-0003TF-5y for help-gnu-emacs@gnu.org; Mon, 18 Oct 2010 16:18:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7wAG-0002aX-2Z for help-gnu-emacs@gnu.org; Mon, 18 Oct 2010 16:18:37 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:56210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7wAF-0002aS-T3 for help-gnu-emacs@gnu.org; Mon, 18 Oct 2010 16:18:36 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9IKIX6r009571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Oct 2010 20:18:34 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9IJG6Mj026861; Mon, 18 Oct 2010 20:18:29 GMT Original-Received: from abhmt013.oracle.com by acsmt353.oracle.com with ESMTP id 699931941287433034; Mon, 18 Oct 2010 13:17:14 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Oct 2010 13:17:13 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: Thread-Index: Actu+btkeTC5cbo+Q+yEBYR4VnxPqQABpOGA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:75157 Archived-At: > 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 option `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-groups'. According to the (nearly incomprehensible) doc string for `mouse-buffer-menu-mode-mult' you should not need to modify `mouse-buffer-menu-mode-groups'. But you might try doing so anyway just to see what happens. ;-) Apparently things are meant to be magic, which is too often just another word for user-unfriendly. ;-)