• Ken Brown's avatar
    Fix expand-file-name for names starting with '~' · 8b13ec1d
    Ken Brown authored
    * 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.
    8b13ec1d
fileio-tests.el 5.91 KB