all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: 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: Wed, 10 Apr 2024 09:08:08 +0200	[thread overview]
Message-ID: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

Place the following file as init.el in a directory (e.g. ~/.demacs.d)

---cut here---
(setq inhibit-startup-screen t)

(defun auto-complete-text-off ()
  (message "Trying to turn off ispell completion...")
  (setopt text-mode-ispell-word-completion nil))

(add-hook 'org-mode-hook #'auto-complete-text-off)
(add-hook 'org-mode-hook #'(lambda()
                             (ispell-change-dictionary "en_GB")
                             (flyspell-mode t)))
---cut here---

Open a text file and C-h C-v completion-at-point-functions. You should see
ispell-completion-at-point in the list of completion functions

Open a .org file and C-h C-v completion-at-point-functions. You see
ispell-completion-at-point in the list of completion functions, when the
expected behaviour
is that ispell-completion-at-point is *not* in the list.

/PA
-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1656 bytes --]

             reply	other threads:[~2024-04-10  7:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10  7:08 Pedro Andres Aranda Gutierrez [this message]
2024-04-10 13:41 ` bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode 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

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=CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@mail.gmail.com \
    --to=paaguti@gmail.com \
    --cc=70321@debbugs.gnu.org \
    /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.