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: Re: c-submode-indicators at wrong place in minor-mode-alist Date: Fri, 16 Dec 2005 09:08:12 +1300 Message-ID: <17313.52524.159919.155845@kahikatea.snap.net.nz> References: <17312.47104.983030.315296@kahikatea.snap.net.nz> 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 1134677649 553 80.91.229.2 (15 Dec 2005 20:14:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 20:14:09 +0000 (UTC) Cc: Stefan Monnier , bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Thu Dec 15 21:14:00 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmzQQ-00082N-RS for sf-cc-mode-help@m.gmane.org; Thu, 15 Dec 2005 21:10:03 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 18A6F88C56; Thu, 15 Dec 2005 12:10:02 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EmzPf-0003vf-O6 for cc-mode-help@lists.sourceforge.net; Thu, 15 Dec 2005 12:09:15 -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 1EmzPa-0002xS-Fy for cc-mode-help@lists.sourceforge.net; Thu, 15 Dec 2005 12:09:15 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EmzO5-0002e6-U7 for bug-cc-mode@gnu.org; Thu, 15 Dec 2005 15:07:38 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1EmzSO-00046y-E6 for bug-cc-mode@gnu.org; Thu, 15 Dec 2005 15:12:07 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmzSN-00045B-8i; Thu, 15 Dec 2005 15:12:04 -0500 Original-Received: from kahikatea.snap.net.nz (p14-tnt1.snap.net.nz [202.124.110.14]) by viper.snap.net.nz (Postfix) with ESMTP id 2C7BF73177B; Fri, 16 Dec 2005 09:08:44 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id E004A8393; Fri, 16 Dec 2005 09:08:12 +1300 (NZDT) Original-To: Alan Mackenzie 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: Fri, 16 Dec 2005 09:08:12 +1300 Xref: news.gmane.org gmane.emacs.cc-mode.general:2801 gmane.emacs.devel:47810 Archived-At: > > 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. > > As a matter of interest, are any of these mousey things coupled with a > particular window manager or toolkit or the like? (Personally, I develop > with Emacs on a tty.) If you develop on a tty, how do you know if GUI related features work? The patch below seems to fix it for me. I think I have associated each function with the right variable but these aren't really minor modes in the normal sense (if they were the functions and variables would have the same name). > >For some reason none of the defvars in cc-langs.el seem to have doc strings. > > Some do - `c-identifier-syntax-table', for example. OK, but it seems particularly important that c-submode-indicators has one if the user is to understand the mode line. > >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. > > That's not unfair. ;-) Most of these macros are for smoothing over the > differences between (X)Emacs versions (we've only just dropped support > for Emacs 19.34), getting a steady compilation environment (so that byte > compilation will do the Right Thing regardless of what's loaded in the > Emacs Lisp space) or for language variables. CC mode seems to have become much more complicated, but that might be because its much more powerful. I don't know, I just find it hard to understand. Nick *** cc-langs.el 04 Dec 2005 00:50:02 +1300 1.35 --- cc-langs.el 14 Dec 2005 22:03:58 +1300 *************** *** 258,266 **** (c-fn-region-is-active-p)])) "----" ("Toggle..." ! ["Syntactic indentation" c-toggle-syntactic-indentation t] ! ["Auto newline" c-toggle-auto-newline t] ! ["Hungry delete" c-toggle-hungry-state t]))) ;;; Syntax tables. --- 258,269 ---- (c-fn-region-is-active-p)])) "----" ("Toggle..." ! ["Syntactic indentation" c-toggle-syntactic-indentation ! :style toggle :selected c-syntactic-indentation] ! ["Auto newline" c-toggle-auto-newline ! :style toggle :selected c-auto-newline] ! ["Hungry delete" c-toggle-hungry-state ! :style toggle :selected c-hungry-delete-key]))) ;;; Syntax tables. ------------------------------------------------------- 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