From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: comment-start redefined in cc-langs.el Date: Fri, 21 Jul 2006 18:05:54 +0200 Message-ID: <44C0FB62.8030602@gmx.at> References: <44537B33.7080600@gmx.at> <20060720104433.GA1575@muc.de> 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 1153498074 20572 80.91.229.2 (21 Jul 2006 16:07:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2006 16:07:54 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Fri Jul 21 18:07:50 2006 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G3xXP-0000zM-Db for sf-cc-mode-help@m.gmane.org; Fri, 21 Jul 2006 18:07:39 +0200 Original-Received: from sc8-sf-list1-new.sourceforge.net (unknown [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 3D489FBA7; Fri, 21 Jul 2006 09:07:38 -0700 (PDT) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1G3xXN-0005lw-4d for cc-mode-help@lists.sourceforge.net; Fri, 21 Jul 2006 09:07:37 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:RC4-SHA:128) (Exim 4.44) id 1G3xXM-0007fQ-Ln for cc-mode-help@lists.sourceforge.net; Fri, 21 Jul 2006 09:07:37 -0700 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G3xXA-0006C0-OC for bug-cc-mode@gnu.org; Fri, 21 Jul 2006 12:07:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.52) id 1G3xXR-0003fa-LA for bug-cc-mode@gnu.org; Fri, 21 Jul 2006 12:07:42 -0400 Original-Received: from [213.165.64.21] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1G3xXR-0003fO-4D for bug-cc-mode@gnu.org; Fri, 21 Jul 2006 12:07:41 -0400 Original-Received: (qmail invoked by alias); 21 Jul 2006 16:07:12 -0000 Original-Received: from N958P000.adsl.highway.telekom.at (EHLO [62.47.63.160]) [62.47.63.160] by mail.gmx.net (mp034) with SMTP; 21 Jul 2006 18:07:12 +0200 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: Alan Mackenzie In-Reply-To: <20060720104433.GA1575@muc.de> X-Y-GMX-Trusted: 0 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on monty-python X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.4 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 X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:3593 gmane.emacs.devel:57431 Archived-At: > Good Morning, Martin! > > On Sat, Apr 29, 2006 at 04:41:55PM +0200, martin rudalics wrote: > >>With emacs -Q do > > >>C-h v comment-start RET > > >>gets me > > >>comment-start is a variable defined in `newcomment.el' >>... > > >>Now load cc-mode in a new buffer, return to scratch, and do again > > >>C-h v comment-start RET > > >>gets me > > >>comment-start is a variable defined in `cc-engine.el' >>... > > > OK, here is a patch. > > Basically, the declarations like (c-lang-defvar comment-start ....) (in > cc-langs.el ~L1131) were causing forms (defvar comment-start ...) to get > generated in cc-engine.el (via the macro c-declare-lang-variables). > > I have added the macro c-lang-setvar which does all the fancy stuff that > c-lang-defvar does, only without generating the defvar. > > Please let me know if there are any problems with this patch. Good evening, Alan! I'm afraid the patch doesn't change a thing in the behavior of my Emacs. Would I have to do anything else but patch&recompile these two files? Anyway, if I look at `load-history', the definitions from cc-engine.elc still precede textually those from newcomment.elc, doesn't that come from (c-lang-defconst comment-start ... ? martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV