Closed phst closed 5 years ago
Well, it's actually a bug that ffap
is triggering ido-cr+ at all, since ido-cr+ isn't about completing files. I think I need to blacklist ffap-read-file-or-url-internal
, and possibly a few other ffap subroutines. That seems to fix this particular instance of the problem.
As for the general problem of calling system-users
when completing file names with ~
in them, that might be a problem with Emacs itself. There's nothing ido-cr+ can do about that.
For example, run
This uses
find-file-at-point
to visit nonexisting file~/foobar
. The file has to be in the current user's home directory. Nevertheless, this ends up callingsystem-users
:This is unnecessary and can be very slow if there are lots of users (e.g. in large organizations). Somehow ido-completing-read+ should prevent completion of
~
here.