From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#67527: 30.0.50; FR: Add an option to disable ispell completion in text-mode Date: Sat, 13 Jan 2024 17:03:28 +0800 Message-ID: References: <83jzoipr5v.fsf@gnu.org> <83ttniiqy3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40599"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67527@debbugs.gnu.org, simon@ecksd.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 13 10:09:19 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 1rOa10-000AN8-GM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 10:09:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOa0o-0004b9-Uf; Sat, 13 Jan 2024 04:09:06 -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 1rOa0m-0004ar-EQ for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:09:04 -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 1rOa0m-0004am-45 for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOa0k-00023J-Hs for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 04:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jan 2024 09:09: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.17051369287870 (code B ref 67527); Sat, 13 Jan 2024 09:09:02 +0000 Original-Received: (at 67527) by debbugs.gnu.org; 13 Jan 2024 09:08:48 +0000 Original-Received: from localhost ([127.0.0.1]:38374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOa0W-00022q-Cz for submit@debbugs.gnu.org; Sat, 13 Jan 2024 04:08:48 -0500 Original-Received: from out203-205-221-202.mail.qq.com ([203.205.221.202]:48843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOa0R-00022V-Ss for 67527@debbugs.gnu.org; Sat, 13 Jan 2024 04:08:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1705136610; bh=2wpUIx6xHEFtFmEQ0iMjRAkOp9YoZBsNj1jP/X/uh6w=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=yzJjl7/Exx1IrTDFZrJAQ7RzO1pzkjzKMjCfi8fR8KC24rlmzo+zGDYrRBrPnDEg5 FZ77U0Mab5YVnjSzBq8/kA01ejuDnEGtjw52toFZ73nvbXLvBmNqVJ6tYTGNww4Ocf bQaTiCz6JZR73P7J1Zi6OgrVJjuYk6mAZNq+V6Lk= Original-Received: from macbook ([101.85.8.38]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id DD11A99; Sat, 13 Jan 2024 17:03:29 +0800 X-QQ-mid: xmsmtpt1705136609tizos4o1u X-QQ-XMAILINFO: MOpJcPT3Yy24q4DzM0zfDtoAY+WpXDhcMbBujWU/wr/KBF1GbxOuaPEntYMNE0 V+tQZpSW0BtXmMPj1M3uBj9cPq8YidSCaMqNiuHBm/SN4U5z/T8hc30pEgTQudESXDvsQWIf4gmH w6Gxs0K2DI8KvGH2RdQbset31bx6zIgx4u74ozaRPiUnYbq8SgEqVcJLxy2IuTvaFtktJRvx5/jE 7zbHOsg+cGox3PM9yBVcXV7x/vA3DxysZPbohFFMAoN7LLxYcpEWeTCExsemIihVwmal4hkHT19K Ln38laCMkciWGaBh9H8MSM0i8Lt4SglwcDjPwbjyAyO/WAeq9f2Rjb8+B6rA6AzHdmcP+K+j2nkN mlUHd26XMFkDka0GQFe3PFzhMZwufr5eUGgUHVcK80CGjXWeUYiFH92Gr+fcWiQQGu4y3szoM4HY 1U94/J12lN4Dxw8mP+ls8lPRXvD+OyNPMRN6k4EvyD5q2T6H61f5E52A7fTJW/DlVBTtIaJFeWLy hmKPkyNGyhHLMiMl9Ize3CFBLj4ghKJhVp29FPd0X2NyoQziNMowp4MvVsfkdWTJTvMLEgzV786E aQPAtntLW8dJtOj4g4DoWQP0qa55nKQGnDN85j6Cxqn16xWIXrOj5u2akgqv9MTj0sHdHduZxtcL XSMLGg+gMzTCrjP0DiaFo6Rl8RtnLP9P9dwaXThUjjElTIcG7SipqCIrBW4PCdzU2KXCNacNMjzl bjZmSQJJNvahfXH1iRaw+KhRBE2957i9Qx1PTnf/ppKL6lwP8OesBBnD9fiBvE5wJwyhS0KXpQEp n9Xzq1OpD3nHx4IoeJRcn2W5ZJ9FHy4cwLA7zO5+ X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= In-Reply-To: <83ttniiqy3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Jan 2024 16:09:24 +0200") Original-Message-ID: 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:278104 Eli Zaretskii writes: >> > I took a liberty to add back Eason to the discussion, in the hope that >> > he could explain why DEPTH of 10 didn't solve his situation. >> > >> Because I don't have any ohter capf backends in the org buffer(outside >> the SRC code block), ispell-completion-at-point is the only one. >> >> When the cursor is inside the SRC code block, no this issue. > > 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))) ``` -- Eason Huang