]> git.eshelyaron.com Git - emacs.git/commit
Don't over-normalize file names starting with "~" in Eshell
authorJim Porter <jporterbugs@gmail.com>
Sun, 12 Mar 2023 07:53:34 +0000 (23:53 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sun, 19 Mar 2023 02:24:15 +0000 (19:24 -0700)
commit6afa91f796661058a8eb3646d7063ea468b42901
tree007bddf894954f1bb25d58940631972c585f4b3c
parent4234e204ec0e73211e0041d78460b2c51913a517
Don't over-normalize file names starting with "~" in Eshell

Previously, this would call 'expand-file-name' on the file name, but
that normalizes the value, turning something like "~/." into
"/home/user".  As a result, Pcomplete didn't work for dotfiles after
"~/" (bug#28064).

* lisp/eshell/em-dirs.el (eshell-expand-user-reference): New
function...
(eshell-expand-user-reference): ... use it.
lisp/eshell/em-dirs.el