From: Eli Zaretskii Date: Mon, 9 Dec 2013 17:48:01 +0000 (+0200) Subject: Fix a thinko in last commit in autorevert.el. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~494 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6aaca95125772b979d88fafc4c8d8b26c6ffcc5b;p=emacs.git Fix a thinko in last commit in autorevert.el. lisp/autorevert.el (auto-revert-notify-add-watch): Exclude symlinks from file notifications. --- 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))