From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arvid-harnack@lavache.com Newsgroups: gmane.emacs.help Subject: Changing completion-style using the minibuffer Date: Fri, 11 Jun 2021 22:02:05 +0200 (CEST) Message-ID: 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="15303"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 11 22:02:49 2021 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 1lrnMf-0003lW-5t for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Jun 2021 22:02:49 +0200 Original-Received: from localhost ([::1]:52458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrnMd-0004xm-74 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Jun 2021 16:02:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrnM3-0004xP-MX for help-gnu-emacs@gnu.org; Fri, 11 Jun 2021 16:02:11 -0400 Original-Received: from msg-2.mailo.com ([213.182.54.12]:33816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrnM1-0005v5-6U for help-gnu-emacs@gnu.org; Fri, 11 Jun 2021 16:02:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lavache.com; s=mailo; t=1623441725; bh=znbs4Za0FFex2rpRBZVF6xK246EfOCKfmFVtnZx/IVw=; h=X-EA-Auth:From:To:Date:Subject:MIME-Version:X-Mailer:Message-ID: Content-Type; b=Mop/iiFzSdkJrt6R8ZKo09wfCGNsZEf2VSfotLfbmMs5DIAqEJSxKPWGxy3NJJy90 C8k4FlnyQtizlYjLe2hR/jwlTmeX1d2RBR+1Imz9npO8wbTaQs+F5JX8fyVc9bowIi y1MuuZzMEl3dhmpsfYXMXEszhjIYlZxvPJA3T1g0= Original-Received: by www-7.mailo.com with http webmail; Fri, 11 Jun 2021 22:02:05 +0200 (CEST) X-EA-Auth: BhKeZek6WH+GhxsWoXXS2OVlVArlhl52Nxt/7i8USXmxLiVkUTG3bxpqWlcT4ukAEm0gICScyHPCPfYJfvkvjDyiSG9dsKn1 X-Priority: 3 X-Mailer: COMS/EA21.01/r20210601 Received-SPF: pass client-ip=213.182.54.12; envelope-from=arvid-harnack@lavache.com; helo=msg-2.mailo.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:130769 Archived-At: I have the following code to change completion-styles by calling "M-x minib= ufrp-complt-style". But would like to change it so that I can go through the four selections u= sing the minibuffer. What would I need to add exactly to be able to do so ? (defvar k 1) (defun minibufrp-complt-style () =C2=A0=20 =C2=A0 (interactive) =C2=A0 (pcase k =C2=A0=C2=A0=C2=A0 (1 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq completion-styles '(basic subst= ring)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq k 2)) =C2=A0=C2=A0=C2=A0 (2 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq completion-styles '(partial-com= pletion)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq k 3)) =C2=A0=C2=A0=C2=A0 (3 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq completion-styles '(initials)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq k 4)) =C2=A0=C2=A0=C2=A0 (4 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq completion-styles '(orderless)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setq k 1)) ))