From 4cc4c9cffcdb50753fee0924f5a4600c3ec99f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 19 Dec 2025 00:48:04 +0000 Subject: [PATCH] ; Eglot: fix oversight and add back essential delete-dups Else will make a number of file-notify descriptors proportional to the number of files in a directory (though this doesn't apply to out-of-root watchers). * lisp/progmodes/eglot.el (eglot--watch-globs): Tweak. --- lisp/progmodes/eglot.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index f6a7be6ddf0..4d31c314ef5 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -4330,8 +4330,9 @@ the directory to watch (nil means entire project). IN-ROOT says if DIR happens to be inside or maching the project root." (cl-labels ((subdirs-using-project () - (mapcar #'file-name-directory - (project-files project (and dir (list dir))))) + (delete-dups + (mapcar #'file-name-directory + (project-files project (and dir (list dir)))))) (subdirs-using-find () (with-temp-buffer (call-process find-program nil t nil dir "-type" "d" "-print0")