unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode
@ 2018-03-01  7:09 Christian Johansson
  2018-03-01 15:07 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Johansson @ 2018-03-01  7:09 UTC (permalink / raw)
  To: 30663

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))






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode
  2018-03-01  7:09 bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode Christian Johansson
@ 2018-03-01 15:07 ` Eli Zaretskii
  2018-05-14 15:17   ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2018-03-01 15:07 UTC (permalink / raw)
  To: Christian Johansson; +Cc: 30663

> From: Christian Johansson <christian@mediastrategi.se>
> Date: Thu, 1 Mar 2018 08:09:32 +0100
> 
> (revert-buffer) refreshes DirectoryVariables in most modes but not in 
> (dired-mode)

My guess is that this happens because Dired has its own
revert-buffer-function, and something is missing in that function to
re-read the local variables.

Thanks.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode
  2018-03-01 15:07 ` Eli Zaretskii
@ 2018-05-14 15:17   ` Michael Albinus
  2018-05-15  6:11     ` Christian Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2018-05-14 15:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Christian Johansson, 30663

Eli Zaretskii <eliz@gnu.org> writes:

Hi,

>> (revert-buffer) refreshes DirectoryVariables in most modes but not in 
>> (dired-mode)
>
> My guess is that this happens because Dired has its own
> revert-buffer-function, and something is missing in that function to
> re-read the local variables.

Indeed, I've pushed a fix to the master branch.

Christian, could you pls retest?

> Thanks.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode
  2018-05-14 15:17   ` Michael Albinus
@ 2018-05-15  6:11     ` Christian Johansson
  2018-05-15  6:48       ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Johansson @ 2018-05-15  6:11 UTC (permalink / raw)
  To: Michael Albinus, Eli Zaretskii; +Cc: 30663

Thanks Michael, I can confirm it's now working as expected

Regards, Christian

> Eli Zaretskii <eliz@gnu.org> writes:
>
> Hi,
>
>>> (revert-buffer) refreshes DirectoryVariables in most modes but not in
>>> (dired-mode)
>> My guess is that this happens because Dired has its own
>> revert-buffer-function, and something is missing in that function to
>> re-read the local variables.
> Indeed, I've pushed a fix to the master branch.
>
> Christian, could you pls retest?
>
>> Thanks.
> Best regards, Michael.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode
  2018-05-15  6:11     ` Christian Johansson
@ 2018-05-15  6:48       ` Michael Albinus
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Albinus @ 2018-05-15  6:48 UTC (permalink / raw)
  To: Christian Johansson; +Cc: 30663-done

Version: 27.1

Christian Johansson <christian@mediastrategi.se> writes:

Hi Christian,

> Thanks Michael, I can confirm it's now working as expected

Thanks for the cross-check. I'm closing the bug.

> Regards, Christian

Best regards, Michael.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-15  6:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01  7:09 bug#30663: 27.0.50; DirectoryVariables not refreshing on revert-buffer in dired-mode Christian Johansson
2018-03-01 15:07 ` Eli Zaretskii
2018-05-14 15:17   ` Michael Albinus
2018-05-15  6:11     ` Christian Johansson
2018-05-15  6:48       ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).