From 436ed2399ade5c41b8ed3cffe177fb5210eff574 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 3 Nov 2015 18:17:53 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/gfilenotify.c b/src/gfilenotify.c index 2057f885300..8660f415e2f 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); } -- 2.39.5