Commit 96871766 authored by Paul Eggert's avatar Paul Eggert

* src/gfilenotify.c: Fix indenting.

parent 2f86095c
Pipeline #909 failed with stage
in 60 minutes and 1 second
...@@ -86,11 +86,11 @@ dir_monitor_callback (GFileMonitor *monitor, ...@@ -86,11 +86,11 @@ dir_monitor_callback (GFileMonitor *monitor,
/* Check, whether event_type is expected. */ /* Check, whether event_type is expected. */
flags = XCAR (XCDR (XCDR (watch_object))); flags = XCAR (XCDR (XCDR (watch_object)));
if ((!NILP (Fmember (Qchange, flags)) && if ((!NILP (Fmember (Qchange, flags))
!NILP (Fmember (symbol, list5 (Qchanged, Qchanges_done_hint, && !NILP (Fmember (symbol, list5 (Qchanged, Qchanges_done_hint,
Qdeleted, Qcreated, Qmoved)))) || Qdeleted, Qcreated, Qmoved))))
(!NILP (Fmember (Qattribute_change, flags)) && || (!NILP (Fmember (Qattribute_change, flags))
((EQ (symbol, Qattribute_changed))))) && EQ (symbol, Qattribute_changed)))
{ {
/* Construct an event. */ /* Construct an event. */
EVENT_INIT (event); EVENT_INIT (event);
...@@ -108,9 +108,9 @@ dir_monitor_callback (GFileMonitor *monitor, ...@@ -108,9 +108,9 @@ dir_monitor_callback (GFileMonitor *monitor,
} }
/* Cancel monitor if file or directory is deleted. */ /* Cancel monitor if file or directory is deleted. */
if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) && if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved)))
(strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) && && strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0
!g_file_monitor_is_cancelled (monitor)) && !g_file_monitor_is_cancelled (monitor))
g_file_monitor_cancel (monitor); g_file_monitor_cancel (monitor);
} }
...@@ -240,10 +240,10 @@ WATCH-DESCRIPTOR should be an object returned by `gfile-add-watch'. */) ...@@ -240,10 +240,10 @@ WATCH-DESCRIPTOR should be an object returned by `gfile-add-watch'. */)
eassert (FIXNUMP (watch_descriptor)); eassert (FIXNUMP (watch_descriptor));
GFileMonitor *monitor = XFIXNUMPTR (watch_descriptor); GFileMonitor *monitor = XFIXNUMPTR (watch_descriptor);
if (!g_file_monitor_is_cancelled (monitor) && if (!g_file_monitor_is_cancelled (monitor)
!g_file_monitor_cancel (monitor)) && !g_file_monitor_cancel (monitor))
xsignal2 (Qfile_notify_error, build_string ("Could not rm watch"), xsignal2 (Qfile_notify_error, build_string ("Could not rm watch"),
watch_descriptor); watch_descriptor);
/* Remove watch descriptor from watch list. */ /* Remove watch descriptor from watch list. */
watch_list = Fdelq (watch_object, watch_list); watch_list = Fdelq (watch_object, watch_list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment