* lisp/filenotify.el (file-notify-callback): Fix double-reporting
of rename events with inotify (bug#21435).
(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)