[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tab completion on find file with (C-x C-f) adds a slash to end of fi
Re: Tab completion on find file with (C-x C-f) adds a slash to end of file
Mon, 12 Aug 2019 21:06:24 +0300
> From: Anne Summers <email@example.com>
> Date: Mon, 12 Aug 2019 12:53:25 -0500
> When I try to open a file with (C-x C-f) and try to complete name file
> with tab a / is added at the end of the file like it does for directory.
> For example if I want to open .bash_profile and I do (C-x C-f) then type
> .bash_pr the completions I get is: Find file: ~/.bash_profile/
> I am not sure how or why that / is being added. I can't recall seeing this
> behavior before.I see similar behavior on eshell. I see this with and
> without my .emacs file.
> I am running on AIX and I don't see this in other architectures.
> GNU Emacs 26.1 (build 1, powerpc-ibm-aix126.96.36.199)
> of 2019-04-23
> Copyright (C) 2018 Free Software Foundation, Inc.
> Thanks for any pointers
Look at dired.c:file_name_completion_dirp -- crystal ball says on your
system it tells Emacs that a file is actually a directory. Perhaps
the way faccessat works on your system is to blame.