help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fido and ido and completion or not completion


From: Tomas Nordin
Subject: Re: Fido and ido and completion or not completion
Date: Thu, 14 Mar 2024 20:52:13 +0000

Philip Kaludercic <philipk@posteo.net> writes:

> Tomas Nordin <tomasn@posteo.net> writes:
>
>> Hello
>>
>> When using fido as completion help, I get enhanced completion using
>> project and C-x p p (project-switch-project). With ido I dont get that.
>> Fido also tries to complete for me when entering a mail search with
>> notmuch, this I dont want.
>>
>> How do I get about tuning things so either Fido stops completing my
>> notmuch searches or get ido to complete for me when switching projects
>> with C-x p p?
>
> The issue is that ido and fido take different approaches.  Ido rebinds
> commands like find-file to ido-find-file, switch-to-buffer to
> iso-switch-to-buffer, etc. (see ido-minor-mode-map-entry).  Fido or
> rather Icomplete work by hooking into the completion system, so that any
> time a function uses a function like `completing-read', it provides
> interactive narrowing.
>
> Looking at the implementation, I could imagine that you could advise
> `icomplete--in-region-setup' to check for `this-command', and depending
> on what you want, to either call or not the call the actual function.
>
> I don't have the notmuch source code lying around, but perhaps you could
> ask the notmuch maintainers why they are doing what they do.

Thanks for the insights. I noticed when using icomplete, the completion
attempts did not happen with notmuch searches. But for now I put on Ido
mode plus set completion-cycle-threshold to some low number. Then
vanilla completion do what I need with C-x p p and I get nice completion
with ido doing files and buffers.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]