From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel,gmane.emacs.cc-mode.general Subject: Local Variables in C Files Date: Fri, 23 Feb 2007 15:01:32 +0100 Organization: disorganized Message-ID: <87y7mp6khv.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172239773 3112 80.91.229.12 (23 Feb 2007 14:09:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 14:09:33 +0000 (UTC) Cc: cc-mode-help@lists.sourceforge.net To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 23 15:09:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKb6y-0000Ry-G7 for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 15:09:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKb6x-0001Gl-Q0 for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 09:09:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKb6L-00018j-C6 for emacs-devel@gnu.org; Fri, 23 Feb 2007 09:08:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKb6J-00017y-GL for emacs-devel@gnu.org; Fri, 23 Feb 2007 09:08:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKb6J-00017l-2o for emacs-devel@gnu.org; Fri, 23 Feb 2007 09:08:43 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKb6I-0005go-DK for emacs-devel@gnu.org; Fri, 23 Feb 2007 09:08:42 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HKb6D-00032P-3N for emacs-devel@gnu.org; Fri, 23 Feb 2007 15:08:37 +0100 Original-Received: from e178024004.adsl.alicedsl.de ([85.178.24.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Feb 2007 15:08:37 +0100 Original-Received: from david.hansen by e178024004.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Feb 2007 15:08:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178024004.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:OECyvHPcUITWNntkPseFTDEOam0= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:66668 gmane.emacs.cc-mode.general:4409 Archived-At: Hello, I'm not sure if one could call this a bug, it's at least a bit annoying: Open some C file, switch the style to "linux" (C-c . linux RET) and add local Variables at the end of the file "the emacs Way": using M-; to start the comment and M-j to start a new line. The Result will look something like: /* Local Variables: * compile-command: "echo foo" * End: */ C-x C-s C-x C-v the file and you'll get an error. `hack-local-variables' can't find the end (due to the starting "*" and ending "*/"). David