From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Setting completion-styles Date: Sat, 07 Dec 2024 13:32:32 +0000 Message-ID: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24288"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 14:33:19 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 1tJuvv-0006A9-GY for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 14:33:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJuvS-0001ml-KZ; Sat, 07 Dec 2024 08:32:50 -0500 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 1tJuvR-0001mV-Ot for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 08:32:49 -0500 Original-Received: from mail-43167.protonmail.ch ([185.70.43.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJuvM-0003jD-J9 for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 08:32:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733578358; x=1733837558; bh=9fpcUFphPGEY0MMC6rpdqvm2SR1qBkenqgTfApcWuf4=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=QUkTDMNWbiPDtNt+NnYbCFFWSX7/l+GsmEOYLtxZ4KN8gN3I6jiZtxBmHTlviEuFm K7EKSwfBBUcL7+JC1GdiYajwviWBiQ/1Z7jeQhxEIyH1CpWOjSR4OKGJXr5zLxc/qt pcu0O9Go9NCueykLqgrLfBmTT93R101Ocoq3Y4A27QtkoVbc/ZDKdqBoBekI3zfvdQ T/VK2ZKCkikhq7VNanAJ3L4yKWfO19lUbDbr1kJLM77nSaFWS5qwaCr1BbcCURSq63 Q7CvS1n4dwU7eT+lz01rdEFUe7TkUm4Vij+979kR/CHEUkSvp6OrBic/PRW4PTQfNz V/PEFKbfSuGPg== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 6e6f0fe35022c065061b4dfdf4fc279126b65f68 Received-SPF: pass client-ip=185.70.43.167; envelope-from=heimeborgia@protonmail.com; helo=mail-43167.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:148656 Archived-At: I want to set completion-styles from the set of symbols passed as arguments in `actn'. I want to improve upon this code (defun lentil-launch (&rest actn) "Launcher for Sentinel feature." (dolist (action actn) (pcase action ('basic (setq completion-styles '(basic))) ('substring (setq completion-styles '(basic substring))) ('orderless (setq completion-styles '(orderless))) ('partial (setq completion-styles '(partial-completion))) ('flex (setq completion-styles '(flex))) ('initials (setq completion-styles '(initials)) )) ))