From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4146: 23.1.50; c-file-style in buffer local variables does not work! Date: Sat, 15 Aug 2009 00:10:08 -0700 (PDT) Message-ID: <200908150710.n7F7A8el004126@godzilla.ics.uci.edu> References: <20090815034112.GA30719@shareable.org> Reply-To: Dan Nicolaescu , 4146@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250321307 26572 80.91.229.12 (15 Aug 2009 07:28:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2009 07:28:27 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 4146@emacsbugs.donarmstrong.com To: Jamie Lokier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 15 09:28:19 2009 Return-path: Envelope-to: geb-bug-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 1McDgY-0000km-Si for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 09:28:19 +0200 Original-Received: from localhost ([127.0.0.1]:35801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McDgY-0001wU-Bs for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 03:28:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McDgT-0001wI-VM for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 03:28:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McDgP-0001vr-CS for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 03:28:13 -0400 Original-Received: from [199.232.76.173] (port=37379 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McDgP-0001vo-78 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 03:28:09 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:47893) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McDgO-0002bD-Nx for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 03:28:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McDgO-0004mg-2R for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 03:28:08 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7F7QnhL032513; Sat, 15 Aug 2009 00:26:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7F7K4ES031412; Sat, 15 Aug 2009 00:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 15 Aug 2009 07:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4146 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125032037830524 (code B ref -1); Sat, 15 Aug 2009 07:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Aug 2009 07:12:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7F7Cu3E030521 for ; Sat, 15 Aug 2009 00:12:58 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:35942 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1McDRf-0000Gm-O3 for emacs-pretest-bug@gnu.org; Sat, 15 Aug 2009 03:12:55 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1McDRd-00014o-Mp for emacs-pretest-bug@gnu.org; Sat, 15 Aug 2009 03:12:55 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:47076) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McDRd-0000x7-CD for emacs-pretest-bug@gnu.org; Sat, 15 Aug 2009 03:12:53 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McDQA-00041a-D5 for emacs-pretest-bug@gnu.org; Sat, 15 Aug 2009 03:11:22 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n7F7A8pN022318; Sat, 15 Aug 2009 00:10:08 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n7F7A8el004126; Sat, 15 Aug 2009 00:10:08 -0700 (PDT) In-Reply-To: <20090815034112.GA30719@shareable.org> (Jamie Lokier's message of "Sat, 15 Aug 2009 04:41:12 +0100") Original-Lines: 42 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n7F7A8pN022318 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Detected-Operating-System: by mx20.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Sat, 15 Aug 2009 03:28:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30193 gmane.emacs.pretest.bugs:24957 Archived-At: Jamie Lokier writes: > Hi, > > > In GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1) > of 2009-07-31 on lansones, modified by Debian > (emacs-snapshot package, version 1:20090730-1~jaunty1) > (= the Ubuntu-PPA Jaunty package at the time of writing) > > In theory, if you put this at the top of a file, you'd expect C > indentation style to be Linux style instead of the default GNU style > (it's just an example): > > -*- c-file-style: "linux" -*- > > I have just opened a fresh new emacs-23.1.50.1 with "emacs -Q -nw" > and then opened a file called foo.c containing that line. > > What I found is that the variable c-file-style is set to "linux" and > is buffer-local, but it does not have the effect of setting the C > indentation style. > > This is the output of C-h v c-file-style RET from that buffer: > > c-file-style is a variable defined in `cc-vars.el'. > Its value is "linux" > Local in buffer foo.c; global value is nil > > Automatically becomes buffer-local when set in any fashion. > This variable is a file local variable. > This variable is safe as a file local variable if its value > satisfies the predicate `string-or-null-p'. > > The problem is that the variable is set correctly, but the intended > effect of setting the C indentation style does not happen. I can confirm this. This is a regression, it works as expected in emacs-22.3. IMO this is the type of bad bug that warrants making a dot release as soon as it's fixed.