]> git.eshelyaron.com Git - emacs.git/commit
editorconfig-core-handle.el: Don't use file names as glob pattern
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 18 Jun 2024 21:11:34 +0000 (17:11 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:00:18 +0000 (21:00 +0200)
commit8765a8035c816f5605a50291bc5eddd06d28f356
tree66d471212e1bdcfc8ce4dd64876460aa2131a78a
parent12cc53f8550f7e45ea05e0be5a765fdf63009d1d
editorconfig-core-handle.el: Don't use file names as glob pattern

Match relative file names against the glob pattern instead of
trying to construct a glob pattern that matches the absolute
file name (where the code failed to escape the possible
special chars).

* lisp/editorconfig-core-handle.el
(editorconfig-core-handle-section-get-properties): Delete `dir` arg.
(editorconfig-core-handle-get-properties-hash)
(editorconfig-core-handle-get-properties): Adjust call accordingly.
Use `declare` to mark it obsolete.
(editorconfig-core-handle--fnmatch-p): Delete `dir` arg.

(cherry picked from commit 66d5bc292f1533b21b8fbe46291a0b4ec0b8cb53)
lisp/editorconfig-core-handle.el