; 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.
This commit is contained in:
João Távora 2025-12-19 00:48:04 +00:00
parent ee481d30f9
commit 4cc4c9cffc

View file

@ -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")