Commit c825fd7c authored by Tassilo Horn's avatar Tassilo Horn

Fix double-reporting of rename events with inotify

* lisp/filenotify.el (file-notify-callback): Fix double-reporting
of rename events with inotify (bug#21435).
parent d6d545bf
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment