]> git.eshelyaron.com Git - emacs.git/commit
Expand directory watcher globs containing ** ()
authorJürgen Hötzel <juergen@archlinux.org>
Mon, 12 Aug 2019 20:13:47 +0000 (22:13 +0200)
committerJoão Távora <joaotavora@gmail.com>
Mon, 12 Aug 2019 20:13:47 +0000 (21:13 +0100)
commitf18137499d46ab4e2210d8190d09cea84834f8d3
tree77f475453a7cfdfe1f5b8b8d4193497e471efbc9
parent3a9221c7b82ff7ce5d76ff1c791743255440d740
Expand directory watcher globs containing ** ()

Previously, if the server requested a glob pattern like foo/**/*
to be watched, we would just error.  Now we watch foo/bar/ and
foo/baz/ as if the server had requested those two watchers
instead of just the one with the **.

As a limitation, the implementation of file-expand-wildcards
doesn't fully handle ** globstars (** matches at most one path
segment).

* eglot.el (eglot-register-capability workspace/didChangeWatchedFiles):
Use file-expand-wildcards to make a ** glob into multiple **-less
globs.

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