From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: Fido and ido and completion or not completion Date: Wed, 13 Mar 2024 18:13:35 +0000 Message-ID: <87v85qyp80.fsf@posteo.net> References: <87il1rnk28.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15215"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Tomas Nordin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 13 19:14:24 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkT7P-0003m6-Hk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Mar 2024 19:14:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkT6k-0000wT-W3; Wed, 13 Mar 2024 14:13:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkT6k-0000wI-3s for help-gnu-emacs@gnu.org; Wed, 13 Mar 2024 14:13:42 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkT6i-0006kq-7e for help-gnu-emacs@gnu.org; Wed, 13 Mar 2024 14:13:41 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 83897240103 for ; Wed, 13 Mar 2024 19:13:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710353616; bh=x0y2VDJUpcUJgzy2A31vUK2kki9wYch383tIBEEA3Rs=; h=From:To:Cc:Subject:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=bS9BhR3UzUPrAtXHOPwAqFBPPBge09yldYxewMbHQhZCR7DGMCHSThAqXd0AvdE7h pvLqjuYMGsmQVGqXnU6Z5iaNx+Pf1hIXOihtCJarYcYhCqXWiBFnDKyNC3OV3KCtXr BcXiXMEJ7sqAZvmDYANDqD0W93QvdLgk4CW6JHX+F/L8a7Mwm/yaphpKy7tfKswmm+ DftedAOiKTRgKvCNGnOzerPNLOjJdNmla+bWMS1H2yq2cKTtO5EbQJ8VCSd5UeqIn6 cgOmwtsZK0J+ZJwVshho1Hl8DdTvSuaL2ef/BY6hqcDBKbrcbmUWTe/EpmS/dCAbTC tIbox9IBYFnmg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TvzCg6PtDz9rxP; Wed, 13 Mar 2024 19:13:35 +0100 (CET) In-Reply-To: <87il1rnk28.fsf@posteo.net> (Tomas Nordin's message of "Tue, 12 Mar 2024 22:48:15 +0000") OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146087 Archived-At: Tomas Nordin 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