From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: comment-start redefined in cc-langs.el Date: Tue, 2 May 2006 07:58:55 +0000 (GMT) Message-ID: References: <44537B33.7080600@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1146564387 30936 80.91.229.2 (2 May 2006 10:06:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 10:06:27 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 12:06:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Farlr-0004Ra-Di for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 12:06:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Farlr-0004Sw-4v for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 06:06:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Farlg-0004Sr-84 for emacs-devel@gnu.org; Tue, 02 May 2006 06:06:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Farld-0004RI-Ks for emacs-devel@gnu.org; Tue, 02 May 2006 06:06:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Farld-0004RE-Hm for emacs-devel@gnu.org; Tue, 02 May 2006 06:06:05 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Farlg-0006Cq-VW; Tue, 02 May 2006 06:06:09 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id HAA00527; Tue, 2 May 2006 07:58:56 GMT X-Sender: root@acm.acm Original-To: martin rudalics In-Reply-To: <44537B33.7080600@gmx.at> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53777 Archived-At: Hi, Martin! On Sat, 29 Apr 2006, martin rudalics wrote: [ .... ] >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' >... Yes, me too. This is indeed not funny (Ha ha ha ha!) I'm not sure why it reports cc-engine.el, but better just to fix it. >If I now click on `cc-engine.el' I am told >find-function-search-for-symbol: Cannot find definition of >`comment-start' in library `cc-engine.el' The definition is actually in cc-langs.el, ~L1106: (c-lang-defvar comment-start (c-lang-const comment-start) 'dont-doc) What seems needed is a new macro c-lang-SETvar, a sister to c-lang-defvar. I'll write this. >The same holds for `comment-end' and `comment-start-skip'. Yes, indeed. A quick grep for "(c-lang-defvar " reveals that these are the only non-CC Mode variables redefined in this way. >Would it be possible to rename these to `c-comment-start', >`c-comment-end', and `c-comment-start-skip' in `cc-langs.el'? No, that's not the right thing. The idea is to give the standard Emacs variables the appropriate CC Mode settings (different for each CC mode). Thanks for the bug report. -- Alan Mackenzie (Munich, Germany)