GNU bug report logs -
#21952
24.5; auto-revert-tail-mode doesn't work (perhaps because of nfs)
Previous Next
Reported by: dan.dever <at> cavium.com
Date: Wed, 18 Nov 2015 16:46:01 UTC
Severity: normal
Tags: notabug
Found in version 24.5
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21952 in the body.
You can then email your comments to 21952 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21952
; Package
emacs
.
(Wed, 18 Nov 2015 16:46:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
dan.dever <at> cavium.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 18 Nov 2015 16:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I'm accustomed to monitoring the log files of running jobs with emacs
using auto-revert-tail-mode. This no longer works on Emacs 24, but
works fine on previous versions of Emacs. I don't know if the fact
that our disks are mounted via NFS is the problem or not, but I ran one
trial on a local disk in which auto-revert-tail-mode did work.
Regards,
Dan
Standard form below:
----------------------------------------------------------------
emacs -Q logfile
M->
M-x auto-revert-tail-mode
In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
of 2015-04-13 on ln-ddever
Windowing system distributor `Scientific Linux', version 11.0.11300000
System Description: Red Hat Enterprise Linux Client release 6 (Carbon Update 4)
Configured using:
`configure --prefix=/ddever/emacs/emacs-24.5'
Important settings:
value of $LC_ALL: en_US
locale-coding-system: iso-latin-1-unix
Major mode: Fundamental
Minor modes in effect:
auto-revert-tail-mode: t
tooltip-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
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
File changed on disk, content may be missing. Perform a full revert? (y or n) y
Reverting buffer `logfile'.
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils autorevert filenotify
vc-dispatcher vc-svn time-date tooltip 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 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 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
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 72844 7584)
(symbols 48 17666 0)
(miscs 40 48 149)
(strings 32 9868 4609)
(string-bytes 1 283769)
(vectors 16 9186)
(vector-slots 8 386766 15190)
(floats 8 68 422)
(intervals 56 246 175)
(buffers 960 13)
(heap 1024 32659 870))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21952
; Package
emacs
.
(Wed, 18 Nov 2015 17:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 21952 <at> debbugs.gnu.org (full text, mbox):
> From: dan.dever <at> cavium.com
> Date: Wed, 18 Nov 2015 10:00:15 -0500
>
> I'm accustomed to monitoring the log files of running jobs with emacs
> using auto-revert-tail-mode. This no longer works on Emacs 24, but
> works fine on previous versions of Emacs. I don't know if the fact
> that our disks are mounted via NFS is the problem or not, but I ran one
> trial on a local disk in which auto-revert-tail-mode did work.
>
> Regards,
> Dan
>
>
> Standard form below:
> ----------------------------------------------------------------
>
> emacs -Q logfile
> M->
> M-x auto-revert-tail-mode
Does it help to set auto-revert-use-notify to nil?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21952
; Package
emacs
.
(Tue, 23 Aug 2016 08:23:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 21952 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> I'm accustomed to monitoring the log files of running jobs with emacs
>> using auto-revert-tail-mode. This no longer works on Emacs 24, but
>> works fine on previous versions of Emacs. I don't know if the fact
>> that our disks are mounted via NFS is the problem or not, but I ran one
>> trial on a local disk in which auto-revert-tail-mode did work.
> Does it help to set auto-revert-use-notify to nil?
When autorevert detects a file on a known mount location,
`auto-revert-use-notify' is set to nil per default. See
`auto-revert-notify-exclude-dir-regexp', which uses
(regexp-opt '("/afs/" "/media/" "/mnt" "/net/" "/tmp_mnt/"))
Perhaps, the file Dan wants to watch is mounted somewhere else. In this
case I recommend to extend that variable.
Dan, could you check whether this works for you?
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21952
; Package
emacs
.
(Fri, 02 Sep 2016 12:59:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 21952 <at> debbugs.gnu.org (full text, mbox):
On 08/23/2016 04:22 AM, Michael Albinus wrote:
> When autorevert detects a file on a known mount location,
> `auto-revert-use-notify' is set to nil per default. See
> `auto-revert-notify-exclude-dir-regexp', which uses
>
> (regexp-opt '("/afs/" "/media/" "/mnt" "/net/" "/tmp_mnt/"))
>
> Perhaps, the file Dan wants to watch is mounted somewhere else. In this
> case I recommend to extend that variable.
>
> Dan, could you check whether this works for you?
This does work (tried it on emacs-25.0.95).
I prefer just setting auto-revert-use-notify to nil, however, since we'd never be using auto-revert on locally mounted files anyways. But thanks for mentioning the alternative.
What also works is the configuration switch that we recently discovered (and have used to build 25.1-rc1/-rc2): "--with-file-notification=no".
I'm not sure I understand the preference for using a file notification utility by default for auto-revert when that utility only works on locally mounted files. I haven't worked in an environment where our storage has been locally mounted in decades, and I've never had a reason to use auto-revert at home.
Thanks,
Dan
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Fri, 02 Sep 2016 13:44:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
dan.dever <at> cavium.com
:
bug acknowledged by developer.
(Fri, 02 Sep 2016 13:44:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 21952-done <at> debbugs.gnu.org (full text, mbox):
Dan Dever <dan.dever <at> caviumnetworks.com> writes:
Hi Dan,
> On 08/23/2016 04:22 AM, Michael Albinus wrote:
>> When autorevert detects a file on a known mount location,
>> `auto-revert-use-notify' is set to nil per default. See
>> `auto-revert-notify-exclude-dir-regexp', which uses
>>
>> (regexp-opt '("/afs/" "/media/" "/mnt" "/net/" "/tmp_mnt/"))
>>
>> Perhaps, the file Dan wants to watch is mounted somewhere else. In this
>> case I recommend to extend that variable.
>>
>> Dan, could you check whether this works for you?
>
> This does work (tried it on emacs-25.0.95).
>
> I prefer just setting auto-revert-use-notify to nil, however, since
> we'd never be using auto-revert on locally mounted files anyways. But
> thanks for mentioning the alternative.
Thanks for checking. So I will close this bug.
> What also works is the configuration switch that we recently
> discovered (and have used to build 25.1-rc1/-rc2):
> "--with-file-notification=no".
>
> I'm not sure I understand the preference for using a file notification
> utility by default for auto-revert when that utility only works on
> locally mounted files. I haven't worked in an environment where our
> storage has been locally mounted in decades, and I've never had a
> reason to use auto-revert at home.
There are good reasons for file notifications. Think about working in a
git-controlled directory of source files, where file changes could
happen outside Emacs. You want to be informed about, immediately.
But if you don't need it, it is totally OK to compile without file
notification support.
> Thanks,
> Dan
Best regards, Michael.
Added tag(s) notabug.
Request was from
Michael Albinus <michael.albinus <at> gmx.de>
to
control <at> debbugs.gnu.org
.
(Fri, 02 Sep 2016 13:45:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 01 Oct 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 343 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.