From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: c-submode-indicators at wrong place in minor-mode-alist Date: Thu, 15 Dec 2005 13:25:36 +1300 Message-ID: <17312.47104.983030.315296@kahikatea.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134606522 15850 80.91.229.2 (15 Dec 2005 00:28:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 00:28:42 +0000 (UTC) Cc: emacs-devel@gnu.org, bug-cc-mode@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Thu Dec 15 01:28:40 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Emgxa-0000R2-EL for sf-cc-mode-help@m.gmane.org; Thu, 15 Dec 2005 01:27:02 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 997D71356D; Wed, 14 Dec 2005 16:27:01 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1Emgwt-0006GZ-F2 for cc-mode-help@lists.sourceforge.net; Wed, 14 Dec 2005 16:26:19 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1Emgws-0008F6-PT for cc-mode-help@lists.sourceforge.net; Wed, 14 Dec 2005 16:26:19 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EmgvW-0007pp-5z for bug-cc-mode@gnu.org; Wed, 14 Dec 2005 19:24:54 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1EmgzZ-0007X2-48 for bug-cc-mode@gnu.org; Wed, 14 Dec 2005 19:29:06 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmgzY-0007Wk-Lr; Wed, 14 Dec 2005 19:29:05 -0500 Original-Received: from kahikatea.snap.net.nz (p129-tnt1.snap.net.nz [202.124.110.129]) by viper.snap.net.nz (Postfix) with ESMTP id 6D6D9731ECB; Thu, 15 Dec 2005 13:26:08 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 3F4B18420; Thu, 15 Dec 2005 13:25:38 +1300 (NZDT) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.22 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Thu, 15 Dec 2005 13:25:36 +1300 Xref: news.gmane.org gmane.emacs.cc-mode.general:2796 gmane.emacs.devel:47751 Archived-At: > After opening a C file and activating smerge-mode, I get a modeline > that reads: > > ............... (C SMerge/l Fly Abbrev) > > The /l comes from c-submode-indicators and has nothing to do with SMerge. > > The problem is that SMerge was loaded after C mode was turned on so it ended > up in front of c-submode-indicators in minor-mode-alist. > > I think that c-submode-indicators should either be put in mode-line-process, > or that c-mode sets mode-name to '("C" c-submode-indicators). I have also made the following bug report for c-submode-indicators (4th Dec) but not heard anything, possibly because I didn't cc to bug-cc-mode@gnu.org last time: I have two suggestions: 1) Clicking mouse-2 on the characters after "C" on the mode-line describes c-submode-indicators. It would be helpful if this variable was documented to explain the meaning of its value. 2) The sub-menus of the "Toggle..." menu-item should be radio buttons so the user can see their current value. Also the menu item "Syntactic indentation" is permanently disabled and can't be toggled. For some reason none of the defvars in cc-langs.el seem to have doc strings. The missing functionality might be due to my setup: CC mode almost seems to be a dialect of Emacs Lisp with its own virtual world of macros. Nick ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click