From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie 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 10:18:35 +0000 (GMT) Message-ID: References: <17313.52524.159919.155845@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1134752572 21024 80.91.229.2 (16 Dec 2005 17:02:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 17:02:52 +0000 (UTC) Cc: Stefan Monnier , bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Fri Dec 16 18:02:49 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnIv8-0000Ww-3G for sf-cc-mode-help@m.gmane.org; Fri, 16 Dec 2005 17:59: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 50FC112E09; Fri, 16 Dec 2005 08:59: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 1EnIuJ-0007Tv-Kl for cc-mode-help@lists.sourceforge.net; Fri, 16 Dec 2005 08:58:11 -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 1EnIuI-0004wW-CW for cc-mode-help@lists.sourceforge.net; Fri, 16 Dec 2005 08:58:11 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EnIsf-0006PD-Mn for bug-cc-mode@gnu.org; Fri, 16 Dec 2005 11:56:29 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1EnIxJ-00005S-2I for bug-cc-mode@gnu.org; Fri, 16 Dec 2005 12:01:17 -0500 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnIxH-000050-IC; Fri, 16 Dec 2005 12:01:16 -0500 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id KAA00581; Fri, 16 Dec 2005 10:18:37 GMT X-Sender: root@acm.acm Original-To: Nick Roberts In-Reply-To: <17313.52524.159919.155845@kahikatea.snap.net.nz> 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: 1.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 1.0 FORGED_RCVD_HELO Received: contains a forged HELO 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 10:18:35 +0000 (GMT) Xref: news.gmane.org gmane.emacs.cc-mode.general:2806 gmane.emacs.devel:47863 Archived-At: Hi, Nick! On Fri, 16 Dec 2005, Nick Roberts wrote: > > > 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? Good point. I've just been having a look at C Mode in X, and there seem to be one or two things there needing sorted out. >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). OK. Do you have any feel for how portable the fix is (In Emacs 20.n, 21.n, XEmacs 21.4.n)? > > >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. Another good point! The c-submode-indicators might be getting merged with the major-mode string, so this needs thinking about. > > >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. It is hard to understand. Partly, it's because C and friends are such a dreadful languages (to parse, that is ;-), partly because CC Mode handles seven different languages in a single package. It "jumped in complexity" between releases 5.28 and 5.30 (Summer 2003). It's probably more accurate to say that the complexity has been concentrated in a few hot-spots, allowing simplicity to pervade the rest. >Nick [ Supplied patch read] -- Alan. ------------------------------------------------------- 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