From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fb6b970615b8b49a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26539"; mail-complaints-to="usenet@ciao.gmane.io" To: 70321@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 10 09:09:13 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 1ruS52-0006lA-J0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Apr 2024 09:09:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruS4q-0004C6-V8; Wed, 10 Apr 2024 03:09:00 -0400 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 1ruS4o-0004Ax-7x for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 03:08:59 -0400 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 1ruS4n-0001Cv-Sr for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 03:08:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruS4v-0005wc-RI for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 03:09:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2024 07:09:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70321 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171273294222811 (code B ref -1); Wed, 10 Apr 2024 07:09:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2024 07:09:02 +0000 Original-Received: from localhost ([127.0.0.1]:51951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruS4p-0005v9-5C for submit@debbugs.gnu.org; Wed, 10 Apr 2024 03:09:02 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:56754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruS4k-0005tW-1w for submit@debbugs.gnu.org; Wed, 10 Apr 2024 03:08:57 -0400 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 1ruS4U-00044Q-MT for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 03:08:38 -0400 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruS4T-00016D-4r for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2024 03:08:38 -0400 Original-Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-56e4a148aeeso1270490a12.2 for ; Wed, 10 Apr 2024 00:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712732915; x=1713337715; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ifGCviTTFIJ1Kf6S3TVvTrjUUAIvCu1kBVUXisSO0fc=; b=d7KkX/LyCJ8aJeJG1NkLh2Pfbtl3tQiol1RxiKYwcAhy7/EYDoGxBf42v/unYKqOzB bZM2+Wx7bDpJ0ih8CyswAHuGl2HJ7+WsjCB9ygWINd9tJGphck0E0LIpBNtna3PYQ+3C vtjxvHprPBKWZsI8nlC9Nnxa3wyizOMRAz4qigLLEQamGwbgV0vkuQNoWhinhQxEOEyC VnPBVr8IaVrq5xo+twplCgE6SvMiYQZKqtLDRfy4oVG7KvpI8uSa8NCTmwOEXUft5EMs GRsK7z0+cdaci9l+ymH/auzNz+DZNB9ba9UGw0z2r3dj8bNeOvKN73nXSJSCeidBqlRJ Nd2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712732915; x=1713337715; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ifGCviTTFIJ1Kf6S3TVvTrjUUAIvCu1kBVUXisSO0fc=; b=xEMOb/5+3Gnz6envu4cHq58w5NZ1e3kkr+iNe3z+OOV8UtrTN63XuLpe/u7TEcKPUc EAgzO2EgS58FjbkRZvOCAZmlKmc+md38LBLwHrmz54Nu99NEzXlEd0uScMrDxbYKdFGw G0R5CaJxoVc2mf0nBfRaRirq11usW88mSYbdyGBW+KTY1LKeNhzylCBjYhoQ9UB22cdM Rvt0GK6aZV0kRKsFkqIthk6i9ywvFzZ/V1Rg30y2oLf+pZSReea+u51qbdYN8OVmnli1 MVq2ac28WuP3e73wG7p33pqF2b9RSP6mKyvQtuJ3by9o4dkhZc/HXYBA4y1JVRDWZZkZ qL2A== X-Gm-Message-State: AOJu0Yy3j0BI6bFMm1XBmUBWJn1tIfzEU+DUJrnGml2Vlt54Ssz5suUm dbOH7IA5ZZX7u9zmgxS0onGSQXhgCUyhjFsQ3CywuVdUloEgqzIHrBYrZm1qKfIhDwqhL7SMcnu SK3M+kVDj2ioWYk1qw07x/ieqm/nib5hV0Cw= X-Google-Smtp-Source: AGHT+IErRxB0ApkZgqpinmErrHqy2tYBRtk4Fiuk1Em+FT1vCOe5TZvaaDnIEW9NYKsLbiukR41NGK3qgr68zAet66k= X-Received: by 2002:a50:d556:0:b0:56e:2bf4:fe02 with SMTP id f22-20020a50d556000000b0056e2bf4fe02mr1741618edj.11.1712732914803; Wed, 10 Apr 2024 00:08:34 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=paaguti@gmail.com; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:283029 Archived-At: --000000000000fb6b970615b8b49a Content-Type: text/plain; charset="UTF-8" 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 --000000000000fb6b970615b8b49a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Place the following file as init.el in a directory (e.g. ~= /.demacs.d)

---cut here---
(setq inhibit-start= up-screen t)

(defun auto-complete-text-off ()
=C2=A0 (message &qu= ot;Trying to turn off ispell completion...")
=C2=A0 (setopt text-mo= de-ispell-word-completion nil))

(add-hook 'org-mode-hook #'a= uto-complete-text-off)
(add-hook 'org-mode-hook #'(lambda()
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(ispell-change-dictionary "en_GB")=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(flyspell-mode t)))
---cut here--= -

Open a text= file and C-h C-v=C2=A0completion-at-point-functions. You should see=C2=A0<= /div>
ispell-completion-at-point in the list of completion functio= ns

Open a .org file and C-h C-v=C2=A0completio= n-at-point-functions. You see=C2=A0
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.=C2=A0

=
/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

--000000000000fb6b970615b8b49a--