mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
; 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:
parent
ee481d30f9
commit
4cc4c9cffc
1 changed files with 3 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue