From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.devel Subject: Re: indentation style Date: Sat, 23 Apr 2011 12:51:20 +0200 Message-ID: References: <9B3B6773-24D4-4ED7-8635-58B321E48A17@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1303555896 21503 80.91.229.12 (23 Apr 2011 10:51:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Apr 2011 10:51:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 23 12:51:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QDaR0-0001GT-Bz for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2011 12:51:30 +0200 Original-Received: from localhost ([::1]:60664 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDaQz-0000y2-Bv for ged-emacs-devel@m.gmane.org; Sat, 23 Apr 2011 06:51:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDaQw-0000xx-GK for emacs-devel@gnu.org; Sat, 23 Apr 2011 06:51:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDaQv-0004lm-Im for emacs-devel@gnu.org; Sat, 23 Apr 2011 06:51:26 -0400 Original-Received: from mta-1.ms.rz.rwth-aachen.de ([134.130.7.72]:60511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDaQv-0004li-CN for emacs-devel@gnu.org; Sat, 23 Apr 2011 06:51:25 -0400 Original-Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LK300HLZQ5OS130@mta-1.ms.rz.RWTH-Aachen.de> for emacs-devel@gnu.org; Sat, 23 Apr 2011 12:51:24 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.64,258,1301868000"; d="scan'208";a="108128773" Original-Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Sat, 23 Apr 2011 12:51:24 +0200 Original-Received: from plaetekopp (plaetekopp.informatik.RWTH-Aachen.DE [137.226.59.97]) by relay.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id p3NApO7I003129 for ; Sat, 23 Apr 2011 12:51:24 +0200 (CEST) Original-Received: from crotti by plaetekopp with local (Exim 4.72) (envelope-from ) id 1QDaQq-00019W-LP for emacs-devel@gnu.org; Sat, 23 Apr 2011 12:51:20 +0200 In-reply-to: <9B3B6773-24D4-4ED7-8635-58B321E48A17@gmail.com> User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 134.130.7.72 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138653 Archived-At: Andrea Crotti writes: > In .dir-locals there are settings for the style in C-mode, and the > variable c-indentation-style gets actually set correctly. > > BUT if I try to do an reindent everything gets messed up (for example on > emacs.c or dired.c) so the style set there is wrong or some files are > not written in this style, or maybe the style has changed... > > Any idea of the reason? > Thanks, > Andrea I tried a bit more and still don't get it. If I do M-x c-set-style gnu RET everything works fine, but the variable is set to the same thing as if I don't do anything. So I think this hook is not working correctly on this machine... (c-mode . ((c-file-style . "GNU"))) Any other explanation? -- GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-03-04 on plaetekopp