emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c825fd7: Fix double-reporting of rename events with


From: Tassilo Horn
Subject: [Emacs-diffs] master c825fd7: Fix double-reporting of rename events with inotify
Date: Tue, 08 Sep 2015 18:59:48 +0000

branch: master
commit c825fd7cf94979a7f7c6777c985fd84024535905
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Fix double-reporting of rename events with inotify
    
    * lisp/filenotify.el (file-notify-callback): Fix double-reporting
    of rename events with inotify (bug#21435).
---
 lisp/filenotify.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/filenotify.el b/lisp/filenotify.el
index 5822cf0..4af9e90 100644
--- a/lisp/filenotify.el
+++ b/lisp/filenotify.el
@@ -177,9 +177,9 @@ EVENT is the cadr of the event in `file-notify-handle-event'
                               (car file-notify--pending-event)))
                   ;; If the source is handled by another watch, we
                   ;; must fire the rename event there as well.
-                  (when (not (eq (file-notify--descriptor desc)
-                                 (file-notify--descriptor
-                                  (caar file-notify--pending-event))))
+                  (when (not (equal (file-notify--descriptor desc)
+                                    (file-notify--descriptor
+                                     (caar file-notify--pending-event))))
                     (setq pending-event
                           `((,(caar file-notify--pending-event)
                              renamed ,file ,file1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]