From unknown Sun Aug 10 16:49:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20299 <20299@debbugs.gnu.org> To: bug#20299 <20299@debbugs.gnu.org> Subject: Status: 25.0.50; File notification is not working Reply-To: bug#20299 <20299@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:49:28 +0000 retitle 20299 25.0.50; File notification is not working reassign 20299 emacs submitter 20299 Sean McAfee severity 20299 normal tag 20299 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 10 20:40:10 2015 Received: (at submit) by debbugs.gnu.org; 11 Apr 2015 00:40:10 +0000 Received: from localhost ([127.0.0.1]:52773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgjSy-0001lM-72 for submit@debbugs.gnu.org; Fri, 10 Apr 2015 20:40:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56131) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgjSs-0001kU-Dh for submit@debbugs.gnu.org; Fri, 10 Apr 2015 20:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgjSk-0007TL-NK for submit@debbugs.gnu.org; Fri, 10 Apr 2015 20:39:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjSk-0007TE-Jk for submit@debbugs.gnu.org; Fri, 10 Apr 2015 20:39:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjSi-0004iL-7J for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 20:39:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgjSf-0007SM-ML for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 20:39:52 -0400 Received: from mail-vn0-x233.google.com ([2607:f8b0:400c:c0f::233]:33718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjSf-0007SA-Ed for bug-gnu-emacs@gnu.org; Fri, 10 Apr 2015 20:39:49 -0400 Received: by vnbf1 with SMTP id f1so9804128vnb.0 for ; Fri, 10 Apr 2015 17:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=KxHddJo6BTmxsd9lky+ET8Xx9BxockGxRhGEY3C7Fuk=; b=DsUOZWemhxAFIjocmhLBfMPz8FPCc6I7jEsMU3eNkRjkfjWtpSI/1zRkKr1yZ4iha6 8HSSWl42kGBilXM4IKIZpzOC9VMFtZV2Xk48IcY/tPUXHkz1j6MLDTZ+KrIh9qh1eftL KCL66P3+7fVMYI6f/HewJLoEnn9Y4TJyW04L7Be0og0XItnAg4zKXXPqExCa9S33vkqj 9RA0lBota34vTCj/LOogd6altzKIDAx2n3sNdRXB+yv/2up/d3jEjtDyrbapKlnlqeq4 2J11W3sOIblnnWMUOQohpiQdyQy0aUngQZ5/yfJWl729elEFO6NHA1HRBm4YiQpHaRmT B8UQ== MIME-Version: 1.0 X-Received: by 10.60.62.197 with SMTP id a5mr4656102oes.79.1428712788493; Fri, 10 Apr 2015 17:39:48 -0700 (PDT) Received: by 10.202.49.208 with HTTP; Fri, 10 Apr 2015 17:39:48 -0700 (PDT) Date: Fri, 10 Apr 2015 17:39:48 -0700 Message-ID: Subject: 25.0.50; File notification is not working From: Sean McAfee To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c249ae3e8a950513681eb0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11c249ae3e8a950513681eb0 Content-Type: text/plain; charset=ISO-8859-1 I recently started a new job, where I have been supplied with the laptop I'm now using. I noticed that magit-auto-revert-mode was not having any effect; checking out a new branch using Magit did not revert any of the buffers visiting files which were different on the previous branch. I dug into the source and found that the culprit is the function auto-revert-handler, and specifically the expression: (or (not auto-revert-use-notify) auto-revert-notify-modified-p) auto-revert-use-notify had a value of t, and yet auto-revert-notify-modified-p was nil even in buffers whose associated files had changed out from under them. I verified this visiting a file, then repeatedly issuing the shell command "echo foo >> my-file" and then evaluating the expression (auto-revert-handler) with M-:, but the file never got reverted. I found a note to the effect that this feature would only be active if Emacs had been compiled with file notification support. I would have expected auto-revert-use-notify to be given a suitable default value depending on whether such support was available, but in any case I went to my local emacs git repo, pulled down the latest changes, and recompiled after providing the --with-file-notification=inotify flag to configure. Even after this change, though, file notification still isn't working. I can just set auto-revert-use-notify to nil going forward, but it would be nice to get file notification working as intended. In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2015-04-10 on sean-Latitude-E7440 Repository revision: f55ea05bdf60e24c09f9064fc0d2e8a114d6e358 Windowing system distributor `The X.Org Foundation', version 11.0.11600000 System Description: Ubuntu 14.10 Configured using: `configure --with-file-notification=inotify' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: recentf-mode: t projectile-global-mode: t projectile-mode: t global-anzu-mode: t anzu-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t google-this-mode: t global-flycheck-mode: t minibuffer-depth-indicate-mode: t ido-everywhere: t global-undo-tree-mode: t undo-tree-mode: t override-global-mode: t show-paren-mode: t electric-pair-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t global-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: Cleaning up the recentf list...done (2 removed) ~/emacs-src Template key: Clipboard pasted as level 4 subtree C-c C-g is undefined ad-handle-definition: `bookmark-jump' got redefined Saving bookmarks to file ~/.emacs.d/bookmarks... Wrote /home/sean/.emacs.d/bookmarks Saving bookmarks to file ~/.emacs.d/bookmarks...done Wrote /home/sean/done.org Load-path shadows: ~/emacs/japanese hides /usr/local/share/emacs/25.0.50/lisp/language/japanese Features: (shadow sort mail-extr emacsbug sendmail bookmark tabify org-datetree org-capture pcmpl-unix recentf tree-widget eww mm-url url-queue shr dom browse-url js-mode-expansions js imenu cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sh-script smie executable restclient conf-mode cap-words superword subword scala-mode2 scala-mode2-imenu scala-mode2-sbt scala-mode2-map scala-mode2-fontlock scala-mode2-indent scala-mode2-paragraph scala-mode2-lib html-mode-expansions sgml-mode org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb org-w3m the-org-mode-expansions org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs gnus-dired jka-compr vc vc-dispatcher vc-git projectile ibuf-ext ibuffer elisp-slime-nav etags xref anzu mule-util magit-key-mode magit view tramp tramp-compat tramp-loaddefs trampver shell pcomplete epa epg diff-mode autorevert filenotify git-rebase-mode git-commit-mode log-edit message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader pcvs-util add-log google-this flycheck find-func rx subr-x cyberpunk-theme ensime ensime-ui ensime-semantic-highlight ensime-doc ensime-scalex url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core cl-generic password-cache mailcap ensime-search ensime-undo ensime-startup ensime-refactor ensime-popup ensime-notes ensime-model ensime-mode ensime-inspector ensime-goto-testfile ensime-editor ensime-debug gdb-mi bindat json gud ensime-stacktrace ensime-inf ensime-sbt sbt-mode sbt-mode-rgrep grep sbt-mode-comint sbt-mode-buffer sbt-mode-project ensime-company yasnippet help-mode company ensime-auto-complete ensime-completion-util scala-mode2-syntax ensime-config ensime-vars s ucs-normalize ensime-util auto-complete popup flymake hideshow pp arc-mode archive-mode dash url-gw url-vars ensime-client derived ensime-macros warnings gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit mb-depth ido dired-details+ dired dired-details anchored-transpose change-inner expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom org-bullets multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core byte-opt advice rect undo-tree diff ack compile comint ansi-color ring paredit edmacro kmacro use-package diminish bytecomp byte-compile cl-extra seq cconv bind-key easy-mmode finder-inf info easymenu package epg-config paren elec-pair savehist desktop frameset server thingatpt help-fns perl-mode cl-macs cl gv cl-loaddefs pcase cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev 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 make-network-process dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 567561 51984) (symbols 48 51197 0) (miscs 40 2332 364) (strings 32 121532 20169) (string-bytes 1 3675027) (vectors 16 75299) (vector-slots 8 1788518 105160) (floats 8 456 780) (intervals 56 4135 309) (buffers 976 64) (heap 1024 54594 2035)) --001a11c249ae3e8a950513681eb0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I recently started a new job, where I have been supplied w= ith the laptop
I'm now using.=A0 I noticed that magit-auto-revert-mo= de was not having any
effect; checking out a new branch using Magit did = not revert any of the
buffers visiting files which were different on the= previous branch.

I dug into the source and found that the culprit i= s the function
auto-revert-handler, and specifically the expression:
=
(or (not auto-revert-use-notify)
=A0 auto-revert-notify-modified-p)<= br>
auto-revert-use-notify had a value of t, and yet
auto-revert-noti= fy-modified-p was nil even in buffers whose associated
files had changed= out from under them.=A0 I verified this visiting a file,
then repeatedl= y issuing the shell command "echo foo >> my-file" and then<= br>evaluating the expression (auto-revert-handler) with M-:, but the filenever got reverted.

I found a note to the effect that this feature= would only be active if
Emacs had been compiled with file notification = support.=A0 I would have
expected auto-revert-use-notify to be given a s= uitable default value
depending on whether such support was available, b= ut in any case I went
to my local emacs git repo, pulled down the latest= changes, and
recompiled after providing the --with-file-notification=3D= inotify flag to
configure.=A0 Even after this change, though, file notif= ication still
isn't working.

I can just set auto-revert-use-n= otify to nil going forward, but it would
be nice to get file notificatio= n working as intended.



In GNU Emacs 25.0.50.2 (x86_64-unknow= n-linux-gnu, GTK+ Version 3.12.2)
=A0of 2015-04-10 on sean-Latitude-E744= 0
Repository revision: f55ea05bdf60e24c09f9064fc0d2e8a114d6e358
Windo= wing system distributor `The X.Org Foundation', version 11.0.11600000System Description:=A0=A0=A0 Ubuntu 14.10

Configured using:
=A0= `configure --with-file-notification=3Dinotify'

Configured featur= es:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTING= S
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
=
Important settings:
=A0 value of $LANG: en_US.UTF-8
=A0 value of = $XMODIFIERS: @im=3Dibus
=A0 locale-coding-system: utf-8-unix

Majo= r mode: Shell

Minor modes in effect:
=A0 recentf-mode: t
=A0 p= rojectile-global-mode: t
=A0 projectile-mode: t
=A0 global-anzu-mode:= t
=A0 anzu-mode: t
=A0 magit-auto-revert-mode: t
=A0 shell-dirtra= ck-mode: t
=A0 diff-auto-refine-mode: t
=A0 google-this-mode: t
= =A0 global-flycheck-mode: t
=A0 minibuffer-depth-indicate-mode: t
=A0= ido-everywhere: t
=A0 global-undo-tree-mode: t
=A0 undo-tree-mode: t=
=A0 override-global-mode: t
=A0 show-paren-mode: t
=A0 electric-p= air-mode: t
=A0 savehist-mode: t
=A0 desktop-save-mode: t
=A0 tool= tip-mode: t
=A0 global-eldoc-mode: t
=A0 electric-indent-mode: t
= =A0 mouse-wheel-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mod= e: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-= cursor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode:= t
=A0 auto-compression-mode: t
=A0 line-number-mode: t

Recent= messages:
Cleaning up the recentf list...done (2 removed)
~/emacs-sr= c
Template key:
Clipboard pasted as level 4 subtree
C-c C-g is u= ndefined
ad-handle-definition: `bookmark-jump' got redefined
Savi= ng bookmarks to file ~/.emacs.d/bookmarks...
Wrote /home/sean/.emacs.d/b= ookmarks
Saving bookmarks to file ~/.emacs.d/bookmarks...done
Wrote /= home/sean/done.org

Load-path shadows= :
~/emacs/japanese hides /usr/local/share/emacs/25.0.50/lisp/language/ja= panese

Features:
(shadow sort mail-extr emacsbug sendmail bookmar= k tabify org-datetree
org-capture pcmpl-unix recentf tree-widget eww mm-= url url-queue shr dom
browse-url js-mode-expansions js imenu cc-mode-exp= ansions cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc= -engine cc-vars
cc-defs sh-script smie executable restclient conf-mode c= ap-words
superword subword scala-mode2 scala-mode2-imenu scala-mode2-sbt=
scala-mode2-map scala-mode2-fontlock scala-mode2-indent
scala-mode2-= paragraph scala-mode2-lib html-mode-expansions sgml-mode
org-element org= -rmail org-mhe org-irc org-info org-gnus org-docview
doc-view image-mode= org-bibtex bibtex org-bbdb org-w3m
the-org-mode-expansions org org-macr= o org-footnote org-pcomplete
org-list org-faces org-entities noutline ou= tline org-version
ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-e= xp org-src ob-keys
ob-comint ob-core ob-eval org-compat org-macs org-loa= ddefs cal-menu
calendar cal-loaddefs gnus-dired jka-compr vc vc-dispatch= er vc-git
projectile ibuf-ext ibuffer elisp-slime-nav etags xref anzu mu= le-util
magit-key-mode magit view tramp tramp-compat tramp-loaddefs tram= pver
shell pcomplete epa epg diff-mode autorevert filenotify git-rebase-= mode
git-commit-mode log-edit message format-spec rfc822 mml mml-sec
= mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-dr= ums mailabbrev gmm-utils mailheader pcvs-util add-log google-this
flyche= ck find-func rx subr-x cyberpunk-theme ensime ensime-ui
ensime-semantic-= highlight ensime-doc ensime-scalex url url-proxy
url-privacy url-expand = url-methods url-history url-cookie url-domsuf
url-util url-parse auth-so= urce eieio eieio-core cl-generic
password-cache mailcap ensime-search en= sime-undo ensime-startup
ensime-refactor ensime-popup ensime-notes ensim= e-model ensime-mode
ensime-inspector ensime-goto-testfile ensime-editor = ensime-debug gdb-mi
bindat json gud ensime-stacktrace ensime-inf ensime-= sbt sbt-mode
sbt-mode-rgrep grep sbt-mode-comint sbt-mode-buffer sbt-mod= e-project
ensime-company yasnippet help-mode company ensime-auto-complet= e
ensime-completion-util scala-mode2-syntax ensime-config ensime-vars s<= br>ucs-normalize ensime-util auto-complete popup flymake hideshow pp
arc= -mode archive-mode dash url-gw url-vars ensime-client derived
ensime-mac= ros warnings gnus gnus-ems nnheader gnus-util mail-utils
mm-util mail-pr= svr wid-edit mb-depth ido dired-details+ dired
dired-details anchored-tr= anspose change-inner expand-region
text-mode-expansions er-basic-expansi= ons expand-region-core
expand-region-custom org-bullets multiple-cursors=
mc-hide-unmatched-lines-mode mc-separate-operations
rectangular-regi= on-mode mc-mark-pop mc-mark-more mc-cycle-cursors
mc-edit-lines multiple= -cursors-core byte-opt advice rect undo-tree diff
ack compile comint ans= i-color ring paredit edmacro kmacro use-package
diminish bytecomp byte-c= ompile cl-extra seq cconv bind-key easy-mmode
finder-inf info easymenu p= ackage epg-config paren elec-pair savehist
desktop frameset server thing= atpt help-fns perl-mode cl-macs cl gv
cl-loaddefs pcase cl-lib time-date= tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwh= eel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-l= ist newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn= -eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemen= u font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan = thai tai-viet lao
korean japanese hebrew greek romanian slovak czech eur= opean ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook= help simple
abbrev minibuffer cl-preloaded nadvice loaddefs button face= s cus-face
macroexp files text-properties overlay sha1 md5 base64 format= env
code-pages mule custom widget hashtable-print-readable backquotemake-network-process dbusbind inotify dynamic-setting
system-font-setti= ng font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)
=
Memory information:
((conses 16 567561 51984)
=A0(symbols 48 5119= 7 0)
=A0(miscs 40 2332 364)
=A0(strings 32 121532 20169)
=A0(strin= g-bytes 1 3675027)
=A0(vectors 16 75299)
=A0(vector-slots 8 1788518 1= 05160)
=A0(floats 8 456 780)
=A0(intervals 56 4135 309)
=A0(buffer= s 976 64)
=A0(heap 1024 54594 2035))

--001a11c249ae3e8a950513681eb0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 03:03:28 2015 Received: (at 20299) by debbugs.gnu.org; 11 Apr 2015 07:03:28 +0000 Received: from localhost ([127.0.0.1]:52809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgpRw-0003Pw-AN for submit@debbugs.gnu.org; Sat, 11 Apr 2015 03:03:28 -0400 Received: from mout.gmx.net ([212.227.17.21]:54952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YgpRu-0003Pj-FZ for 20299@debbugs.gnu.org; Sat, 11 Apr 2015 03:03:27 -0400 Received: from detlef.gmx.de ([87.146.42.87]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MarAM-1YwiR82B4s-00KMYu; Sat, 11 Apr 2015 09:03:20 +0200 From: Michael Albinus To: Sean McAfee Subject: Re: bug#20299: 25.0.50; File notification is not working References: Date: Sat, 11 Apr 2015 09:03:19 +0200 In-Reply-To: (Sean McAfee's message of "Fri, 10 Apr 2015 17:39:48 -0700") Message-ID: <87egnrxi2w.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:FUnsclBOunvFVjVb4Gp89MtjPAz8CXh3Ow/WhUMpkNDAeISEx4y fUhlv8j9ZPT/h6CTVqfAv951ebHlZXGDDtZakORkF19ydV/XljUnjYOs+/Qi/JarljiDttn lwD8Fmfs0xCemHbDhzEjBTmqU945mUhn+N/Xr57Lkm26GSRoHYxhVFa1w2kzCP60Cfl42eh rN8kY63nKEb6yEG/NaWMg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20299 Cc: 20299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Sean McAfee writes: Hi Sean, > auto-revert-use-notify had a value of t, and yet > auto-revert-notify-modified-p was nil even in buffers whose associated > files had changed out from under them. I verified this visiting a > file, > then repeatedly issuing the shell command "echo foo >> my-file" and > then > evaluating the expression (auto-revert-handler) with M-:, but the file > never got reverted. On which directory have you done this? Note, that inotify does not work on mounted directories. > I can just set auto-revert-use-notify to nil going forward, but it > would > be nice to get file notification working as intended. Another test you might apply is setting prior magit-auto-revert-mode (require 'filenotify) (require 'trace) (dolist (elt (all-completions "file-notify-" obarray 'functionp)) (trace-function (intern elt))) You will observe in the buffer *trace-output*, whether file notifications events arrive. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 10:25:42 2015 Received: (at 20299) by debbugs.gnu.org; 16 Apr 2015 14:25:42 +0000 Received: from localhost ([127.0.0.1]:58179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yikjd-0001xS-KQ for submit@debbugs.gnu.org; Thu, 16 Apr 2015 10:25:41 -0400 Received: from mout.gmx.net ([212.227.17.21]:60276) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YikjZ-0001x7-TN for 20299@debbugs.gnu.org; Thu, 16 Apr 2015 10:25:38 -0400 Received: from detlef.gmx.de ([87.146.39.38]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LfTC1-1ZB04p3OYr-00p93E; Thu, 16 Apr 2015 16:25:30 +0200 From: Michael Albinus To: Sean McAfee Subject: Re: bug#20299: 25.0.50; File notification is not working References: <87egnrxi2w.fsf@gmx.de> <87vbgyn8tr.fsf@gmx.de> Date: Thu, 16 Apr 2015 16:25:30 +0200 In-Reply-To: (Sean McAfee's message of "Tue, 14 Apr 2015 15:40:05 -0700") Message-ID: <87h9sgkv51.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:K8Ql9UDibQrhTKlCUDKPEM4rpvdUZ+FsqBeQCvwjrAII2WvggAu qqijU61YsTb3uwcIh0Uicm6M6IQOCliJpamiqjmaFspf0Khk9rYGJZX9t8LJqZdqvofryOs 65jZfidJSWDK3HEM66VL3kz2Ny+Mt2mjKj2ZWLCsuJsysE7t4u5LrNNgmfKoCEt1/b4mKOU Q/is3JhTDENnEUOHbQO+w== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20299 Cc: 20299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Sean McAfee writes: [Pls keep the Cc for the archives] > Anyway, here's what I just did: > > * Started Emacs with "emacs -Q" > * (require 'filenotify) > * (require 'trace) > * Evaluated your (dolist ...) expression from above > * (require 'auto-revert) Not needed. > * Visit a file Here you must apply "M-x auto-revert-mode". > * Append to the file by executing a shell command > * Evaluated (auto-revert-handler) > > The file was not reverted, and the complete list of open buffers at > that time were foo.txt (visiting my test file), *scratch*, *Messages*, > *Shell Command Output*, and *Backtrace*. Nothing trace-related that I > can see. It appears that none of the file-notify-* functions are ever > called, even though I built Emacs with the - > -with-file-notification=inotify configuration switch. > > --Sean Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 12:54:26 2015 Received: (at 20299) by debbugs.gnu.org; 18 Apr 2015 16:54:27 +0000 Received: from localhost ([127.0.0.1]:60134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjW0g-00026o-Jw for submit@debbugs.gnu.org; Sat, 18 Apr 2015 12:54:26 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36269) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjW0e-00026b-ON for 20299@debbugs.gnu.org; Sat, 18 Apr 2015 12:54:25 -0400 Received: by pdea3 with SMTP id a3so160560907pde.3 for <20299@debbugs.gnu.org>; Sat, 18 Apr 2015 09:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=i/hyS85E0Kfsf5KembZyiTJBHwmHeSn3wVSZWKlhisk=; b=N6Siud1US6Kx4sUw4rCH50RGjGHs4tj6/+9tc5z7tSp4j01JaNLcTUv8wMEV5/eqOb FF47LoBRpvmNVBOn654OrRfgAoZ6P+zziAnM2OEAR0rIzSHb1Emw772tRIwnsmsw2rvi LolG26D0KRla50+aS9pMXBHVGkfODv6Ff/em/p+HU7ID28fG3B9z34Qe3QeBUI35HLW0 Kwrp42RGUrLuQypbTxSMDR0kedlmzy9B2QUvENtKyKgwfiZriU13YkUaFM4m69/Yfqa0 tMAcL5FIrj+UYLHT0jfZ3YRxsWGziuy9ToY34Rw47HUSHnmX39jFm+8xqCkAbcB29WIO Kn5Q== X-Received: by 10.68.57.201 with SMTP id k9mr14840083pbq.135.1429376058526; Sat, 18 Apr 2015 09:54:18 -0700 (PDT) Received: from SeanMc (c-76-126-137-236.hsd1.ca.comcast.net. [76.126.137.236]) by mx.google.com with ESMTPSA id yy2sm13409517pbb.6.2015.04.18.09.54.17 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 18 Apr 2015 09:54:17 -0700 (PDT) From: Sean McAfee To: Michael Albinus Subject: Re: bug#20299: 25.0.50; File notification is not working References: <87egnrxi2w.fsf@gmx.de> <87vbgyn8tr.fsf@gmx.de> <87h9sgkv51.fsf@gmx.de> Date: Sat, 18 Apr 2015 09:54:16 -0700 In-Reply-To: <87h9sgkv51.fsf@gmx.de> (Michael Albinus's message of "Thu, 16 Apr 2015 16:25:30 +0200") Message-ID: <87wq19pebr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20299 Cc: 20299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Michael Albinus writes: > Here you must apply "M-x auto-revert-mode". Ah, I didn't realize this was necessary. I assumed Emacs would receive file notification events for all open files if it was built with that capability, since it seems an inexpensive enough operation. This would seem to be more of a Magit issue than an Emacs issue. I'll re-report my original issue in the appropriate place (although it's hard to imagine that such a substantial feature being broken could have gone unnoticed by anyone other than me by now). Thanks for the help! --Sean From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 13:52:02 2015 Received: (at 20299) by debbugs.gnu.org; 18 Apr 2015 17:52:02 +0000 Received: from localhost ([127.0.0.1]:60161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjWuP-0003Qz-Rk for submit@debbugs.gnu.org; Sat, 18 Apr 2015 13:52:02 -0400 Received: from mout.gmx.net ([212.227.15.18]:57828) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjWuM-0003Qf-SH for 20299@debbugs.gnu.org; Sat, 18 Apr 2015 13:51:59 -0400 Received: from detlef.gmx.de ([79.195.0.194]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MdaCy-1Z04ma2RCO-00PIVq; Sat, 18 Apr 2015 19:51:52 +0200 From: Michael Albinus To: Sean McAfee Subject: Re: bug#20299: 25.0.50; File notification is not working References: <87egnrxi2w.fsf@gmx.de> <87vbgyn8tr.fsf@gmx.de> <87h9sgkv51.fsf@gmx.de> <87wq19pebr.fsf@gmail.com> Date: Sat, 18 Apr 2015 19:51:51 +0200 In-Reply-To: <87wq19pebr.fsf@gmail.com> (Sean McAfee's message of "Sat, 18 Apr 2015 09:54:16 -0700") Message-ID: <87wq19b9zc.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:P5aUb3dSvKNKjb7pDJBxpNUX/rsR4+4zsro8nXzzGjhHcf3qsAq 1nF+h6xd2NVkeydFLwCAkjIS1/rGxtUowHib9hym/5kCZntAk90/mFwvFyWrkF9ghQeIr89 p0kMngOjqjwLGgfmgu3nbP5eY9ESqWYO67Qhwvsnq9kke/8tRNMJcCNs518HwF8mlrt4I+G D7AjDvsemdHpXo4LZvQyA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20299 Cc: 20299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Sean McAfee writes: > Michael Albinus writes: >> Here you must apply "M-x auto-revert-mode". > > Ah, I didn't realize this was necessary. I assumed Emacs would receive > file notification events for all open files if it was built with that > capability, since it seems an inexpensive enough operation. Inexpensive if you have native support like inotify. If you use glib, for example, it might be necessary to poll, which is more heavy. > This would seem to be more of a Magit issue than an Emacs issue. I'll > re-report my original issue in the appropriate place (although it's hard > to imagine that such a substantial feature being broken could have gone > unnoticed by anyone other than me by now). OK, so I'm closing this bug. Feel free to come back if needed. > Thanks for the help! > > --Sean Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 18 13:52:47 2015 Received: (at control) by debbugs.gnu.org; 18 Apr 2015 17:52:47 +0000 Received: from localhost ([127.0.0.1]:60164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjWv9-0003S9-Hy for submit@debbugs.gnu.org; Sat, 18 Apr 2015 13:52:47 -0400 Received: from mout.gmx.net ([212.227.15.15]:51096) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YjWv8-0003Rw-2F for control@debbugs.gnu.org; Sat, 18 Apr 2015 13:52:46 -0400 Received: from detlef.gmx.de ([79.195.0.194]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MO7ee-1YgDXQ0yXc-005buI for ; Sat, 18 Apr 2015 19:52:40 +0200 Date: Sat, 18 Apr 2015 19:52:39 +0200 Message-Id: <87vbgtb9y0.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #20299 X-Provags-ID: V03:K0:nRlkU30SM7tvoKE8UavJ7pY+xxlilOh1nE84drw3Ju9ZTC6G6gJ RIDWFNoGPVk0JxQqeC0drA1rL23HUB5PdHid966M3g1ePYLvOwu4/4KNcS/79SQ1nx0+KT2 R/ZHZEaBeJ4XkjZ5YQmj+yr2JQIG3zGpwPlXpmSONsAn1CdrP903dqAAbBVtYwK2uE0DbSL dkTL+CmfhTnBdih6mnP0Q== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 20299 notabug close 20299 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 19 04:27:56 2015 Received: (at 20299) by debbugs.gnu.org; 19 Apr 2015 08:27:56 +0000 Received: from localhost ([127.0.0.1]:60430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjka4-0003L5-2U for submit@debbugs.gnu.org; Sun, 19 Apr 2015 04:27:56 -0400 Received: from mout.gmx.net ([212.227.15.19]:56889) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yjka2-0003Kq-Qo for 20299@debbugs.gnu.org; Sun, 19 Apr 2015 04:27:55 -0400 Received: from detlef.gmx.de ([87.146.32.200]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LqylH-1ZDsL00ZX9-00eaz5; Sun, 19 Apr 2015 10:27:49 +0200 From: Michael Albinus To: Sean McAfee Subject: Re: bug#20299: 25.0.50; File notification is not working References: <87egnrxi2w.fsf@gmx.de> <87vbgyn8tr.fsf@gmx.de> <87h9sgkv51.fsf@gmx.de> <87wq19pebr.fsf@gmail.com> <87wq19b9zc.fsf@gmx.de> Date: Sun, 19 Apr 2015 10:27:42 +0200 In-Reply-To: <87wq19b9zc.fsf@gmx.de> (Michael Albinus's message of "Sat, 18 Apr 2015 19:51:51 +0200") Message-ID: <87egngbk01.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:uQVNGmiMZhbNEpcrZ59GxEYwslqY5fw7k7nDDafweG5bg62hrK1 3pYjwR0wtUwZ0fKAC8ysekSDUxN86qTtfUCN5OcrKYsYUtf6vDSJFXSndMzuZJhFDiHy4en rdADlGgZrcFDdIN9Mxrx0S+FCp6dJ5oLt0QN5aJN48LT0gUX3lifMxDJ5czSDF/oTxaA5+M vshp6yb+nmkrhSe7k+E8A== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20299 Cc: 20299@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Michael Albinus writes: > Sean McAfee writes: > >> Michael Albinus writes: >>> Here you must apply "M-x auto-revert-mode". >> >> Ah, I didn't realize this was necessary. I assumed Emacs would receive >> file notification events for all open files if it was built with that >> capability, since it seems an inexpensive enough operation. > > Inexpensive if you have native support like inotify. If you use glib, > for example, it might be necessary to poll, which is more heavy. PS: If you want to run all buffers in auto-revert-mode per default, you could apply "M-x global-auto-revert-mode". >> Thanks for the help! Bst regards, Michael. From unknown Sun Aug 10 16:49:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 May 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator