From: Drew Adams <drew.adams@oracle.com>
To: "João Távora" <joaotavora@gmail.com>, 34070@debbugs.gnu.org
Cc: monnier@iro.umontreal.ca
Subject: bug#34070: 27.0.50; icomplete-mode candidate cycling broken for C-x C-f
Date: Thu, 17 Jan 2019 07:46:08 -0800 (PST) [thread overview]
Message-ID: <154c946e-28c9-4afa-865a-ac15d2e83bce@default> (raw)
In-Reply-To: <jjbsgxr2wnd.fsf@gmail.com>
> while still honouring the original intention of Drew's change:
> 65797b1d7 "Make icomplete respect `completion-ignored-extensions'"
> the new patch does two things:
> 1. Still fixes the candidate cycling (i.e. this bug)
> 2. Leaves the current directory as a candidate, i.e. "./" is *not*
> filtered from the prospects list (but "../" is).
>
> Number 2 can be seen as "new" behaviour, but then Drew's patch also
> silently introduced new behaviour by filtering out "./" and "../",
> which are *not* in completion-ignored-extensions. Reading bug
> #12939... this seems to have gone unnoticed.
>
> If someone thinks this is a problem we can make this configurable
> (though I think the default should be what I suggest, since it
> makes C-x C-f'ing directories much easier).
I can't speak to whether `.' or `..' should (always?
sometimes?) be filtered out for Icomplete completion of
file-name candidates.
I think you're right that the intention of my patch was
just to respect `completion-ignored-extensions'. That was
the "new" behavior to be introduced, and not silently.
But why is it that `completion-pcm--filename-try-filter'
adds `.' and `..' to its filter, so they too are excluded?
I guess it's because they are not candidates returned by
`try'?
Assuming there's a good reason why `c-p--f-t-f' does that,
and if that's not appropriate for Icomplete in all or most
cases, then I guess `c-p--f-t-f' wasn't a perfect match for
Icomplete. ;-)
But maybe someone should take a look at `c-p--f-t-f' more
generally? If `.' or `..' is appropriate for file-name
completions sometimes (e.g. in Icomplete), then do some of
the current uses of `c-p--f-t-f' also manifest the same
bug that you are adding here?
E.g., is removal of `.' and `..' always appropriate for
`completion-basic-try-completion',
`completion-pcm-try-completion' and
`completion-substring-try-completion'?
(Note too that you are adding to this bug, which was
purportedly about broken cycling. Is this additional
change necessary to fix the cycling problem, or should
it be the subject of a new bug report?)
BTW, see also bug #13322, companion to bug #12939.
It should never have been closed, IMHO.
BTW2, as stated in bug #12939,
`completion-pcm--filename-try-filter' is the wrong name.
It should not use `--'. It's not "internal" in any way,
or at least it should not be considered so. Internal to
what? It's not internal to `completion-pcm' (whatever
that might be/mean now) or to `minibuffer.el'.
It's as general and useful as any other Lisp function -
no reason to try to signal to users that it is (also)
used to build some basic Emacs behavior. Users can
well make use of such a function. Misuse of the label
"internal" is akin to Trump trying to "build that wall".
next prev parent reply other threads:[~2019-01-17 15:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-14 13:47 bug#34070: 27.0.50; icomplete-mode candidate cycling broken for C-x C-f João Távora
2019-01-14 16:03 ` Eli Zaretskii
2019-01-14 16:25 ` João Távora
2019-01-14 16:40 ` Eli Zaretskii
2019-01-14 17:11 ` João Távora
2019-01-14 17:40 ` Eli Zaretskii
2019-01-14 17:51 ` João Távora
2019-01-14 17:55 ` Drew Adams
2019-01-17 14:20 ` João Távora
2019-01-17 15:00 ` Stefan Monnier
2019-01-17 15:22 ` João Távora
2019-01-17 15:46 ` Drew Adams [this message]
2019-01-17 15:55 ` Stefan Monnier
2019-01-17 15:55 ` João Távora
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=154c946e-28c9-4afa-865a-ac15d2e83bce@default \
--to=drew.adams@oracle.com \
--cc=34070@debbugs.gnu.org \
--cc=joaotavora@gmail.com \
--cc=monnier@iro.umontreal.ca \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).