all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eason Huang <aqua0210@foxmail.com>
To: Eshel Yaron <me@eshelyaron.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 15:46:20 +0800	[thread overview]
Message-ID: <tencent_53870D22F0C2B581CD26B98A97819232A407@qq.com> (raw)
In-Reply-To: <m1ttp46363.fsf@sp-byods-145-109-16-172.wireless.uva.nl> (Eshel Yaron's message of "Wed, 29 Nov 2023 15:32:20 +0100")

Eshel Yaron <me@eshelyaron.com> writes:

> Eason Huang <aqua0210@foxmail.com> writes:
>
>> Eshel Yaron <me@eshelyaron.com> writes:
>>
>>> Eason Huang, IIUC, you've globally set up your completion selection UI
>>> to pop up automatically.  Before this commit, there were no completion
>>> sources for text modes OOTB, so your global setting was equivalent in
>>> practice to something that only affects non-text mode buffers, and that
>>> was fine.  Is that correct?
>> No. It's correct on the text file (.txt), but not in org-mode
>> files. Because org-mode also derived from text-mode.
>> ...
>>
>>> If so, my suggestion would be to change your global autocomplete setting
>>> such that it doesn't apply for text buffers, seeing as you don't seem to
>>> want such automatic behavior in these buffers, instead of disabling the
>>> completion source.
>>> 
>>> So 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!

1. I do confirm that I need to enable corfu-auto in org-mode, and it is
useful in code block such as the belwo code in org buffer:

#+begin_src emacs-lisp
;; input some code here will get auto completion
(message "Hello")
#+end_src

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

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)))
```

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).

Best Regards,
Eason Huang






  reply	other threads:[~2023-11-30  7:46 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 [this message]
2023-11-30  9:01           ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=tencent_53870D22F0C2B581CD26B98A97819232A407@qq.com \
    --to=aqua0210@foxmail.com \
    --cc=67527@debbugs.gnu.org \
    --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.