From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: ELPA: new package capf-autosuggest Date: Thu, 21 Oct 2021 20:14:18 +0200 Message-ID: <87a6j2b5z9.fsf@miha-pc> References: <87sfwvcrl2.fsf@miha-pc> <87h7dawl1x.fsf@posteo.net> <87fssubh9e.fsf@miha-pc> <875ytqwhpf.fsf@posteo.net> <87cznybc4u.fsf@miha-pc> <87ee8euwid.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 21 20:15:06 2021 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 1mdcan-0003go-04 for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Oct 2021 20:15:05 +0200 Original-Received: from localhost ([::1]:35508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdcal-0000zo-TO for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Oct 2021 14:15:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdcWV-0006Us-Ax for emacs-devel@gnu.org; Thu, 21 Oct 2021 14:10:39 -0400 Original-Received: from kamnitnik.top ([209.250.245.214]:43802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdcWK-0004yF-ML for emacs-devel@gnu.org; Thu, 21 Oct 2021 14:10:35 -0400 Original-Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id 172F99C707; Thu, 21 Oct 2021 18:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1634839826; bh=po/DOzWY3uNf3BZBHcbmvzQGkfncyM6cRRaITKRvOLw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cXth/c7BgHSXBCX55jFIcIqToVwzLIiWUFLsbwwUhglPbiPlL7fzfjk3fjZ1uxJxC 7vYaCvKEvs8dhrx7MlZ34Fao4tyiR0QyIyE+7DLTFdeN0QPuDgnvd19JINv4Cbk9Mw qh/vJ3dZ+Xyn0uXQK90ds6Wtr+h9qvEINR4aLRVIEsi83cezV7w9rZTVCeYuOm/uiu 7TklJdsAfliUF5n690Rrhql2mseTVPEwy2h1ryWIg8xdZ0uOdoqJ2an5u802LmGfQV sqSsX/esSOVP2F6nIfQ5VeC3tYZd7o2+pBNHOQRxQbEx06amaRg3kaK1hlYgiZT4IU 5HTfjsJyE77xw== In-Reply-To: <87ee8euwid.fsf@posteo.net> Received-SPF: pass client-ip=209.250.245.214; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 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, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=0.438, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no 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:277528 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > writes: > >> Thanks, now done. > > Great, it builds now. > > Looking at the file, there seem to be a few checkdoc issues that could > be easily fixed. I guess that would be nice to see. Along these lines it > might also be cool to mark the Commentary sections "Instillation" (that > could be updated when the package is added), "Configuration", ... as > subsections of Commentary by having them begin with four > semicolons. That way when using outline-minor-mode, you'll see all of > them when the section is folded. Thanks for suggestions, now done. > > A general question I have is if this could be generalized to a general > completion system? You of course don't have to, I'm asking more out of > personal curiosity. It already is, enabling 'capf-autosuggest-mode' in an ordinary buffer displays an auto-suggestion for the first completion at point candidate as you type. By default, it is only displayed if point is at EOL. However, I don't advertise this feature that much mostly because I find it a bit intrusive. For more information, including how to lift the EOL restriction, you can read the ";;;; Details" section. History auto-suggestion in comint and eshell is actually just a special case of this general mechanism for displaying the first completion at point candidate. In comint and eshell, point is on the last line most of the time which means that the auto-suggestions aren't obtrusive, in fact, they are quite helpful. That is why this package mostly advertises this sub-feature. > > Otherwise, I can add it the package to ELPA with autosync'ing, unless > there are any objections. Okay, thanks. > > --=20 > Philip Kaludercic --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmFxrfoTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP31YD/9Jtu5ZN/AVSaI8kEFfKODP/NZEXMMN KY6Gb4upjVsNS1mUjLXVFUA9Lxmu8eTfjt8Z9aq9JrK5aoDmLf4iCxCuqoz47a2X vjJ+w1tbJWOMnI9WB/NFPMFjuzsFcsbhw6Qtpb/n7kpBxll1PdYucsOtxyf7OESI 6S8ndQQh2AWxBvODL7SMkaVrkg6S9UI3pfSzcYggeA7UC0WG7sEzhCCwDJTGdi9A 7IQc65Hz3/QHDZFWlxaPSUtuevu8fPrOr7tBcNSr7EAiHoVUsi938wGdADe9yDFV FW+TUwaT1zRDyHDKgmxInkiuWOpBzO9cmqpy5YH9AZSb7jhlgqDAKF29s72HHVHe zvlsb19LS3gDEQ+iJvpdw6ZUukvrCx67qcpnc5wCZl0XnBjbRMHRjy8edX5ZVFzt xLp2arRq3zVNE9DIvHXc7GlkYw2ibc03hDglhYowBgWvqdeYfCJ/VBf1o5AVtq+b j919Koz6+AmXWtWGFkPyB8EgwxEVQMUgquwU4gC0qTAm+8QCzLtu2imZwAGrK4BC d8HhA4h+4OG3DvQeZ0nQQgSRlQNv13TNIg5ON4hQf0efc5t0hmr+TVVu1dE3vbeb BTGn0B9Sm00jJiT2CMP5zbMgKPwzbpRaqt6vgYlMxruT5JYMZ3w1/pQcld8aGdRb bbOG79Gosl3i0Q== =2WLE -----END PGP SIGNATURE----- --=-=-=--