From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.bugs Subject: bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode Date: Thu, 1 Mar 2018 08:09:32 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1519888512 28509 195.159.176.226 (1 Mar 2018 07:15:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Mar 2018 07:15:12 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: 30663@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 01 08:15:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erIQk-0006lL-Pp for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Mar 2018 08:15:07 +0100 Original-Received: from localhost ([::1]:48691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erISm-0006qS-E0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Mar 2018 02:17:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erISg-0006qH-8G for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erISc-0007zj-6z for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:17:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erISc-0007zM-3K for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erISb-0003jx-UK for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Mar 2018 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30663 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151988858314324 (code B ref -1); Thu, 01 Mar 2018 07:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Mar 2018 07:16:23 +0000 Original-Received: from localhost ([127.0.0.1]:38165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erIRy-0003iy-Oj for submit@debbugs.gnu.org; Thu, 01 Mar 2018 02:16:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1erILe-0003ZF-9M for submit@debbugs.gnu.org; Thu, 01 Mar 2018 02:09:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erILX-0003Hd-Os for submit@debbugs.gnu.org; Thu, 01 Mar 2018 02:09:44 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erILX-0003HT-Lo for submit@debbugs.gnu.org; Thu, 01 Mar 2018 02:09:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erILW-0004mP-7G for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:09:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erILS-0003CO-3Z for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:09:42 -0500 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:34476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erILR-0003Az-QC for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2018 02:09:38 -0500 Original-Received: by mail-lf0-x236.google.com with SMTP id l191so7280774lfe.1 for ; Wed, 28 Feb 2018 23:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediastrategi-se.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=lEn02WGZDUEJpGFKWWNBvt54Xu/pXxhrkdp+muE5LK4=; b=E5rtHqp0WI2Z7f8IJIWRhsGCnQ2gl2FsemcNWRG7y+e78raEHBxbc9itrykz3k1wQH VGkpAYiQh1jI7Vvy6gm0vYuWinjuVEM+EaCbEluYHZ+M9hA4/RZeuw7Yas4g9CUd/Gq3 qxIMDuILMgJ+vZQFChzSMYNlPHHdLXdTwCtgltkOdLARUHs2PnN2H3fnP20kOWRDH9vb 0JGuETGmeaNVKeNHSuKtn1cLzfOejGFl9qSAAs5opPiILuLVeh6YZjXZPe1q3kmAPXCm HnxmVKQqAlxis7CjJMZjPr4dfLUK6NJyaUHAvyln0XUHDvdqqCOl9tdh4SBo8gtCBzN6 P1TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=lEn02WGZDUEJpGFKWWNBvt54Xu/pXxhrkdp+muE5LK4=; b=UwqCX1y3XuWXu4eR05HEpaldUqt4o0HL4YKEeRhcbukqvDt1kiAzeTdP6TVTyDhvlZ wYuXeCX8P8f/m7rD6p3LGoUXiBqr6sfCDA+Ce5XX2d6+XSqbNliGLzqeZBp/FYMALx37 QkZ8JkbfF7PyAkOFiXmCM1qxRC0szVNF13msZBVsQgcXpNohQAKyZ2jCWFBjZxYDToYb cFAh+Iddr0nULUPKSH/e7wHB7ZJSMYjkxTm26Hk3UB3/HtHsQGJrBlLGnzh+waQiwjCc JcOb1lQ5WOglVgFyPd/y9JWOH/oBUSq+QA4XMNt8dR7kW2tGCBoD8SbFvCc061yb1Php 3o+A== X-Gm-Message-State: AElRT7EFugX4wv6ZstZ6lntsvvaOeQNxj+qrkdV82pZYAS04gpvQw/0O NeMKaZ1xMYY4buAXTdkwvEe/N0nkT/U= X-Google-Smtp-Source: AG47ELuMlaj9s5kCQa05yKr1Yh8neW+DQ0qVUS2viU5wQ1Avuq7oHSoAT8w1P/UB4avlacdsTRE6Rg== X-Received: by 10.46.20.30 with SMTP id u30mr621206ljd.12.1519888175665; Wed, 28 Feb 2018 23:09:35 -0800 (PST) Original-Received: from [192.168.1.192] (a077.broadband2.quicknet.se. [92.43.32.77]) by smtp.gmail.com with ESMTPSA id y128sm743184lfc.64.2018.02.28.23.09.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 23:09:34 -0800 (PST) Content-Language: sv X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 01 Mar 2018 02:16:20 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143776 Archived-At: If you create this file .dir-locals.el in a directory A: ((nil . (          (test-variable . "My-Value 2")          ))) And then open the directory A containing this file, when the confirmation of unsafe variables comes up, approve of using the variable value. Now check the value of variable "test-variable" with (decribe-variable) inside the (dired-mode) buffer, it's value should be the expected one. Now change the value to "My-Value 3" in the .dir-locals.el file and save it. Switch to the (dired-mode) buffer again and glick g to do a (revert-buffer). Now inspect the same variable again, it should be "My-Value 3" but it is "My-Value 2" (revert-buffer) refreshes DirectoryVariables in most modes but not in (dired-mode) In GNU Emacs 27.0.50 (build 5, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D102))  of 2018-02-28 built on Christians-iMac Repository revision: 108ce84432d597f92637ea74bd0a094224d157de Windowing system distributor 'Apple', version 10.3.1561 System Description:  Mac OS X 10.13.3 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. user-error: The mark is not set now, so there is no region Making completion list... delete-backward-char: Text is read-only Making completion list... [2 times] Configured features: RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS THREADS LCMS2 Important settings:   value of $LANG: sv_SE.UTF-8   locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   eldoc-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t   line-number-mode: t   transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 204092 10722)  (symbols 48 19937 1)  (miscs 40 43 158)  (strings 32 28820 2211)  (string-bytes 1 760839)  (vectors 16 35104)  (vector-slots 8 714916 18226)  (floats 8 48 68)  (intervals 56 217 0)  (buffers 992 12))