From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62836: [PATCH] Provide an example of using fuzzier completion. Date: Sat, 15 Apr 2023 11:34:57 +0300 Message-ID: <83a5z9ee6m.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24734"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62836@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 15 10:36:23 2023 Return-path: Envelope-to: geb-bug-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 1pnbOR-0006IX-4P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Apr 2023 10:36:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnbOB-0004Wd-Ch; Sat, 15 Apr 2023 04:36:07 -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 1pnbOA-0004WV-6A for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 04:36:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnbO6-00007d-KB for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 04:36:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnbO6-0002lD-As for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 04:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2023 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62836-submit@debbugs.gnu.org id=B62836.168154770910536 (code B ref 62836); Sat, 15 Apr 2023 08:36:02 +0000 Original-Received: (at 62836) by debbugs.gnu.org; 15 Apr 2023 08:35:09 +0000 Original-Received: from localhost ([127.0.0.1]:48191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnbNF-0002js-7T for submit@debbugs.gnu.org; Sat, 15 Apr 2023 04:35:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnbNC-0002jD-G1 for 62836@debbugs.gnu.org; Sat, 15 Apr 2023 04:35:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnbN6-00081E-OO; Sat, 15 Apr 2023 04:35:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=B/6zecAnJUnFTCGOQZsLSJKBeULuOj15neB6pvl8V7Q=; b=IwUj8Vye12NL jANzz3lJ6Hlz/qxlwVQ8UI6mjdPbuvz1yFGXWrbl5mkWGEeg6x4hQ0fqL3mB8KB5rSvvANDS7mGnJ XxeQqs4OlsGUOZ7uTWfgWz55HVInutjiEfZt1ePN+wVa/qzdGkthunMcF9WMAvvjVsRh/BRFijsZS aiOFOJqKSk5UPUl7k4p09jT6P9c6i18L8TykdCY4ERkyi18uHc7HzIqsQXv/Tta3i0Pqedp03JT6D k+ET0yAT4e/OnGqeIfUCB/LEpfWUcbahowVj46dxjsh2BKNLxbJQ99i8n+bzTvYdKcsgxZRYpm9k9 xig+9mm7Zpnk55MfsFuX2A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnbN4-0003FR-6E; Sat, 15 Apr 2023 04:35:00 -0400 In-Reply-To: (message from Spencer Baugh on Fri, 14 Apr 2023 11:01:54 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260003 Archived-At: > From: Spencer Baugh > Date: Fri, 14 Apr 2023 11:01:54 -0400 > > >From b8d081b19cb46965c6fc170253702c53d53f2ee2 Mon Sep 17 00:00:00 2001 > From: Spencer Baugh > Date: Fri, 14 Apr 2023 10:58:17 -0400 > Subject: [PATCH] Provide an example of using fuzzier completion. > > In my experience, new users of vanilla Emacs often complain about the > lack of fuzzy completion by default. However, the "basic" completion > style provides a decent amount of fuzziness out of the box. We should > explain this a little more to users. (I myself have often had to > explain this.) Are the examples you suggest to add really considered as "fuzzy completion"? > + @key{TAB} also works while point is not at the end of the > +minibuffer. If you type @kbd{M-x a u t o c m o d e}, then @kbd{C-b} > +several times to move point back before the @samp{mode}, you can hit > +@key{TAB} to insert text between @samp{autoc} and @samp{mode} > +so that the minibuffer contains @code{autoconf-mode}. > + > + When point is not at the end of the minibuffer and you hit > +@kbd{TAB}, completion will fill in text both at point and at the end > +of the minibuffer. So you could also type @kbd{M-x a u t o c m o}, > +@kbd{C-b} twice to move point back before the @samp{mo}, and then > +@key{TAB} will insert the text @samp{onf-} at point and @samp{de} at > +the end of the minibuffer, so that the minibuffer contains > +@code{autoconf-mode}. I'd prefer to have only the second example, as it demonstrates the more general behavior, which includes the one described by the first example. Also, we use @kbd{M-x autocmo}, without the spaces between characters, in such cases. (It is actually enough to type "M-x autocm" followed by a single C-b, to show the behavior in this case.) Please be consistent about your markup: if you use @samp{onf-}, pleased also use @samp{autoconf-mode}. Finally, please use @kbd{@key{TAB}} in the context that calls for the user to press the TAB key. Thanks.