From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Rubin Newsgroups: gmane.emacs.help Subject: Local Variables question: c-file-style and c-doc-comment-style Date: Tue, 16 Jan 2007 09:13:38 +0100 Message-ID: <45AC8932.6080400@math.uni-koeln.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 1168957848 21020 80.91.229.12 (16 Jan 2007 14:30:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2007 14:30:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 15:30:46 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 1H6pKW-0006xf-FL for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 15:30:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6pKW-0003LZ-Ha for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jan 2007 09:30:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6jRy-0001Gq-7d for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:13:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6jRw-0001EM-9P for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:13:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6jRw-0001EF-24 for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:13:44 -0500 Original-Received: from [194.8.194.66] (helo=smtp3.netcologne.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H6jRv-0004J7-N0 for help-gnu-emacs@gnu.org; Tue, 16 Jan 2007 03:13:43 -0500 Original-Received: from [192.168.0.4] (xdsl-84-44-152-89.netcologne.de [84.44.152.89]) by smtp3.netcologne.de (Postfix) with ESMTP id AC88367562 for ; Tue, 16 Jan 2007 09:13:38 +0100 (CET) User-Agent: Thunderbird 1.5.0.4 (X11/20060516) Original-To: help-gnu-emacs list X-Mailman-Approved-At: Tue, 16 Jan 2007 09:30:13 -0500 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:40358 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