aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorStefan Monnier2024-06-04 10:58:29 -0400
committerStefan Monnier2024-06-09 00:19:03 -0400
commit3ecc6b4f3c2b070ed2c4463e2c5d8755ccc19f1c (patch)
tree36ec13f004e81faad33f8a42e30a96c4a40451d5 /etc
parentce5d004b5b093842d9c46976c50453015fe1a7e7 (diff)
downloademacs-3ecc6b4f3c2b070ed2c4463e2c5d8755ccc19f1c.tar.gz
emacs-3ecc6b4f3c2b070ed2c4463e2c5d8755ccc19f1c.zip
(find-auto-coding): Provide filename to `auto-coding-functions`
Allow `auto-coding-functions` to know the file name. Motivated by the needs of Editorconfig support. * lisp/international/mule.el (auto-coding-file-name): New var. (find-auto-coding): Let-bind it for `auto-coding-functions`. Document the expectation that the arg be an absolute file name. * doc/lispref/nonascii.texi (Default Coding Systems): Mention `auto-coding-file-name`. * test/lisp/international/mule-util-resources/test.utf-16le: New file. * test/lisp/international/mule-tests.el (mule-tests--dir): New var. (mule-tests--auto-coding): New fun. (mule-tests--auto-coding-functions): New test.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index a7d17862242..779ff99d442 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2187,6 +2187,11 @@ completion candidate.
2187* Lisp Changes in Emacs 30.1 2187* Lisp Changes in Emacs 30.1
2188 2188
2189+++ 2189+++
2190** 'auto-coding-functions' can know the name of the file.
2191The functions on this hook can now find the name of the file to
2192which the text belongs by consulting the variable 'auto-coding-file-name'.
2193
2194+++
2190** New user option 'compilation-safety' to control safety of native code. 2195** New user option 'compilation-safety' to control safety of native code.
2191It's now possible to control how safe is the code generated by native 2196It's now possible to control how safe is the code generated by native
2192compilation, by customizing this user option. It is also possible to 2197compilation, by customizing this user option. It is also possible to