mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
Fix Bug#22859
* lisp/filenotify.el (file-notify-callback): Return a `deleted' event in case of kqueue and file1 is nil. (Bug#22859)
This commit is contained in:
parent
ab30bf5e87
commit
06da00c6cf
1 changed files with 4 additions and 2 deletions
|
|
@ -197,8 +197,10 @@ EVENT is the cadr of the event in `file-notify-handle-event'
|
||||||
'(attribute-changed changed created deleted renamed))
|
'(attribute-changed changed created deleted renamed))
|
||||||
action)
|
action)
|
||||||
((memq action '(moved rename))
|
((memq action '(moved rename))
|
||||||
(setq file1 (file-notify--event-file1-name event))
|
;; The kqueue rename event does not return file1 in
|
||||||
'renamed)
|
;; case a file monitor is established.
|
||||||
|
(if (setq file1 (file-notify--event-file1-name event))
|
||||||
|
'renamed 'deleted))
|
||||||
((eq action 'ignored)
|
((eq action 'ignored)
|
||||||
(setq stopped t actions nil))
|
(setq stopped t actions nil))
|
||||||
((memq action '(attrib link)) 'attribute-changed)
|
((memq action '(attrib link)) 'attribute-changed)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue