From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron Newsgroups: gmane.emacs.devel Subject: Word completion in text modes Date: Sat, 18 Nov 2023 13:03:36 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2410"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 18 13:04:33 2023 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 1r4K3s-0000La-Mg for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Nov 2023 13:04:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4K36-0001Hn-3p; Sat, 18 Nov 2023 07:03:44 -0500 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 1r4K33-0001Hc-Ol for emacs-devel@gnu.org; Sat, 18 Nov 2023 07:03:41 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16] helo=eshelyaron.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4K32-0000vW-0d for emacs-devel@gnu.org; Sat, 18 Nov 2023 07:03:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1700309018; bh=JgNe/ABKtd+i7/qwP6cPX/kG4fYd4/C1D9YpRbTv4Wc=; h=From:To:Subject:Date:From; b=DBhEIdztFusnrMUt13fZr6KDpznuJZoMLXG4V5Sz6kJtf3+kJMDopuehAn2tbtaOg 85jAHO9k2JwNZyCETS0ta3nMQl7Ia66DPwMa0f+TFAumW7Az2C65dOfAOuieAoPxTp SmnXsb6G7QNt5fh/wP5iom2FHex6eFo6Xru41VbvFxnL7hStEu/MxszcdsLrZKo1f4 Mc9nrkhGs19gSv5G3KO7vt2o7RlqyWjfSK+ETQinqWo/yaP3p3sqap5jjn7CGlqLZu 90jPHOKXgVB60gBhH3Pl7PDOAGN3a8gZx6r2NZUyyVMj1IV8UxnwdHTLx3/eptda/2 bipLQEB6c9XPA== Received-SPF: pass client-ip=107.175.124.16; envelope-from=me@eshelyaron.com; helo=eshelyaron.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312901 Archived-At: Hi Emacs, I wonder how people here feel about updating `text-mode` to have it (and its derivatives) use `completion-at-point` for word completion instead of `ispell-complete-word`. That'd be accompanied by a new `ispell-completion-at-point` function that `text-mode` adds to `completion-at-point-functions` so word completion still works OOTB, just using a different interface. I can see several advantages to making such a change: 1. Word completion would benefit from UI customizations and other enhancements that users have in place for `completion-at-point`. 2. `completion-preview-mode` and any other feature that leverages `completion-at-point-functions` would work for word completion as well. 3. Emacs would be slightly more consistent and simple all in all. The main downside of this idea is that people who prefer the interface that `ispell-complete-word` provides would need to rebind it to `C-M-i` or some other key themselves. Since this command has been around for a very long time, I can imagine that some users may have grown fond of it. So I have a WIP patch that adds `ispell-completion-at-point` (similar to the one proposed in Bug#52743, but slightly enhanced) and updates `text-mode` to use it. If that sounds sensible and people are not that attached to the `ispell-complete-word` interface for word completion, I'll add some documentation updates and submit that patch for review. Thanks, Eshel