summaryrefslogtreecommitdiff
path: root/lisp/filenotify.el
diff options
context:
space:
mode:
authorTassilo Horn <tsdh@gnu.org>2015-09-08 20:55:29 +0200
committerTassilo Horn <tsdh@gnu.org>2015-09-08 20:59:45 +0200
commitc825fd7cf94979a7f7c6777c985fd84024535905 (patch)
tree406e825f7414f763d88ecfcffb4dfc9f2b152b6b /lisp/filenotify.el
parentd6d545bf7636b7b7678ea85e58a41b6bf0b860ec (diff)
downloademacs-c825fd7cf94979a7f7c6777c985fd84024535905.tar.gz
Fix double-reporting of rename events with inotify
* lisp/filenotify.el (file-notify-callback): Fix double-reporting of rename events with inotify (bug#21435).
Diffstat (limited to 'lisp/filenotify.el')
-rw-r--r--lisp/filenotify.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/filenotify.el b/lisp/filenotify.el
index 5822cf0cc7e..4af9e90a35a 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)