diff options
| author | Paul Eggert | 2019-07-24 14:28:13 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-24 14:33:02 -0700 |
| commit | a5063aa8b174db286a0e83b8ffdd4e65c521f733 (patch) | |
| tree | dc439d78ecef638817f98cb7e43868fa2ab7b856 /etc | |
| parent | e089c3141a51bf70b91da21a01cdb4be0b63c08d (diff) | |
| download | emacs-a5063aa8b174db286a0e83b8ffdd4e65c521f733.tar.gz emacs-a5063aa8b174db286a0e83b8ffdd4e65c521f733.zip | |
Do not treat ~nosuchuser as an absolute file name
Derived from Ken Brown’s patch (Bug#36502#97).
* doc/lispref/files.texi (Relative File Names):
* etc/NEWS: Document this.
* src/fileio.c (user_homedir): New function.
(Fexpand_file_name, file_name_absolute_p): Use it.
(search_embedded_absfilename): Simplify via file_name_absolute_p.
* test/src/fileio-tests.el (fileio-tests--no-such-user): New test.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -1815,6 +1815,9 @@ relative to the 'default-directory' of the current buffer. We recommend | |||
| 1815 | always setting "$HOME" to an absolute file name, so that its meaning is | 1815 | always setting "$HOME" to an absolute file name, so that its meaning is |
| 1816 | independent of where Emacs was started. | 1816 | independent of where Emacs was started. |
| 1817 | 1817 | ||
| 1818 | ** file-name-absolute-p no longer considers "~foo" to be an absolute | ||
| 1819 | file name if there is no user named "foo". | ||
| 1820 | |||
| 1818 | ** The FILENAME argument to 'file-name-base' is now mandatory and no | 1821 | ** The FILENAME argument to 'file-name-base' is now mandatory and no |
| 1819 | longer defaults to 'buffer-file-name'. | 1822 | longer defaults to 'buffer-file-name'. |
| 1820 | 1823 | ||