]> git.eshelyaron.com Git - emacs.git/commit
Fix expand-file-name for names starting with '~'
authorKen Brown <kbrown@cornell.edu>
Mon, 15 Jul 2019 13:32:49 +0000 (09:32 -0400)
committerKen Brown <kbrown@cornell.edu>
Sun, 21 Jul 2019 14:40:54 +0000 (10:40 -0400)
commit8b13ec1d7022b05ce71982c83f320d5272b92de7
tree19e21f261d255ca52d9de7fe7e181579cde0c056
parent0c48c0d0b241c1f3d089be033a7dea3a9b947ca5
Fix expand-file-name for names starting with '~'

* src/fileio.c: (file_name_absolute_no_tilde_p):
New static function.
(Fexpand_file_name): If the current buffer's default-directory
starts with "~user" where "user" is not a valid user name, don't
give the '~' a special meaning.  Just treat the value of
default-directory as a relative name.  (Bug#36502)
* test/src/fileio-tests.el
(fileio-tests--relative-default-directory): Add a test.
src/fileio.c
test/src/fileio-tests.el