From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Add user customization fido-completion-styles Date: Tue, 02 Jun 2020 19:10:13 +0200 Message-ID: <87d06hfl6y.fsf@gnu.org> References: <87r1uzn018.fsf@gmail.com> <87lfl5fpbx.fsf@gnu.org> <87h7vtfm9m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="35541"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 02 19:11:21 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jgARa-00097F-GP for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jun 2020 19:11:18 +0200 Original-Received: from localhost ([::1]:55664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgARZ-0006il-GE for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jun 2020 13:11:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgAQb-00054h-Fr for emacs-devel@gnu.org; Tue, 02 Jun 2020 13:10:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48544) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgAQb-0000Pl-1y; Tue, 02 Jun 2020 13:10:17 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:51557) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jgAQZ-0004dq-Qz; Tue, 02 Jun 2020 13:10:16 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 4597127C0054; Tue, 2 Jun 2020 13:10:15 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 02 Jun 2020 13:10:15 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudefjedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnheptd elieffkeeuffduueeffefhiedtjeeutdeuveegfffgtdejleekheegkeetkeevnecukfhp peegiedrkedtrdejhedrvdefgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhi thihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrg hsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p2e504bea.dip0.t-ipconnect.de [46.80.75.234]) by mail.messagingengine.com (Postfix) with ESMTPA id 6CB07328005E; Tue, 2 Jun 2020 13:10:14 -0400 (EDT) Mail-Followup-To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Andrew Schwartzmeyer , emacs-devel In-Reply-To: <87h7vtfm9m.fsf@gnu.org> (Tassilo Horn's message of "Tue, 02 Jun 2020 18:47:01 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251766 Archived-At: Hi again, > I don't know when this happens, but it might be that it is before > `icomplete-minibuffer-setup-hook' is called and then setting > `completion-category-overrides' wouldn't have an effect. I'll test... Ok, nothing to worry, it seems to work with those configs. --8<---------------cut here---------------start------------->8--- (defvar th/completion-styles '(basic partial-completion substring flex)) (defvar th/completion-category-overrides '((ecomplete (styles basic partial-completion substring)) (buffer (styles basic partial-completion substring)) (unicode-name (styles basic partial-completion flex)) (info-menu (styles basic partial-completion flex)) (project-file (styles basic partial-completion substring initials)) (file (styles basic partial-completion substring initials)) ;; TODO: There's actually no command category (yet). (command (styles basic partial-completion substring initials)))) (setq read-buffer-completion-ignore-case t read-file-name-completion-ignore-case t completion-cycle-threshold 3 completion-styles th/completion-styles completion-category-overrides th/completion-category-overrides) (defun th/icomplete-minibuffer-setup-init () (when fido-mode (setq-local completion-styles th/completion-styles) (setq-local completion-category-overrides th/completion-category-overrides))) (add-hook 'icomplete-minibuffer-setup-hook #'th/icomplete-minibuffer-setup-init) (fido-mode) --8<---------------cut here---------------end--------------->8---