GNU bug report logs - #26126
26.0.50; file-notify-rm-watch removes arbitrary watches

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Thu, 16 Mar 2017 14:16:02 UTC

Severity: normal

Tags: fixed

Found in version 26.0.50

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 26126 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Politz <politza <at> hochschule-trier.de>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 26126 <at> debbugs.gnu.org
Subject: Re: bug#26126: 26.0.50; file-notify-rm-watch removes arbitrary watches
Date: Sat, 18 Mar 2017 20:28:14 +0100
I have another question:

Do you remember what this comment from file-notify-callback is talking
about ?

#+BEGIN_SRC emacs-lisp
((memq action '(moved rename))
 ;; The kqueue rename event does not return file1 in
 ;; case a file monitor is established.
 (if (setq file1 (file-notify--event-file1-name event))
     'renamed 'deleted))
#+END_SRC

And file-notify--event-file1-name basically returns nil, if the file1
argument of event is not a string.  But this seems to contradict the
comment, which states that file1 *is* nil, implying that the stored
filename should be used, or not ?

-ap






This bug report was last modified 8 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.