]> git.eshelyaron.com Git - emacs.git/commit
* lisp/simple.el (completion-setup-function): Use file-name-directory.
authorJuri Linkov <juri@linkov.net>
Wed, 1 Jun 2022 19:12:12 +0000 (22:12 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 1 Jun 2022 19:12:12 +0000 (22:12 +0300)
commit3fd58ad37e12845fab905c00e87ae1d49755504a
treec97a5823068d1cb7b68876581fa018a20a29365e
parent58965d91e7fb5a26a5422357f44d6e841f67db74
* lisp/simple.el (completion-setup-function): Use file-name-directory.

Replace file-name-as-directory with file-name-directory,
because file-name-as-directory returns a nonexistent dir
e.g. "/dir/prefix/" when completing "/dir/prefix".
OTOH, file-name-directory returns "/dir/" in such cases (bug#55743).
lisp/simple.el