[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 436ed23: Fix a stupid error in gfilenotify.c.
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master 436ed23: Fix a stupid error in gfilenotify.c. |
Date: |
Tue, 03 Nov 2015 17:18:05 +0000 |
branch: master
commit 436ed2399ade5c41b8ed3cffe177fb5210eff574
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Fix a stupid error in gfilenotify.c.
* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
if we've got a `deleted' signal AND the file name is the watched one.
---
src/gfilenotify.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index 2057f88..8660f41 100644
--- a/src/gfilenotify.c
+++ b/src/gfilenotify.c
@@ -110,6 +110,7 @@ dir_monitor_callback (GFileMonitor *monitor,
/* Cancel monitor if file or directory is deleted. */
if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) &&
+ (strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) &&
!g_file_monitor_is_cancelled (monitor))
g_file_monitor_cancel (monitor);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 436ed23: Fix a stupid error in gfilenotify.c.,
Michael Albinus <=