]> git.eshelyaron.com Git - emacs.git/commit
Use project-files to know which directory watchers to skip
authorJoão Távora <joaotavora@gmail.com>
Wed, 26 May 2021 17:51:30 +0000 (18:51 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 26 May 2021 17:51:30 +0000 (18:51 +0100)
commitb1a379cd774f40f6709fdfbb5c469fc317f22f8d
treebd4f2e6ddc2c548e4ad4e32a6bef277a8c27b808
parent02dc70363120beb28e770a872ab3960fb0920fa0
Use project-files to know which directory watchers to skip

The directory-finding logic is probably a bit slower than using
eglot--directories-recursively, but since it honours `.gitignores` and
ignores more directories it's much faster overall.  And guaranteed to
create less watchers.

Thanks to Dmitry Gutov <dgutov@yandex.ru> for the idea.

* eglot.el (eglot--directories-recursively): Remove.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/697
lisp/progmodes/eglot.el