all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eason Huang <aqua0210@foxmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 67527@debbugs.gnu.org
Subject: bug#67527: 30.0.50; FR: Add an option to disable ispell completion in text-mode
Date: Thu, 30 Nov 2023 10:01:06 +0100	[thread overview]
Message-ID: <m1h6l3r4x9.fsf@dazzs-mbp.home> (raw)
In-Reply-To: <tencent_53870D22F0C2B581CD26B98A97819232A407@qq.com> (Eason Huang's message of "Thu, 30 Nov 2023 15:46:20 +0800")

Eason Huang <aqua0210@foxmail.com> writes:

> Eshel Yaron <me@eshelyaron.com> writes:
>
>> Eason Huang <aqua0210@foxmail.com> writes:
>>
>>> Eshel Yaron <me@eshelyaron.com> writes:
>>>
>>>> ...I'm not sure another user option is due here.  I think your
>>>> workaround is fine, if that works for you, of course.  But you could
>>>> just as well say `(setq-local corfu-auto nil)` in that hook, no?
>>>
>>> No. I need (setq-local corfu-auto t) on org-buffer
>>
>> Sure, and you can do that.  Again, whatever solution works best for
>> you.  I just highlighted that the behavior that you want to avoid
>> seems to be a consequence of a global setting that you don't in fact
>> want to apply it in all buffers.  Makes sense?
>
> Maybe I don't make myself clear!
>

I do understand, I believe.  I'm sorry if I gave you a different impression.

> 2. It's not a good idear to add `ispell-completion-at-point` to
> `completion-at-point-functions` by default.

Here I, respectfully, disagree.  I understand that this has an unwelcome
effect for your particular setup, but I think that that's because this
setup made a brittle assumption about an undocumented and incidental
property of `text-mode` (the property of not providing any capfs).

> 3. Anyway, I can use the below code to rollback to the behavior before
> the commit.
>
> ```
> (add-hook 'text-mode-hook
>           (lambda ()
>             (remove-hook 'completion-at-point-functions
>             'ispell-completion-at-point t)))
> ```

Indeed, it's easy enough to adapt if you happen not to like this capf.
Which is why I don't think a dedicated user option is in order.
Regarding this specific way of adapting, my suggestion was instead to go
with something that still allows you to use word completion in text
buffers, but that's just a friendly suggestion, and maybe you simply
don't need word completion at all.

> If you decide that no need to add an option to prevent adding
> `ispell-completion-at-point` to completion-at-point-functions by
> default, feel free to closed this bug report (It's not a bug, I just
> want to provide some advice from a user view).

I appreciate your advice and your valuable user perspective.  As I
mentioned earlier, I think that such a user option would be redundant.
I wonder how others feel about this, though.


Cheers,

Eshel





  reply	other threads:[~2023-11-30  9:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 10:31 bug#67527: 30.0.50; FR: Add an option to disable ispell completion in text-mode Eason Huang
2023-11-29 13:18 ` Eli Zaretskii
2023-11-29 13:45   ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-29 14:03     ` Eason Huang
2023-11-29 14:32       ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-30  7:46         ` Eason Huang
2023-11-30  9:01           ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-12-16  8:37             ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-16  9:34               ` Daniel Mendler
2023-12-16 12:23                 ` Dmitry Gutov
     [not found] <m2jzq0j1f4.fsf@foxmail.com>
2024-01-08 17:55 ` Simon Manning
2024-01-09 13:33   ` Eli Zaretskii
2024-01-12 12:46     ` Eason Huang
2024-01-12 14:09       ` Eli Zaretskii
2024-01-13  9:03         ` Eason Huang
2024-01-20  9:19           ` Eli Zaretskii
2024-01-20  9:46             ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-20 10:28               ` Eli Zaretskii
2024-01-20 10:33                 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-20 10:56                   ` Eli Zaretskii
2024-01-20 11:33                     ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-27  9:56                       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1h6l3r4x9.fsf@dazzs-mbp.home \
    --to=bug-gnu-emacs@gnu.org \
    --cc=67527@debbugs.gnu.org \
    --cc=aqua0210@foxmail.com \
    --cc=eliz@gnu.org \
    --cc=me@eshelyaron.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.