From 6aaca95125772b979d88fafc4c8d8b26c6ffcc5b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 9 Dec 2013 19:48:01 +0200 Subject: [PATCH] Fix a thinko in last commit in autorevert.el. lisp/autorevert.el (auto-revert-notify-add-watch): Exclude symlinks from file notifications. --- lisp/ChangeLog | 5 +++++ lisp/autorevert.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8a05b461121..8a4cff949ab 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-09 Eli Zaretskii + + * autorevert.el (auto-revert-notify-add-watch): Fix a thinko in + last commit. + 2013-12-09 Michael Albinus * autorevert.el (auto-revert-notify-add-watch): Do not handle diff --git a/lisp/autorevert.el b/lisp/autorevert.el index f0929f95e38..677e5a9ea1f 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -508,7 +508,7 @@ will use an up-to-date value of `auto-revert-interval'" ;; `auto-revert-use-notify' are non-nil. (when (or (string-match auto-revert-notify-exclude-dir-regexp (expand-file-name default-directory)) - (not (file-symlink-p buffer-file-name))) + (file-symlink-p buffer-file-name)) ;; Fallback to file checks. (set (make-local-variable 'auto-revert-use-notify) nil)) -- 2.39.2