diff options
| author | Stefan Monnier | 2024-06-04 10:58:29 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-06-09 00:19:03 -0400 |
| commit | 3ecc6b4f3c2b070ed2c4463e2c5d8755ccc19f1c (patch) | |
| tree | 36ec13f004e81faad33f8a42e30a96c4a40451d5 /etc | |
| parent | ce5d004b5b093842d9c46976c50453015fe1a7e7 (diff) | |
| download | emacs-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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. | ||
| 2191 | The functions on this hook can now find the name of the file to | ||
| 2192 | which 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. |
| 2191 | It's now possible to control how safe is the code generated by native | 2196 | It's now possible to control how safe is the code generated by native |
| 2192 | compilation, by customizing this user option. It is also possible to | 2197 | compilation, by customizing this user option. It is also possible to |