From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrew Schwartzmeyer Newsgroups: gmane.emacs.devel Subject: Add user customization fido-completion-styles Date: Sun, 31 May 2020 14:02:28 -0700 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_27356746-09D2-4D7C-B681-2C51BEAD77BB" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="101691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 31 23:03:28 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 1jfV79-000QQG-G0 for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 23:03:27 +0200 Original-Received: from localhost ([::1]:33576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfV78-0005BA-Fy for ged-emacs-devel@m.gmane-mx.org; Sun, 31 May 2020 17:03:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfV6K-0004kW-Iu for emacs-devel@gnu.org; Sun, 31 May 2020 17:02:36 -0400 Original-Received: from mout01.posteo.de ([185.67.36.141]:54560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfV6J-0004jb-9i for emacs-devel@gnu.org; Sun, 31 May 2020 17:02:36 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B887C16005C for ; Sun, 31 May 2020 23:02:32 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49ZrNR3Jtnz9rxB; Sun, 31 May 2020 23:02:31 +0200 (CEST) X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=185.67.36.141; envelope-from=andrew@schwartzmeyer.com; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/31 17:02:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251698 Archived-At: --Apple-Mail=_27356746-09D2-4D7C-B681-2C51BEAD77BB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Users of fido-mode (like me) may want to customize the completion style = it uses, so add a variable to allow them to do so. For instance, I really like using the =E2=80=9Cinitials=E2=80=9D style = so =E2=80=9Cvlm=E2=80=9D quickly completes visual-line-mode, and then = falling back to flex. There are also neat packages like orderless = (https://github.com/oantolin/orderless = ) which add a new = completion-style, which folks may want to plug-in and use. Anyway, it = seems like it ought to be customizable. Thanks, Andy P.S. I wish =E2=80=9Cflex=E2=80=9D were a bit faster. On my circa 2012 = MacBook, M-x is noticeably slow with =E2=80=9Cflex=E2=80=9D for = commands. Also, I don=E2=80=99t know what =E2=80=9C:version=E2=80=9D to = put on the defcustom, and the docs could be improved a bit. --Apple-Mail=_27356746-09D2-4D7C-B681-2C51BEAD77BB Content-Type: multipart/mixed; boundary="Apple-Mail=_94C82864-1E82-4D95-8484-48262F502B76" --Apple-Mail=_94C82864-1E82-4D95-8484-48262F502B76 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hi,

Users of fido-mode (like me) may want to customize the = completion style it uses, so add a variable to allow them to do = so.

For = instance, I really like using the =E2=80=9Cinitials=E2=80=9D style so = =E2=80=9Cvlm=E2=80=9D quickly completes visual-line-mode, and then = falling back to flex. There are also neat packages like orderless (https://github.com/oantolin/orderless) which add a new = completion-style, which folks may want to plug-in and use. Anyway, it = seems like it ought to be customizable.

Thanks,

Andy

P.S. I wish =E2=80=9Cflex=E2=80=9D were = a bit faster. On my circa 2012 MacBook, M-x is noticeably slow with = =E2=80=9Cflex=E2=80=9D for commands. Also, I don=E2=80=99t know what = =E2=80=9C:version=E2=80=9D to put on the defcustom, and the docs could = be improved a bit.

= --Apple-Mail=_94C82864-1E82-4D95-8484-48262F502B76 Content-Disposition: attachment; filename=0001-Add-user-customization-fido-completion-styles.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Add-user-customization-fido-completion-styles.patch" Content-Transfer-Encoding: quoted-printable =46rom=2059177be2198aa9aa9d12d730f732456caf187f9e=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Andrew=20Schwartzmeyer=20= =0ADate:=20Sun,=2031=20May=202020=2013:55:13=20= -0700=0ASubject:=20[PATCH]=20Add=20user=20customization=20= fido-completion-styles=0A=0AUsers=20of=20fido-mode=20may=20want=20to=20= customize=20the=20completion=20style=20it=20uses,=0Aso=20add=20a=20= variable=20to=20allow=20them=20to=20do=20so.=0A---=0A=20= lisp/icomplete.el=20|=208=20+++++++-=0A=201=20file=20changed,=207=20= insertions(+),=201=20deletion(-)=0A=0Adiff=20--git=20a/lisp/icomplete.el=20= b/lisp/icomplete.el=0Aindex=20c12f3901f..40626663f=20100644=0A---=20= a/lisp/icomplete.el=0A+++=20b/lisp/icomplete.el=0A@@=20-134,6=20+134,12=20= @@=20icompletion=20is=20occurring."=0A=20=20=20:type=20'hook=0A=20=20=20= :group=20'icomplete)=0A=20=0A+(defcustom=20fido-completion-styles=20= '(flex)=0A+=20=20"Completion=20styles=20used=20by=20`fido-mode'.=0A+See=20= `completion-styles'"=0A+=20=20:type=20completion--styles-type=0A+=20=20= :group=20'icomplete)=0A+=0A=20=0A=20;;;_*=20Initialization=0A=20=0A@@=20= -328,7=20+334,7=20@@=20if=20that=20doesn't=20produce=20a=20completion=20= match."=0A=20=20=20=20=20(setq-local=20= icomplete-tidy-shadowed-file-names=20t=0A=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20icomplete-show-matches-on-no-input=20t=0A=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20icomplete-hide-common-prefix=20nil=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20completion-styles=20= '(flex)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= completion-styles=20fido-completion-styles=0A=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20completion-flex-nospace=20nil=0A=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20completion-category-defaults=20nil)))=0A=20= =0A--=20=0A2.26.0=0A=0A= --Apple-Mail=_94C82864-1E82-4D95-8484-48262F502B76 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
--Apple-Mail=_94C82864-1E82-4D95-8484-48262F502B76-- --Apple-Mail=_27356746-09D2-4D7C-B681-2C51BEAD77BB--