Minor filenotify.el fixes
* lisp/filenotify.el: Require subr-x. (file-notify-callback): Use equal, not eq.
This commit is contained in:
parent
eeaa707eb6
commit
43203708d4
1 changed files with 4 additions and 3 deletions
|
@ -28,6 +28,7 @@
|
|||
;;; Code:
|
||||
|
||||
(require 'cl-lib)
|
||||
(require 'subr-x)
|
||||
|
||||
(defconst file-notify--library
|
||||
(cond
|
||||
|
@ -155,9 +156,9 @@ EVENT is the cadr of the event in `file-notify-handle-event'
|
|||
;; Send pending event, if it doesn't match.
|
||||
(when (and file-notify--pending-event
|
||||
;; The cookie doesn't match.
|
||||
(not (eq (file-notify--event-cookie
|
||||
(car file-notify--pending-event))
|
||||
(file-notify--event-cookie event)))
|
||||
(not (equal (file-notify--event-cookie
|
||||
(car file-notify--pending-event))
|
||||
(file-notify--event-cookie event)))
|
||||
(or
|
||||
;; inotify.
|
||||
(and (eq (nth 1 (car file-notify--pending-event))
|
||||
|
|
Loading…
Add table
Reference in a new issue