From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2833: 23.0.92; Bug in Directory Variables Date: Thu, 02 Apr 2009 14:50:42 -0400 Message-ID: <87skkqzy7x.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 2833@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 1238699106 31898 80.91.229.12 (2 Apr 2009 19:05:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 19:05:06 +0000 (UTC) Cc: 2833@emacsbugs.donarmstrong.com To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 02 21:06:23 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 1LpSE9-00051e-26 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 21:05:41 +0200 Original-Received: from localhost ([127.0.0.1]:39910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpSCl-0004fd-1S for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 15:03:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpSCh-0004ed-Ce for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 15:03:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpSCd-0004cs-Rl for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 15:03:55 -0400 Original-Received: from [199.232.76.173] (port=56898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpSCd-0004cj-NT for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 15:03:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35666) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LpSCd-0001Kq-25 for bug-gnu-emacs@gnu.org; Thu, 02 Apr 2009 15:03:51 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n32J3lIU013145; Thu, 2 Apr 2009 12:03:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n32It5NC010613; Thu, 2 Apr 2009 11:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 02 Apr 2009 18:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2833 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2833-submit@emacsbugs.donarmstrong.com id=B2833.12386981499086 (code B ref 2833); Thu, 02 Apr 2009 18:55:05 +0000 Original-Received: (at 2833) by emacsbugs.donarmstrong.com; 2 Apr 2009 18:49:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n32In6tE009079 for <2833@emacsbugs.donarmstrong.com>; Thu, 2 Apr 2009 11:49:07 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 19ED657E21E; Thu, 2 Apr 2009 14:50:42 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 02 Apr 2009 15:03:55 -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:26835 Archived-At: > I think there's a bug in directory variables code, that is, changing > the directory variables would require a restart of Emacs for them to > take effect. Tom, could you please take a shot at implementing this? It may be too late in the release to put this in 23.1 (depending on how complicated the change turns out to be), but this problem definitely needs fixing at some point. I guess this is what the following comment in files.el is referring to: (defun dir-locals-read-from-file (file) "Load a variables FILE and register a new class and instance. FILE is the name of the file holding the variables to apply. The new class name is the same as the directory in which FILE is found. Returns the new class name." (with-temp-buffer ;; We should probably store the modtime of FILE and then ;; reload it whenever it changes. (insert-file-contents file)