unofficial mirror of bug-gnu-emacs@gnu.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: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 70321@debbugs.gnu.org
Subject: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode
Date: Fri, 12 Apr 2024 09:36:59 +0200	[thread overview]
Message-ID: <m15xwnjalg.fsf@dazzs-mbp.kpn> (raw)
In-Reply-To: <CAO48Bk_QVE_G6dGd2_RMSQrGSPjn2xf4RjjfKJV07LRpUqkA_Q@mail.gmail.com> (Pedro Andres Aranda Gutierrez's message of "Thu, 11 Apr 2024 09:59:14 +0200")

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

> Hi Eshel
>
> thanks for confirming my understanding. So now, my only "request" would be to add Elisp code
> to make it easier to manage the c-a-p-f.
>
> My main concern is that they are people out there to whom the additional information provided
> by ispell-completion-at-point is a burden more than a help.

By default Emacs doesn't show this information unless and until you ask
for it, by invoking 'completion-at-point'.  Moreover we use a low
priority for 'ispell-completion-at-point' so it only kicks in if no
other 'completion-at-point' function (backend) is available.  So in
principle I wouldn't think this should burden anyone.

If you've configured Emacs to automatically show 'completion-at-point'
results via one package or another, and you want to exclude the results
of 'ispell-completion-at-point' from that auto-completion, either
configure your auto-completion set up to skip this function or use
'text-mode-ispell-word-completion' to avoid adding this function to
'completion-at-point-functions' in the first place.  If you then want to
add 'ispell-completion-at-point' to c-a-p-f in some other mode, perhaps
a text-mode derivative, use 'add-hook' as usual.  Does that make sense?


Best,

Eshel





      reply	other threads:[~2024-04-12  7:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10  7:08 bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode Pedro Andres Aranda Gutierrez
2024-04-10 13:41 ` Eli Zaretskii
2024-04-10 14:47   ` Pedro Andres Aranda Gutierrez
2024-04-11  5:52   ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-11  7:59     ` Pedro Andres Aranda Gutierrez
2024-04-12  7:36       ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m15xwnjalg.fsf@dazzs-mbp.kpn \
    --to=bug-gnu-emacs@gnu.org \
    --cc=70321@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=me@eshelyaron.com \
    --cc=paaguti@gmail.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).