emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7a8ae23 2/2: * src/inotify.c (add_watch): Add comme


From: Paul Eggert
Subject: [Emacs-diffs] master 7a8ae23 2/2: * src/inotify.c (add_watch): Add comment.
Date: Thu, 30 Mar 2017 20:48:26 -0400 (EDT)

branch: master
commit 7a8ae233d1bdf538a99233e52f0d7dd0975df2d1
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * src/inotify.c (add_watch): Add comment.
---
 src/inotify.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/inotify.c b/src/inotify.c
index a0a89aa..2907013 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -227,6 +227,9 @@ add_watch (int wd, Lisp_Object filename,
        emacs_abort ();
     }
 
+  /* Insert the newly-assigned ID into the previously-discovered gap,
+     which is possibly at the end of the list.  Inserting it there
+     keeps the list sorted.  */
   watch_id = make_number (id);
   watch = list4 (watch_id, filename, callback, mask);
   XSETCDR (tail, Fcons (watch, XCDR (tail)));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]