From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jai Flack Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU] New packages: avy-menu, flyspell-correct and friends Date: Wed, 18 May 2022 12:55:25 +0000 Message-ID: <877d6jxao2.fsf@posteo.net> References: <87y1z2i18m.fsf@posteo.net> <87zgjhwfjj.fsf@posteo.net> <87y1z0y1ob.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 18 15:10:05 2022 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 1nrJRE-0005JQ-Gn for ged-emacs-devel@m.gmane-mx.org; Wed, 18 May 2022 15:10:04 +0200 Original-Received: from localhost ([::1]:46008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrJRC-00055u-IL for ged-emacs-devel@m.gmane-mx.org; Wed, 18 May 2022 09:10:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrJDK-00018y-Ks for emacs-devel@gnu.org; Wed, 18 May 2022 08:55:43 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:52037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrJDI-0004cA-4t for emacs-devel@gnu.org; Wed, 18 May 2022 08:55:42 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 90695240109 for ; Wed, 18 May 2022 14:55:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652878534; bh=6OnB4IVDlfCZ8rGQWywM28JRD6ZW1ndpG41Ymzg7Cq4=; h=From:To:Cc:Subject:Date:Autocrypt:OpenPGP:From; b=LDsxBYThzt1NpCnooB9RNTNT+zj/ObNRmQGGb6MZFBA7PVx8qc6EnmrriDE3d4cRA sa3URjQCcRG9pghBBGuee1wr1T1wqYa0VEYpR5bj/ZuFzcWF9Qe50tAxd0gc7GB5hM 5zgqdnaUY8SyzvFy0bOTwfArfPe5n9JWTrxakS5JoSB5JNCb22u8BbYJNAtahXDwxZ WC5DpiCmxmLhRxFo7EwbVNm2x6uT/C7h1jPk60bnxwtCVlRCyxR2OuRRbQE0oPCJwx rBDCcEqyE2CsumU6tlbTLt6qEHKI05/k2uuMFFUwRGBioiNsSJt6k3eesYL6VTPoHD FOK4VVaR7hjGg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L3CdZ2Gzjz6tn9; Wed, 18 May 2022 14:55:29 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Tue, 17 May 2022 14:32:44 -0400") Autocrypt: addr=jflack@posteo.net; keydata=xsFNBGJIFUgBEACetRpyAEayP9fB/LvYi9sUIQwXH5EKN6uHrjc6RqlKju6jx2tu2F0HYjsiJ1xUfUUhuwdrEFpAGxM9XHFbNhrtIAh0ckOiALMexQP+n6uJgSq/u+3gqdKVmI2cgb2ruEcDR1t9QpuETTKPNj7k8sQoUjj907kACVL/XKfJC9csbAECYtfbbWtl6KJi5qQsF1N3kyHtF6k6Ly/tkq+CPY9RkEkraWNhJtrE509g/BbIIn3BzvrtboDwOX2JucrBojfaehvRzWnwrbTxTb+tsIjBSrFNJgOwa0PYtF7F15nCZ9254DJA7oyBqY/4B8iGGYbVBeQdU0/noVtui9JlLzU9tKOfKjm+js1Eu9vlAK2poZaR7uMy3cOQ+SPh7BdMSE/4HThDil6nq/LaPmX/bS1rFR01ztLxM/YEeDTWXT9/mqWM7l06Am0xCK8m99MjKnJiWtsUu4eQdw53GJL563RRw9rnOVEib8nbZcBWu5PfF8hnzyKgPe8fTjJBln1kZbbVv/ytxFXMlwwJPSD5xVPmaTo7gn1gBgoQ2w6CH4OVAdLLa9E0cVsq4w7NcZk2wfryYRylz4h/hdxkuatjq/f6SR860IfgPcS9IFszATRw/PGswx4FeffuV6UoPvMdWQy4KJQ239ou+5Hecce6Y4gYosC1yK34YMgjXEH04um5gwARAQABzRFqZmxhY2tAcG9zdGVvLm5ldMLBlAQTAQoAPhYhBDIm8Qj4YWAFs5cgmxqfJR2Uid2eBQJiSBVIAhsDBQkFo5q ABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEBqfJR2Uid2ecj8QAJEcWZf+HM OpenPGP: url=https://posteo.de/keys/jflack@posteo.net.asc Received-SPF: pass client-ip=185.67.36.66; envelope-from=jflack@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 18 May 2022 09:08:55 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:289920 Archived-At: Stefan Monnier writes: >> - flyspell-correct-avy-menu >> - flyspell-correct-helm >> - flyspell-correct-ido >> - flyspell-correct-ivy >> - flyspell-correct-popup >> >> These implement a simple `flyspell-correct-interface' for the given >> package postfix. > > I think this goes back to the same question: > > Could you perhaps briefly explain what these packages do? > Why the need for special helm, ido, ivy packages instead of using > completing-read? The package does offer a completing-read interface in flyspell-correct.el as a default. The -helm and -ivy packages use the completion interface's extra features to select the extra options ("Save", "Accept (session)", "Accept (buffer)", "Skip", et. al.). For example to save the word with the Ivy interface one can start the correction then press M-o s (the equivalent on Helm is C-o RET). The -ido interface additionally lets a user select replacements by entering the corresponding number, similar to the M-x ispell interface. I briefly described the -avy-menu interface in my last post. -popup uses a little popup at point to select actions (with the popup package already in NonGNU). > -- Stefan If you decide some of these extra interfaces are superfluous, I think there is still benefit from having the base flyspell-correct package in NonGNU. -- Thanks, Jai