From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Patch: Blunderbuss ".dir-locals.el" raises everything in its path!! Date: Wed, 15 Jul 2009 09:55:43 +0200 Message-ID: <4A5D8B7F.6050603@swipnet.se> References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <87k52dycha.fsf@stupidchicken.com> <4A5AC184.5050805@gnu.org> <20090714162206.GC1718@muc.de> <20090714201150.GA1631@muc.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: ger.gmane.org 1247644814 21623 80.91.229.12 (15 Jul 2009 08:00:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2009 08:00:14 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org, Stefan Monnier , Jason Rumney To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 15 10:00:06 2009 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 1MQzPJ-00069G-Nu for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2009 10:00:06 +0200 Original-Received: from localhost ([127.0.0.1]:45507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQzPJ-0007eP-8g for ged-emacs-devel@m.gmane.org; Wed, 15 Jul 2009 04:00:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MQzLQ-0004gp-Lo for emacs-devel@gnu.org; Wed, 15 Jul 2009 03:56:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MQzLK-0004Wf-IJ for emacs-devel@gnu.org; Wed, 15 Jul 2009 03:56:03 -0400 Original-Received: from [199.232.76.173] (port=59727 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MQzLK-0004WT-CK for emacs-devel@gnu.org; Wed, 15 Jul 2009 03:55:58 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:8629) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MQzLG-0000RA-S1; Wed, 15 Jul 2009 03:55:55 -0400 Original-Received: from proxy1.bredband.net ([195.54.101.71]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MQzLF-0002mo-2d; Wed, 15 Jul 2009 03:55:53 -0400 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy1.bredband.net (7.3.140.3) id 49F5A152019C2E12; Wed, 15 Jul 2009 09:55:45 +0200 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsCZAPcnXUpV4S1uPGdsb2JhbACBUYgsjzABAQEBN7cqhAkF X-IronPort-AV: E=Sophos;i="4.42,403,1243807200"; d="scan'208";a="28058459" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by iph2.telenor.se with ESMTP; 15 Jul 2009 09:55:45 +0200 Original-Received: from [172.20.199.5] (winter [172.20.199.5]) by coolsville.localdomain (Postfix) with ESMTPSA id AA3207FA07B; Wed, 15 Jul 2009 09:55:44 +0200 (CEST) User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) In-Reply-To: <20090714201150.GA1631@muc.de> X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/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:112480 Archived-At: Alan Mackenzie skrev: > Hi, Jan, Jason, Stefan! > > > Here's a preliminary patch which I think fixes the code, though I've only > tested it briefly. It seems to work for the case you (Jan) were hit by. > > Now, any CC Mode style set by `c-file-style' will leave unchanged those > style variables (e.g. `c-cleanup-list') which have already been given > real values. > > I expect and intend that if the `c-file-style' mechanism is used twice, > the second one (in the file's Local Variable section) will prevail over > the first one (in some .dir-locals.el), whilst respecting the non-default > value of `c-cleanup-list'. > > Jan, please try it out! > It works if I set c-cleanup-list with customize, but not if it is set in the c-common-mode-hook (using add-to-list). Jan D.