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#67527: 30.0.50; FR: Add an option to disable ispell completion in text-mode Date: Sat, 20 Jan 2024 11:19:20 +0200 Message-ID: <83le8ktl9j.fsf@gnu.org> References: <83jzoipr5v.fsf@gnu.org> <83ttniiqy3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17642"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67527@debbugs.gnu.org, simon@ecksd.com To: Eason Huang , Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 20 10:20:13 2024 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 1rR7WO-0004S9-HU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jan 2024 10:20:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rR7WD-0007Ox-GT; Sat, 20 Jan 2024 04:20:01 -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 1rR7WB-0007Oi-Qm for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 04:19:59 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rR7WB-0000NO-IG for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 04:19:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rR7WE-0006rB-91 for bug-gnu-emacs@gnu.org; Sat, 20 Jan 2024 04:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jan 2024 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67527 X-GNU-PR-Package: emacs Original-Received: via spool by 67527-submit@debbugs.gnu.org id=B67527.170574239526333 (code B ref 67527); Sat, 20 Jan 2024 09:20:02 +0000 Original-Received: (at 67527) by debbugs.gnu.org; 20 Jan 2024 09:19:55 +0000 Original-Received: from localhost ([127.0.0.1]:60840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR7W6-0006qf-J6 for submit@debbugs.gnu.org; Sat, 20 Jan 2024 04:19:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR7W4-0006qM-CM for 67527@debbugs.gnu.org; Sat, 20 Jan 2024 04:19:53 -0500 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 1rR7Vt-0000JL-66; Sat, 20 Jan 2024 04:19:41 -0500 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=t4u5sEn4A4VH2cwLs70yjATkgsBla7HCo8WZxqJ0HUA=; b=hZVIYI29Hi3c 4BPHxaRmAM/RLMlwOSExAqcajZof3G/PUMEM4CGB7+aBvuW9zheZgscHOw1izP4DKbH0v4sy72vOF quxl5BfWgA7fc4EaAe3m4llz6Ev0FpdnpUSUtJdPcVrLCgqR3dCYtEhaCu1/KdsJESEoJGkGzePHN u5Cjtg304qYikU8sDFfUYzmgz8K/rBVJhnQeSyBqblcZWZYTPm7Mt1fwaKZq+gHeOAwnCbiV/GLLq RWCOD7QZdvPVZ6+JuBglG1x6vItF0IpNft3GuOpI4tFpSze+fX5Qg9yOweH1WEnPlp/9C8+QarEqa 5KQEsd9CV/dBZ8sCEAU+Xg==; In-Reply-To: (message from Eason Huang on Sat, 13 Jan 2024 17:03:28 +0800) 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:278577 Archived-At: > From: Eason Huang > Cc: 67527@debbugs.gnu.org, simon@ecksd.com > Date: Sat, 13 Jan 2024 17:03:28 +0800 > > Eli Zaretskii writes: > > > I guess I'm confused. In your original report, which started this > > discussion, you said: > > > > Because when I enable the autocomplete by corfu or company, it will > > always popup the candidate when I input English characters. > > I don't want to diable the autocomplete of corfu or company, because I > > need it in org code block. > > > > I was asking about that part in your report -- how did the new support > > for completion-at-point in text mode and its descendants change the > > behavior when you enable autocomplete by corfu or company, and why > > were you talking about disabling autocomplete of corfu and company? > > > > I have `cape-elisp-block` capf backend in org-buffer, and it only > works in code block, that's why I need the autocomplete. > > I also need the `flyspell-mode` in org-mode, the `flyspell-mode` will add > ispell-completion-at-point to capf, but when I input characters in > org-buffer, I don't need the ispell-completion-at-point backend. > > Anyway, the below workaround works for me: > > ``` > (add-hook 'text-mode-hook > (lambda () > (remove-hook 'completion-at-point-functions 'ispell-completion-at-point t))) > ``` Thanks. Eshel, given this feedback, I think it would make sense to add a new defcustom that would make text-mode avoid adding ispell-completion-at-point to completion-at-point-functions. Would you please submit such a change and the documentation changes to go with it? TIA.