]> git.eshelyaron.com Git - emacs.git/commit
editorconfig.el: Fix bug#78097
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 17 May 2025 18:23:34 +0000 (14:23 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 21 May 2025 06:09:22 +0000 (08:09 +0200)
commit28e539e13eca7e4cc0663804435f2c1b133f8362
tree7b8bac0d188ecd6b90d6461ac181479c22f5e97e
parent6a4032ff80707f6ba3a64f041736fddb0b3fd458
editorconfig.el: Fix bug#78097

When there is no `.editorconfig` variable, the
`file-name-directory` call can signal an error, but that can
happen only if `editorconfig-get-local-variables-functions`
added entries "out of thin air".  So just skip running that hook
to avoid this corner case.

* lisp/editorconfig.el (editorconfig--get-dir-local-variables):
Don't run `editorconfig-get-local-variables-functions` when we found no
EditorConfig settings.

(cherry picked from commit 28a8bd6061d99c71ca2ac17868dfc8cf36a1c728)
lisp/editorconfig.el