From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7767: 23.2.91; file-local-variables-alist should have the permanent-local property Date: Sat, 01 Jan 2011 14:38:58 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293911630 17918 80.91.229.12 (1 Jan 2011 19:53:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 19:53:50 +0000 (UTC) Cc: 7767@debbugs.gnu.org To: Alex Harsanyi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 01 20:53:46 2011 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.69) (envelope-from ) id 1PZ7WJ-0005S8-9d for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 20:53:43 +0100 Original-Received: from localhost ([127.0.0.1]:56295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ7WI-0004NL-8Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 14:53:42 -0500 Original-Received: from [140.186.70.92] (port=34855 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZ7WD-0004NG-KD for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:53:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZ7WC-0003hm-KX for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:53:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZ7WC-0003hi-Hd for bug-gnu-emacs@gnu.org; Sat, 01 Jan 2011 14:53:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PZ7BK-0004Wo-Gg; Sat, 01 Jan 2011 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jan 2011 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7767 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7767-submit@debbugs.gnu.org id=B7767.129391032117399 (code B ref 7767); Sat, 01 Jan 2011 19:32:02 +0000 Original-Received: (at 7767) by debbugs.gnu.org; 1 Jan 2011 19:32:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZ7BI-0004WY-Eo for submit@debbugs.gnu.org; Sat, 01 Jan 2011 14:32:01 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZ7BG-0004WG-DO for 7767@debbugs.gnu.org; Sat, 01 Jan 2011 14:31:58 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKIRH01Ld/TY/2dsb2JhbACkRHS8B4VKBIRljhs X-IronPort-AV: E=Sophos;i="4.60,261,1291611600"; d="scan'208";a="86877082" Original-Received: from 75-119-244-216.dsl.teksavvy.com (HELO pastel.home) ([75.119.244.216]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 01 Jan 2011 14:38:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C990E58D59; Sat, 1 Jan 2011 14:38:58 -0500 (EST) In-Reply-To: (Alex Harsanyi's message of "Sat, 1 Jan 2011 12:12:31 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 01 Jan 2011 14:32:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:42988 Archived-At: > I tried to debug the problem and it seems that `hack-local-variables' > will collect the local variables into `file-local-variables-alist' than > run the hook `before-hack-local-variables-hook' which containts the > function `c-before-hack-hook'. > `c-before-hack-hook' will see the `mode' variable and call `c++-mode' > which than will call `kill-all-local-variables' setting > `file-local-variables-alist' to nil so that the remaining variables are > not processed. It sounds like cc-mode does something odd here. > Adding the `permanent-local' property to `file-local-variables-alist' > seems to fix the problem. My first impression is rather that this would work around the problem introduced by cc-mode. So I'd first want to make sure that cc-mode has a good reason to call c++-mode from before-hack-local-variables-hook. > This happens both on the trunk and on the emacs-23 branch. Alan, could you enlighten us? Stefan