]> code.delx.au - gnu-emacs/commitdiff
Fix a thinko in last commit in autorevert.el.
authorEli Zaretskii <eliz@gnu.org>
Mon, 9 Dec 2013 17:48:01 +0000 (19:48 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 9 Dec 2013 17:48:01 +0000 (19:48 +0200)
 lisp/autorevert.el (auto-revert-notify-add-watch): Exclude symlinks from
 file notifications.

lisp/ChangeLog
lisp/autorevert.el

index 8a05b461121e9d9ef3450ae545f1838d8f164ce8..8a4cff949ab3c2dfbdc12045cb207dc31c7d6111 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * autorevert.el (auto-revert-notify-add-watch): Fix a thinko in
+       last commit.
+
 2013-12-09  Michael Albinus  <michael.albinus@gmx.de>
 
        * autorevert.el (auto-revert-notify-add-watch): Do not handle
index f0929f95e380708677b2dc27ba9ed384068cc99a..677e5a9ea1fc5bac6c315781afd5c2a1b16d66b5 100644 (file)
@@ -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))