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: Philip Kaludercic
Subject: Re: Fido and ido and completion or not completion
Date: Wed, 13 Mar 2024 18:13:35 +0000

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.

> GNU Emacs 29.1.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
> cairo version 1.16.0) of 2023-11-18
>
>

-- 
        Philip Kaludercic on peregrine



reply via email to

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