From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2833: 23.0.92; Bug in Directory Variables Date: Tue, 31 Mar 2009 15:32:02 +0100 Message-ID: <83bprhg3vh.fsf@cam.ac.uk> Reply-To: Leo , 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 1238510710 9050 80.91.229.12 (31 Mar 2009 14:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2009 14:45:10 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 16:46:27 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 1LofEQ-000651-SS for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 16:46:27 +0200 Original-Received: from localhost ([127.0.0.1]:38359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LofD3-0008ML-44 for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Mar 2009 10:45:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LofBy-0007sj-S6 for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2009 10:43:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LofBu-0007pS-Ol for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2009 10:43:54 -0400 Original-Received: from [199.232.76.173] (port=55502 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LofBu-0007pJ-HN for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2009 10:43:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59488) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LofBt-0007La-W3 for bug-gnu-emacs@gnu.org; Tue, 31 Mar 2009 10:43:50 -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 n2VEhkJm006777; Tue, 31 Mar 2009 07:43:46 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2VEe4oM005678; Tue, 31 Mar 2009 07:40:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: "Leo, Shidai Liu" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 31 Mar 2009 14:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2833 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12385099364332 (code B ref -1); Tue, 31 Mar 2009 14:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Mar 2009 14:32:16 +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.13.8/8.13.8/Debian-3) with ESMTP id n2VEWCbx004326 for ; Tue, 31 Mar 2009 07:32:13 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:57675 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lof0d-00005H-Ot for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 10:32:11 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lof0d-0005ih-25 for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 10:32:11 -0400 Original-Received: from ppsw-5.csi.cam.ac.uk ([131.111.8.135]:44006) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lof0c-0005iH-KE for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 10:32:10 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]:4870 helo=localhost) by ppsw-5.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.155]:587) with esmtpsa (PLAIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1Lof0a-0002CC-J3 (Exim 4.70) for emacs-pretest-bug@gnu.org (return-path ); Tue, 31 Mar 2009 15:32:08 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (windows-nt) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 31 Mar 2009 10:43:54 -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:26775 gmane.emacs.pretest.bugs:24205 Archived-At: I think there's a bug in direcotry variables code, that is, changing the directory variables would require a restart of Emacs for them to take effect. A recipe to reproduce: 1. Create a dir and write the following to file .dir-locals in the dir created: ((latex-mode . ((fill-column . 78) (coding . "latin-1")))) 2. Open or create a .tex file in that dir 3. C-h v fill-column RET to check the value 4. Change 78 to another value say 75 5. Re-open the .tex file and you will see fill-column has a value 78 NOT 75 In my view, this makes the `Directory Variables' feature much less useful. Any fix? In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600) of 2009-03-31 on BREPNB Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: LaTeX/P Minor modes in effect: reftex-mode: t TeX-PDF-mode: t dired-omit-mode: t recentf-mode: t icomplete-mode: t savehist-mode: t display-time-mode: t xterm-mouse-mode: t delete-selection-mode: t global-auto-revert-mode: t minibuffer-depth-indicate-mode: t which-function-mode: t show-paren-mode: t rcirc-track-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f . d i 8 C-x C-s C-h i m e m a m f i l e SPC v a r SPC SPC SPC l SPC l ^ q 8 C-x C-s C-x k M-x r e p o r Recent messages: Applying style hooks... done Type "q" to delete this window. Applying style hooks... done Type "q" to delete this window. Composing main Info directory...done Reverting buffer `.dir-locals.el'.