emacs/test/lisp/international
Stefan Monnier 3ecc6b4f3c (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.
2024-06-09 00:19:03 -04:00
..
mule-util-resources (find-auto-coding): Provide filename to auto-coding-functions 2024-06-09 00:19:03 -04:00
ccl-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mule-tests.el (find-auto-coding): Provide filename to auto-coding-functions 2024-06-09 00:19:03 -04:00
mule-util-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
textsec-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ucs-normalize-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00