Subject: bug#50725: 28.0.50; Global auto-revert mode does not work

From: Rudolf Adamkovič <[email-masked]>
Date: Tue, 21 Sep 2021 21:53:14 +0200

Step 1. Start 'emacs -Q'
Step 2. Evaluate:

(global-auto-revert-mode) (setq-default 
global-auto-revert-non-file-buffers t) 

Step 3. Launch Dired in '/tmp'
Step 4. Run 'touch /tmp/x' outside of Emacs

Expected: Dired shows 'x'
Actual: Dired does not show 'x'

Note: Setting global-auto-revert-non-file-buffers *before* 
global-auto-revert-mode fixes the problem.

In GNU Emacs 28.0.50 (build 11, x86_64-apple-darwin20.6.0, NS 
appkit-2022.60 Version 11.5.1 (Build 20G80)) 
 of 2021-09-19 built on Workstation.local 
Repository revision: 558ca61cbdba5315c058f70d1ba2232f1391739e 
Repository branch: master Windowing system distributor 'Apple', 
version 10.3.2022 System Description:  macOS 11.5.1  Configured 
using: 
 'configure --with-json 
 PKG_CONFIG_PATH=/usr/local/Cellar/zlib/1.2.11/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig' 
Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 
LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF 
TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: 
  value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix 
 
Major mode: Lisp Interaction  Minor modes in effect: 
  show-paren-mode: t which-key-mode: t corfu-global-mode: t 
  corfu-mode: t vertico-mode: t marginalia-mode: t 
  shell-dirtrack-mode: t async-bytecomp-package-mode: t 
  global-diff-hl-mode: t yas-global-mode: t yas-minor-mode: t 
  global-hl-todo-mode: t hl-todo-mode: t savehist-mode: t 
  global-subword-mode: t subword-mode: t save-place-mode: t 
  global-auto-revert-mode: t delete-selection-mode: t 
  tooltip-mode: t global-eldoc-mode: t eldoc-mode: t 
  electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t 
  file-name-shadow-mode: t global-font-lock-mode: t 
  font-lock-mode: t auto-composition-mode: t auto-encryption-mode: 
  t auto-compression-mode: t size-indication-mode: t 
  column-number-mode: t line-number-mode: t 
  global-visual-line-mode: t visual-line-mode: t 
  transient-mark-mode: t 
 
Load-path shadows: 
/Users/salutis/.emacs.d/elpa/magit-20210916.1754/magit-section-pkg 
hides 
/Users/salutis/.emacs.d/elpa/magit-section-20210829.1849/magit-section-pkg 
/Users/salutis/.emacs.d/elpa/transient-20210919.1006/transient 
hides 
/Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/transient 
Features: (shadow sort fortune flymake-proc flymake project 
compile thingatpt mail-extr emacsbug sendmail rx char-fold 
tramp-cmds cursor-sensor modus-vivendi-theme modus-operandi-theme 
modus-themes paren which-key corfu orderless consult-vertico 
vertico marginalia consult recentf tree-widget wid-edit bookmark 
pp org-ref org-ref-helm-bibtex org-ref-helm helm-bibtex 
bibtex-completion org-capture org-refile biblio biblio-download 
biblio-dissemin biblio-ieee biblio-hal biblio-dblp biblio-crossref 
biblio-arxiv timezone biblio-doi biblio-core let-alist url-queue 
ido hl-line helm-files tramp tramp-loaddefs trampver 
tramp-integration files-x tramp-compat shell parse-time 
helm-buffers helm-occur helm-tags helm-locate helm-grep 
helm-regexp helm-utils helm-types helm-net xml helm-help helm 
async-bytecomp helm-global-bindings helm-easymenu helm-source 
helm-multi-match helm-lib async helm-config org-ref-core warnings 
reftex-cite reftex reftex-loaddefs reftex-vars parsebib 
org-ref-glossary org-ref-bibtex vc-git org-ref-citeproc message 
ls-lisp dired dired-loaddefs rfc822 mml mml-sec epa derived epg 
rfc6068 epg-config gnus-util rmail rmail-loaddefs 
text-property-search mm-decode mm-bodies mm-encode mailabbrev 
mail-utils gmm-utils mailheader key-chord hydra lv doi-utils 
org-ref-utils org-ref-pdf url-http url-auth mail-parse rfc2231 
rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny 
ol-bibtex bibtex iso8601 htmlize f s dash pdf-loader diff-hl 
log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode 
yasnippet hl-todo finder-inf ox-md ox-odt rng-loc rng-uri 
rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns 
nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table 
ox-ascii ox-publish ox org-element avl-tree generator org-clock 
savehist cap-words superword subword saveplace autorevert 
filenotify diminish delsel cl-extra help-mode org ob ob-tangle 
ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src 
ob-comint org-pcomplete pcomplete comint ansi-color ring org-list 
org-faces org-entities time-date noutline outline easy-mmode 
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys 
org-compat advice org-macs org-loaddefs format-spec find-func 
cal-menu calendar cal-loaddefs tex-site edmacro kmacro info 
package browse-url url url-proxy url-privacy url-expand 
url-methods url-history url-cookie url-domsuf url-util mailcap 
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs 
eieio-loaddefs password-cache json subr-x map url-vars seq 
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks 
lisp-float-type elisp-mode 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 lisp-mode 
prog-mode register page tab-bar menu-bar rfn-eshadow isearch 
easymenu timer select scroll-bar mouse jit-lock font-lock syntax 
font-core term/tty-colors frame minibuffer 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 cl-preloaded nadvice button loaddefs faces cus-face 
macroexp files window text-properties overlay sha1 md5 base64 
format env code-pages mule custom widget hashtable-print-readable 
backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty 
make-network-process emacs)  Memory information: ((conses 16 
6783714 261375) 
 (symbols 48 37443 19) (strings 32 234953 16364) (string-bytes 1 
 9399616) (vectors 16 128787) (vector-slots 8 7213278 1284697) 
 (floats 8 268 1040) (intervals 56 8065 182) (buffers 992 11)) 

-- 
"Contrariwise," continued Tweedledee, "if it was so, it might be; 
and if it were so, it would be; but as it isn't, it ain't. That's 
logic." -- Lewis Carroll, Through the Looking Glass  Rudolf 
Adamkovič <[email-masked]> Studenohorská 25 84103 Bratislava 
Slovakia  [he/him]