Package: emacs;
Reported by: Tassilo Horn <tsdh <at> gnu.org>
Date: Tue, 8 Sep 2015 06:37:01 UTC
Severity: normal
Found in version 25.0.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Message #71 received at 21432 <at> debbugs.gnu.org (full text, mbox):
From: Michael Albinus <michael.albinus <at> gmx.de> To: Eli Zaretskii <eliz <at> gnu.org> Cc: 21432 <at> debbugs.gnu.org, tsdh <at> gnu.org Subject: Re: bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted Date: Tue, 15 Sep 2015 13:54:08 +0200
Eli Zaretskii <eliz <at> gnu.org> writes: > ====================================================================== > 1 -> (file-notify-handle-event (file-notify (100272320 added > ".#-emacsa05420") file-notify-callback)) > | 2 -> (file-notify-callback (100272320 added ".#-emacsa05420")) > | 2 <- file-notify-callback: nil > 1 <- file-notify-handle-event: nil > ====================================================================== > 1 -> (file-notify-handle-event (file-notify (100272320 modified > ".#-emacsa05420") file-notify-callback)) > | 2 -> (file-notify-callback (100272320 modified ".#-emacsa05420")) > | 2 <- file-notify-callback: nil > 1 <- file-notify-handle-event: nil > > I'm confused: why does it mention a lock file instead of some file in > temporary-file-directory? Is some variable missing a value? Well, the lock files are from the write-region call. I see something similar for inotify: ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (create) ".#file-notify-test20231Yhx" 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (create) ".#file-notify-test20231Yhx" 0)) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (create) "file-notify-test20231Yhx" 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (create) "file-notify-test20231Yhx" 0)) | | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") created "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx")) | | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") (2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))]) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (modify) "file-notify-test20231Yhx" 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (modify) "file-notify-test20231Yhx" 0)) | | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") changed "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx")) | | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") #8=(2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9="/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))]) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (delete) ".#file-notify-test20231Yhx" 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (delete) ".#file-notify-test20231Yhx" 0)) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (delete) "file-notify-test20231Yhx" 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (delete) "file-notify-test20231Yhx" 0)) | | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") deleted "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx")) | | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") #8=(2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9="/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))]) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil ====================================================================== 1 -> (file-notify-handle-event (file-notify (2 (ignored) nil 0) file-notify-callback)) | 2 -> (file-notify-callback (2 (ignored) nil 0)) | 2 <- file-notify-callback: nil 1 <- file-notify-handle-event: nil `file-notify--test-event-handler' hasn't been called for the lock files, because it was enabled for the test file only (that's the intention of this test case). It isn't clear to me why `file-notify--test-event-handler' hasn't been called for your test file. That must be something in w32notify.c. Best regards, Michael.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.