aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notes/java
diff options
context:
space:
mode:
authorStefan Monnier2024-06-17 23:25:52 -0400
committerStefan Monnier2024-06-19 16:18:58 -0400
commit0b3e688b230607b0c8571b604621b34860ebccea (patch)
treea63fb7d7f9563443a07efc30d7b0386b101ba3b3 /admin/notes/java
parent624ba9fce0624fa1c82a52d9852ecd74a9f3c6c1 (diff)
downloademacs-0b3e688b230607b0c8571b604621b34860ebccea.tar.gz
emacs-0b3e688b230607b0c8571b604621b34860ebccea.zip
lisp/editorconfig: Advise `find-auto-coding` i.s.o `insert-file-contents`
In Emacs<30, we can't use `auto-coding-functions`, but we can get almost the same result by advising `find-auto-coding`. * lisp/editorconfig.el (editorconfig-merge-coding-systems): Return nil if there's no setting. Don't merge if there's no need. (editorconfig-set-coding-system-revert); Adjust accordingly. (editorconfig--filename-codingsystem-hash): Delete var. (editorconfig--advice-insert-file-contents): Delete function. (editorconfig--advice-find-file-noselect); Simplify. (editorconfig--advice-find-auto-coding): New function. (editorconfig-mode): Use it.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions