From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Newsgroups: gmane.emacs.help Subject: Local Variables question: c-file-style and c-doc-comment-style Date: Tue, 16 Jan 2007 09:21:01 +0100 Message-ID: <45AC8AED.1060909@warum-ada.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168935679 32530 80.91.229.12 (16 Jan 2007 08:21:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 08:21:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 09:21:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H6jZE-0002Mi-Q3 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 09:21:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6jZE-00051f-Lj for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 03:21:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6jZ3-00051N-MW for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:21:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6jZ2-00050g-1p for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:21:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6jZ1-00050d-VK for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:21:04 -0500 Original-Received: from [194.8.194.137] (helo=smtp4.netcologne.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6jZ1-00067Y-KO for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:21:03 -0500 Original-Received: from [192.168.0.4] (xdsl-84-44-152-89.netcologne.de [84.44.152.89]) by smtp4.netcologne.de (Postfix) with ESMTP id 1DBA1DA9B9 for ; Tue, 16 Jan 2007 09:21:02 +0100 (CET) User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Original-To: help-gnu-emacs list X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40353 Archived-At: Hi all, (I'm new here, so first of all: Best greetings to everyone!) I have a problem concerning local variables in files (set by a "Local Variables:" block at the end of a file). Here's what I'm trying to achieve: In C++ files, I'd like to set the indentation style (stroustrup), apply some customizations (indentation inside namespace blocks), and turn on a specific documentation comment style (javadoc). I currently do it like this: > // Local Variables: > // c-file-style:"stroustrup" > // c-file-offsets:((innamespace . 0)) > // c-doc-comment-style:javadoc > // End: Setting the indentation style and changing the indentation inside namespaces works fine, but the doc-comment style is NOT set. Looking at variable c-doc-comment-style, it tells me that it's local within that buffer and having a setting different from the global default: > c-doc-comment-style's value is > ((java-mode . javadoc) > (pike-mode . autodoc)) > > Local in buffer EadesLinSmythProgression.hpp; global value is > ((c++-mode . javadoc) > (java-mode . javadoc) > (pike-mode . autodoc)) The documentation on c-file-style says that having a non-zero value for this variable automatically makes all style variables local, so I guess that's the problem. How do I manage to set the doc-comment style? Defining an own style (in my personal Emacs config) including that setting is not an option, as other people (with other config files) should be able to work with these files without nuking the indentation. emacs-version: 21.4.1 mode: c++-mode (CC Mode version 5.30.9) (Semantic version 2.0pre3) OS: Linux (Fedora Core 4) Have fun ----Daniel (I think I failed in my first attempt to send this message to the list, using the wrong mail account. Apologies if this shows up twice!)