unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Tab completion on find file with (C-x C-f) adds a slash to end of file
Date: Mon, 12 Aug 2019 21:06:24 +0300	[thread overview]
Message-ID: <83tvams1gf.fsf@gnu.org> (raw)
In-Reply-To: <CAKkJhN02qZhKcjrPPVH4Sm67h9xbaXRH1T+Aq1jCLO6udzuQfA@mail.gmail.com> (message from Anne Summers on Mon, 12 Aug 2019 12:53:25 -0500)

> From: Anne Summers <ukulanne@gmail.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-aix6.1.9.0)
>  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.



      reply	other threads:[~2019-08-12 18:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-12 17:53 Tab completion on find file with (C-x C-f) adds a slash to end of file Anne Summers
2019-08-12 18:06 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83tvams1gf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).