]> git.eshelyaron.com Git - emacs.git/commit
lisp/editorconfig: Use new Emacs-30 hooks
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Jun 2024 21:18:13 +0000 (17:18 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:00:09 +0000 (21:00 +0200)
commit59bd7c7ea3636100d0984134a0cf7815ddcdc7c2
treee80efac1a4894ac2c2c0af838aa3addca8270a0d
parent218dd7e2448ed89ea4bbf72e151f64719d4dd8b1
lisp/editorconfig: Use new Emacs-30 hooks

* lisp/editorconfig.el (editorconfig--get-coding-system)
(editorconfig--get-dir-local-variables): New functions.
(editorconfig-mode): Use them if possible.
(editorconfig-hack-properties-functions only)
(editorconfig-after-apply-functions): Define only when the old advice
is used, since the new hooks don't support them.

(cherry picked from commit 624ba9fce0624fa1c82a52d9852ecd74a9f3c6c1)
lisp/editorconfig.el