Function: auto-revert-notify-rm-watch
auto-revert-notify-rm-watch is a byte-compiled function defined in
autorevert.el.gz.
Signature
(auto-revert-notify-rm-watch)
Documentation
Disable file notification for current buffer's associated file.
Source Code
;; Defined in /usr/src/emacs/lisp/autorevert.el.gz
(defun auto-revert-notify-rm-watch ()
"Disable file notification for current buffer's associated file."
(when-let ((desc auto-revert-notify-watch-descriptor))
(setq auto-revert--buffer-by-watch-descriptor
(assoc-delete-all desc auto-revert--buffer-by-watch-descriptor))
(ignore-errors
(file-notify-rm-watch desc))
(remove-hook 'kill-buffer-hook #'auto-revert-notify-rm-watch t))
(setq auto-revert-notify-watch-descriptor nil
auto-revert-notify-modified-p nil))