aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-05-19 22:43:31 +0200
committerMattias EngdegÄrd2019-05-19 22:47:31 +0200
commit6d5a8175b34e02fc42c965b5cf6e83c954390f0b (patch)
treef47a8907b7210f40bd099027b9c1964310c37d72
parent613565494d048ec758d5051484a17fdeccd42f00 (diff)
downloademacs-6d5a8175b34e02fc42c965b5cf6e83c954390f0b.tar.gz
emacs-6d5a8175b34e02fc42c965b5cf6e83c954390f0b.zip
Comment out inexplicable condition in filenotify
* lisp/filenotify.el (file-notify-callback): Comment out condition that does not seem to make any sense. All it seems to do is allowing notifications for files on the form DIR/X/X when we really just are watching DIR/X/Y.
-rw-r--r--lisp/filenotify.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/filenotify.el b/lisp/filenotify.el
index 26b83ce66c0..d77046d2871 100644
--- a/lisp/filenotify.el
+++ b/lisp/filenotify.el
@@ -238,11 +238,17 @@ EVENT is the cadr of the event in `file-notify-handle-event'
238 (string-equal 238 (string-equal
239 (file-notify--watch-filename watch) 239 (file-notify--watch-filename watch)
240 (file-name-nondirectory file)) 240 (file-name-nondirectory file))
241
241 ;; Directory matches. 242 ;; Directory matches.
242 (string-equal 243 ;; FIXME: What purpose would this condition serve?
243 (file-name-nondirectory file) 244 ;; Doesn't it just slip through events for files
244 (file-name-nondirectory 245 ;; having the same name as the last component of the
245 (file-notify--watch-directory watch))) 246 ;; directory of the file that we are really watching?
247 ;;(string-equal
248 ;; (file-name-nondirectory file)
249 ;; (file-name-nondirectory
250 ;; (file-notify--watch-directory watch)))
251
246 ;; File1 matches. 252 ;; File1 matches.
247 (and (stringp file1) 253 (and (stringp file1)
248 (string-equal 254 (string-equal