Received: (at 70321) by debbugs.gnu.org; 12 Apr 2024 07:37:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 12 03:37:16 2024 Received: from localhost ([127.0.0.1]:57791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rvBTH-0001xt-JS for submit <at> debbugs.gnu.org; Fri, 12 Apr 2024 03:37:16 -0400 Received: from mail.eshelyaron.com ([107.175.124.16]:56250 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1rvBTE-0001xh-4p for 70321 <at> debbugs.gnu.org; Fri, 12 Apr 2024 03:37:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1712907421; bh=sjtT5UwJD2LLhSLSn/KShcK9P8uAbiZbDbcGIlY8f0I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=lfr8bK2v5J73Fp/JgyntrRcYomqeA1tz5cNmwChuRU8aFHjaH1YJp4zvsjCZmdT3V y1MPL5X8F5LOoJ03OlbmLt0pB4Ex0MrRyO+ifARqkQeMcnQrGVwONQQMjTnIuJyVhj PiL6NDkzvovkc7A69u7xyp3uBgj07FLUs+3vY784lLr6NyWoqwZFrYusZ1oZgCnIb/ RYPw0sTMxv7UzSFoSu6f8YMxEUSc1QgkbaxUpJey2O55qluhRxjmIxKVBvggWQ3AYo oXAFylJ/vcZ5FF+4Fipf9cX2Gjgn1u58NJmSnrQMCTkuJ5jT/9AUrQMH3sCiKCT1SS 6PcC4ag4ZE68A== From: Eshel Yaron <me@HIDDEN> To: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> Subject: Re: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode In-Reply-To: <CAO48Bk_QVE_G6dGd2_RMSQrGSPjn2xf4RjjfKJV07LRpUqkA_Q@HIDDEN> (Pedro Andres Aranda Gutierrez's message of "Thu, 11 Apr 2024 09:59:14 +0200") References: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> <86wmp5uyh1.fsf@HIDDEN> <m1sezsjvja.fsf@HIDDEN> <CAO48Bk_QVE_G6dGd2_RMSQrGSPjn2xf4RjjfKJV07LRpUqkA_Q@HIDDEN> Date: Fri, 12 Apr 2024 09:36:59 +0200 Message-ID: <m15xwnjalg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70321 Cc: Eli Zaretskii <eliz@HIDDEN>, 70321 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> 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
bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.Received: (at 70321) by debbugs.gnu.org; 11 Apr 2024 07:59:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 11 03:59:58 2024 Received: from localhost ([127.0.0.1]:54870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rupLh-0007bi-Ig for submit <at> debbugs.gnu.org; Thu, 11 Apr 2024 03:59:58 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:44216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paaguti@HIDDEN>) id 1rupLf-0007bV-KX for 70321 <at> debbugs.gnu.org; Thu, 11 Apr 2024 03:59:56 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-56c404da0ebso11222750a12.0 for <70321 <at> debbugs.gnu.org>; Thu, 11 Apr 2024 00:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712822380; x=1713427180; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZUw9E6w7gto92QhZTFFO8MTLFHrpbioEsUGQrfwCc0E=; b=ARZIGEVQd839SSO+OGWhmzZpaBtfyhrskppuDU5r9c4mOdBPJkeZxMIQDLGf5g5sDb SjXe6Q8rcWz02pvXSmraevKO/HD2NeNSAx+JM+ufRSpcg5a8/PryqHI/YPiZeqcaZ5wl fxJRBQbfr4qrlF2ViwKXBTH7pATPK6F6PxK/9MzvYTJXWTraa2YUxrZsvKaTVlz9U7EA jybWbX5oiQc4LV/LZe8jYhz45LMCfX1s4Umd4os+hLwBOs0s8EM+Epu9L4zplknToeuW FOaMoVlPBrui8ToUhWM0+8lFgzNTy7LBy9qpu1HN3d09FuEtW1mZGMWmqZPtZssRLZ1C y+iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712822380; x=1713427180; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZUw9E6w7gto92QhZTFFO8MTLFHrpbioEsUGQrfwCc0E=; b=DkH7erhnm+yN1+I8q49+wXPaPv4xC2KH+7RlM2MeaQgmk9KtjfB9vM8duwnRxxphfw he0/d2xwCcS0QqajX3Cm1LHmjsRdNnTtwJeQcchtzRPsr7gbXJ2qbg6aKCxMlp3co069 A5+fC0CwlDc1QiRU96EZVH5MF1FUSiG2ta7LsNW9yI9byCLx4TKPpfpICGPko0zIfiHV 7p84G88XAm2OgECN2bHMrEx78DIlWD0rQ8MREDdXbCn6ztTQHCPCcaBz6QTzW7DEqUU0 D8VTvuxHmIb9wg/K9JRGlJoMBESd7RO1/FZEBb8t5mlDhJoEO9w77+tKs1/z63M3cl2y E27Q== X-Forwarded-Encrypted: i=1; AJvYcCWhw4e243YxVqODlNqwCLxn95VTEFLioKBgbZRHgPKhsKSD0Jcl6YLJwJsJlOnn0DxQ7dRSfuA4Gc28QORiGGENw8WdKis= X-Gm-Message-State: AOJu0Yyf6a6md7UqenEGxLKcOdiwnDJHJjj7moONAesx2Gtgvd2mfm/u VGInkLtQNg5ijDOZ2smunAEihccPx6XmlBCjEx9NRTdEvZ5Fp89ot/XL5Q35MK/alIhNGhg/ECX nNGlZkwuPWXnJF9qnH51bvv7uVCefxR6w X-Google-Smtp-Source: AGHT+IHbruQ9k7hNZjXEyhpypZTxt4CMPcIaJtCHW3FsM41n2rWcWXARCh6x/iQC4jbYT0JUDJtEsqTKoDY9RmJ+TlQ= X-Received: by 2002:a50:951b:0:b0:56d:c937:7558 with SMTP id u27-20020a50951b000000b0056dc9377558mr3224648eda.9.1712822380398; Thu, 11 Apr 2024 00:59:40 -0700 (PDT) MIME-Version: 1.0 References: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> <86wmp5uyh1.fsf@HIDDEN> <m1sezsjvja.fsf@HIDDEN> In-Reply-To: <m1sezsjvja.fsf@HIDDEN> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> Date: Thu, 11 Apr 2024 09:59:14 +0200 Message-ID: <CAO48Bk_QVE_G6dGd2_RMSQrGSPjn2xf4RjjfKJV07LRpUqkA_Q@HIDDEN> Subject: Re: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode To: Eshel Yaron <me@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000008c12640615cd898c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70321 Cc: Eli Zaretskii <eliz@HIDDEN>, 70321 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --0000000000008c12640615cd898c Content-Type: text/plain; charset="UTF-8" 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. Attention/concentration deficit is something we should really take seriously. Not only in this case, but overall. I have taught emacs to some people and, just as an example, company, which I use in all my programming modes in conjunction with eglot (a neat package, right?) was felt as disturbing by some people, because they felt over-stimulated by all the options it gave to them. Therefore I'm "making noise" now. Sorry I could not be part of the discussion back in January, but priorities in life didn't include Emacs back then. BR,/PA On Thu, 11 Apr 2024 at 07:52, Eshel Yaron <me@HIDDEN> wrote: > Hi Eli, Pedro, > > Eli Zaretskii <eliz@HIDDEN> writes: > > >> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> > >> Date: Wed, 10 Apr 2024 09:08:08 +0200 > >> > >> 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. > > > > You cannot set this option in a mode hook, that's not how it is > > supposed to be used. If you customize the option to nil, any buffer > > under Text mode or its derivative created afterwards will have the > > completion turned off, that's the intended use of the option. > > > > If you want to disable the completion selectively in a mode hook of > > some descendant of Text mode, you need to remove > > ispell-completion-at-point from the appropriate hook explicitly: > > > > (defun auto-complete-text-off () > > (message "Trying to turn off ispell completion...") > > (remove-hook 'completion-at-point-functions > #'ispell-completion-at-point t)) > > > > I see no bug here, just a misunderstanding. > > > > Eshel, am I missing something here? > > I don't think you're missing anything here. ispell-completion-at-point > is just a function that can either be in completion-at-point-functions > or not. The option text-mode-ispell-word-completion controls whether > text-mode adds ispell-completion-at-point to c-a-p-f initially, but > users can also always rely on add/remove-hook to manage it directly. > > > Best, > > Eshel > -- 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 --0000000000008c12640615cd898c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Eshel<div><br></div><div>thanks for confirming my under= standing. So now, my only "request" would be to add Elisp code</d= iv><div>to make it easier to manage the c-a-p-f.</div><div><br></div><div>M= y main concern is that they are people out there to whom the additional inf= ormation provided</div><div>by ispell-completion-at-point is a burden more = than a help.=C2=A0</div><div><br></div><div>Attention/concentration deficit= is something we should really take seriously. Not only in this case,</div>= <div>but overall. I have taught=C2=A0emacs to some people and, just as an e= xample, company, which I use</div><div>in all my programming modes in conju= nction with eglot (a neat package, right?) was felt as disturbing</div><div= >by some people, because they felt over-stimulated by all the options it ga= ve to them.=C2=A0</div><div><br></div><div>Therefore I'm "making= =C2=A0 noise" now. Sorry I could not be part of the discussion back in= January, but priorities</div><div>in life didn't include Emacs back th= en.</div><div><br></div><div>BR,/PA=C2=A0</div></div><br><div class=3D"gmai= l_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 11 Apr 2024 at 07:52= , Eshel Yaron <<a href=3D"mailto:me@HIDDEN">me@HIDDEN</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi = Eli, Pedro,<br> <br> Eli Zaretskii <<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@gn= u.org</a>> writes:<br> <br> >> From: Pedro Andres Aranda Gutierrez <<a href=3D"mailto:paaguti@= gmail.com" target=3D"_blank">paaguti@HIDDEN</a>><br> >> Date: Wed, 10 Apr 2024 09:08:08 +0200<br> >><br> >> Place the following file as init.el in a directory (e.g. ~/.demacs= .d)<br> >><br> >> ---cut here---<br> >> (setq inhibit-startup-screen t)<br> >><br> >> (defun auto-complete-text-off ()<br> >>=C2=A0 =C2=A0(message "Trying to turn off ispell completion...= ")<br> >>=C2=A0 =C2=A0(setopt text-mode-ispell-word-completion nil))<br> >><br> >> (add-hook 'org-mode-hook #'auto-complete-text-off)<br> >> (add-hook 'org-mode-hook #'(lambda()<br> >>=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_G= B")<br> >>=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)))<br> >> ---cut here---<br> >><br> >> Open a text file and C-h C-v completion-at-point-functions. You sh= ould see<br> >> ispell-completion-at-point in the list of completion functions<br> >><br> >> Open a .org file and C-h C-v completion-at-point-functions. You se= e<br> >> ispell-completion-at-point in the list of completion functions, wh= en the expected behaviour<br> >> is that ispell-completion-at-point is *not* in the list.<br> ><br> > You cannot set this option in a mode hook, that's not how it is<br= > > supposed to be used.=C2=A0 If you customize the option to nil, any buf= fer<br> > under Text mode or its derivative created afterwards will have the<br> > completion turned off, that's the intended use of the option.<br> ><br> > If you want to disable the completion selectively in a mode hook of<br= > > some descendant of Text mode, you need to remove<br> > ispell-completion-at-point from the appropriate hook explicitly:<br> ><br> >=C2=A0 =C2=A0(defun auto-complete-text-off ()<br> >=C2=A0 =C2=A0 =C2=A0(message "Trying to turn off ispell completion= ...")<br> >=C2=A0 =C2=A0 =C2=A0(remove-hook 'completion-at-point-functions #&#= 39;ispell-completion-at-point t))<br> ><br> > I see no bug here, just a misunderstanding.<br> ><br> > Eshel, am I missing something here?<br> <br> I don't think you're missing anything here.=C2=A0 ispell-completion= -at-point<br> is just a function that can either be in completion-at-point-functions<br> or not.=C2=A0 The option text-mode-ispell-word-completion controls whether<= br> text-mode adds ispell-completion-at-point to c-a-p-f initially, but<br> users can also always rely on add/remove-hook to manage it directly.<br> <br> <br> Best,<br> <br> Eshel<br> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea= ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>= Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di= v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet<br><br></div></div></div= ></div> --0000000000008c12640615cd898c--
bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.Received: (at 70321) by debbugs.gnu.org; 11 Apr 2024 05:52:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 11 01:52:41 2024 Received: from localhost ([127.0.0.1]:54748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1runMW-0000kM-Nl for submit <at> debbugs.gnu.org; Thu, 11 Apr 2024 01:52:41 -0400 Received: from mail.eshelyaron.com ([107.175.124.16]:51256 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1runMT-0000jc-56 for 70321 <at> debbugs.gnu.org; Thu, 11 Apr 2024 01:52:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1712814747; bh=tS67MQHw0BE/Mp0ddJ8rREEqpj+o9O23AzMcdqKApEc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=A09f7BwqYcrZdn582Q6KNy9bktjlvhgVdcLj74x9yeokm6Tgpi0vNKk7eImUM4HnD mJyLhiqt3vpnFUr9y6yFC3EDnsRC3EhF0oSiotTvDnd73wuvbQHx1XF96GhpZUwBiY 2bS2Xd28CC18ef6MyISLtkTg52fIGzkZ83hZw4slljaR8cYGpG2s12YdZ/BGDZT8Ji f/kuzw4ZBnkt/vpn3N2pfcPp1KaGmEbx+UwiCyzuZRtaj5aB6k6ouzILS6Z1mIIdr2 DR9T2+8rIMpZiil+O8fWSDt9zg5W7OAPZJLszoyPPnlezAeetowdrMQBUpa7ut1Gec fG4jTOyBMkHXA== From: Eshel Yaron <me@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode In-Reply-To: <86wmp5uyh1.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 10 Apr 2024 16:41:14 +0300") References: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> <86wmp5uyh1.fsf@HIDDEN> Date: Thu, 11 Apr 2024 07:52:25 +0200 Message-ID: <m1sezsjvja.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70321 Cc: 70321 <at> debbugs.gnu.org, Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Eli, Pedro, Eli Zaretskii <eliz@HIDDEN> writes: >> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> >> Date: Wed, 10 Apr 2024 09:08:08 +0200 >> >> 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. > > You cannot set this option in a mode hook, that's not how it is > supposed to be used. If you customize the option to nil, any buffer > under Text mode or its derivative created afterwards will have the > completion turned off, that's the intended use of the option. > > If you want to disable the completion selectively in a mode hook of > some descendant of Text mode, you need to remove > ispell-completion-at-point from the appropriate hook explicitly: > > (defun auto-complete-text-off () > (message "Trying to turn off ispell completion...") > (remove-hook 'completion-at-point-functions #'ispell-completion-at-point t)) > > I see no bug here, just a misunderstanding. > > Eshel, am I missing something here? I don't think you're missing anything here. ispell-completion-at-point is just a function that can either be in completion-at-point-functions or not. The option text-mode-ispell-word-completion controls whether text-mode adds ispell-completion-at-point to c-a-p-f initially, but users can also always rely on add/remove-hook to manage it directly. Best, Eshel
bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.Received: (at 70321) by debbugs.gnu.org; 10 Apr 2024 14:47:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 10 10:47:59 2024 Received: from localhost ([127.0.0.1]:54160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruZEx-0002sp-8v for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 10:47:59 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:53726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paaguti@HIDDEN>) id 1ruZEq-0002qd-R1 for 70321 <at> debbugs.gnu.org; Wed, 10 Apr 2024 10:47:52 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a51a80b190bso362349066b.3 for <70321 <at> debbugs.gnu.org>; Wed, 10 Apr 2024 07:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712760454; x=1713365254; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=efMWiYCShcEAx3puS6n+GOfJb7j2aZhOGJhGPSHuwjM=; b=QEcvn5srGqCNO5VQ27PmnJBiosUI3PnJM51/MvAzehciyt6Af9golh0hHZ3BsFia4a 6KA7m5BMOUkqy8c4HIMC73EIKC0lpiJGM6HcwlmJVVvbhFjURw3My67Et/6G7p7QMyej 9FNNMWtoM06URY2PgrA1YAKLqTWPwQ+hM8Ibyn0aApcEse+2J9tEHniQfBAcZ6DM+OHV gLCXZMCZMbbS+zOR8w3FEHXgZ5Y65VMT2NMcZhmIpTWUx4y+iqynq18C3wScH1fA0WsL pucV1+HBZCPjCL8recIM3SC6jLsx61swb4Z+ICKVfmKQ2Fr9Sdm38Ej0rBjkmHXk6h51 CCSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712760454; x=1713365254; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=efMWiYCShcEAx3puS6n+GOfJb7j2aZhOGJhGPSHuwjM=; b=OgGWJafGzFPw8pBNs8V+NendJNFCWndoQxzxaglG9/mecESRFSrpBHoh5WdbJUMCIF 7HkyW/qNJwb01z/Cjo50SRM4y7wx3e5ZH6TOKhBQ+q/tq5CqIHCwVrO4kodJ8sZu7ska v2pIjaFEVYJSA9rUxFWR0xPJNfgHzksCZ6MjYntYYNC4Euxz1jwWXf4x/ki6ub7vJzHe mPwfYH0qABgl7A9Gax6LwxTw95r+2aKAR1FTdv5Dpi1X91k0Oqif4ha51gvwoQHBaadp ibnBB8KvHiAtZqhH417deNk78t7re7ArHJFj9giNa1YoPkr7xBvnNi42qFZ06SKSq2lP H99g== X-Forwarded-Encrypted: i=1; AJvYcCX2eRwpJlk5vhnDawwsdyCv5FbYqtiEr3tchdhBneKPspxGF/ClVUwR/mSrNQnwEGQidgPoH1jwAFUBdmhSd6swJgzE/og= X-Gm-Message-State: AOJu0YxNZpMvJRzBa5l0w62wlGLhEzxJgnqAhcDaU46DAXduWCrxhvwa t5hRQ/XH/yK4sQlr83qLopVP5bZEzEJoiEElkNm30bY0PDTKfL/oTUY9FCJm7FfdbAcIvjItGDr HF3OfOWQYCMIeJHQAiJkSqasyjzk= X-Google-Smtp-Source: AGHT+IEe3TGthP+srImzC1dGsShZc0NvbZSnBZ0mwQLkIErjNddAJRUQv+4U3zqRgWS38cKf3iShLwbYKGFjJFzlmW8= X-Received: by 2002:a50:bb05:0:b0:56d:fca8:d2d6 with SMTP id y5-20020a50bb05000000b0056dfca8d2d6mr2342851ede.6.1712760454180; Wed, 10 Apr 2024 07:47:34 -0700 (PDT) MIME-Version: 1.0 References: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> <86wmp5uyh1.fsf@HIDDEN> In-Reply-To: <86wmp5uyh1.fsf@HIDDEN> From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> Date: Wed, 10 Apr 2024 16:47:08 +0200 Message-ID: <CAO48Bk9eK1ocOAex6ppDVnz8y-=fXVwO_A9vPsFg_G7p3AOxCQ@HIDDEN> Subject: Re: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000074feb30615bf1e86" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70321 Cc: 70321 <at> debbugs.gnu.org, Eshel Yaron <me@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --00000000000074feb30615bf1e86 Content-Type: text/plain; charset="UTF-8" Wonderful... those three lines are helpful. Could they make it to Emacs base or to the manual? On Wed, 10 Apr 2024 at 15:41, Eli Zaretskii <eliz@HIDDEN> wrote: > > From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> > > Date: Wed, 10 Apr 2024 09:08:08 +0200 > > > > 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. > > You cannot set this option in a mode hook, that's not how it is > supposed to be used. If you customize the option to nil, any buffer > under Text mode or its derivative created afterwards will have the > completion turned off, that's the intended use of the option. > > If you want to disable the completion selectively in a mode hook of > some descendant of Text mode, you need to remove > ispell-completion-at-point from the appropriate hook explicitly: > > (defun auto-complete-text-off () > (message "Trying to turn off ispell completion...") > (remove-hook 'completion-at-point-functions > #'ispell-completion-at-point t)) > > I see no bug here, just a misunderstanding. > > Eshel, am I missing something here? > -- 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 --00000000000074feb30615bf1e86 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Wonderful... those three lines are helpful. Could they mak= e it to Emacs base or to the manual?</div><br><div class=3D"gmail_quote"><d= iv dir=3D"ltr" class=3D"gmail_attr">On Wed, 10 Apr 2024 at 15:41, Eli Zaret= skii <<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>> wrote:<br></d= iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord= er-left:1px solid rgb(204,204,204);padding-left:1ex">> From: Pedro Andre= s Aranda Gutierrez <<a href=3D"mailto:paaguti@HIDDEN" target=3D"_blan= k">paaguti@HIDDEN</a>><br> > Date: Wed, 10 Apr 2024 09:08:08 +0200<br> > <br> > Place the following file as init.el in a directory (e.g. ~/.demacs.d)<= br> > <br> > ---cut here---<br> > (setq inhibit-startup-screen t)<br> > <br> > (defun auto-complete-text-off ()<br> >=C2=A0 =C2=A0(message "Trying to turn off ispell completion...&quo= t;)<br> >=C2=A0 =C2=A0(setopt text-mode-ispell-word-completion nil))<br> > <br> > (add-hook 'org-mode-hook #'auto-complete-text-off)<br> > (add-hook 'org-mode-hook #'(lambda()<br> >=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&qu= ot;)<br> >=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)))<br> > ---cut here---<br> > <br> > Open a text file and C-h C-v completion-at-point-functions. You should= see <br> > ispell-completion-at-point in the list of completion functions<br> > <br> > Open a .org file and C-h C-v completion-at-point-functions. You see <b= r> > ispell-completion-at-point in the list of completion functions, when t= he expected behaviour<br> > is that ispell-completion-at-point is *not* in the list. <br> <br> You cannot set this option in a mode hook, that's not how it is<br> supposed to be used.=C2=A0 If you customize the option to nil, any buffer<b= r> under Text mode or its derivative created afterwards will have the<br> completion turned off, that's the intended use of the option.<br> <br> If you want to disable the completion selectively in a mode hook of<br> some descendant of Text mode, you need to remove<br> ispell-completion-at-point from the appropriate hook explicitly:<br> <br> =C2=A0 (defun auto-complete-text-off ()<br> =C2=A0 =C2=A0 (message "Trying to turn off ispell completion...")= <br> =C2=A0 =C2=A0 (remove-hook 'completion-at-point-functions #'ispell-= completion-at-point t))<br> <br> I see no bug here, just a misunderstanding.<br> <br> Eshel, am I missing something here?<br> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um bea= ntwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></div>= Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div><di= v>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet<br><br></div></div></div= ></div> --00000000000074feb30615bf1e86--
bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.Received: (at 70321) by debbugs.gnu.org; 10 Apr 2024 13:41:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 10 09:41:38 2024 Received: from localhost ([127.0.0.1]:52369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruYCm-0001FZ-AU for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 09:41:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ruYCh-0001De-U1 for 70321 <at> debbugs.gnu.org; Wed, 10 Apr 2024 09:41:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1ruYCT-0002Is-Sl; Wed, 10 Apr 2024 09:41:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6w4HA6LzrRTnpKFL8rT05jcNYxYDzQ5ZhXOhhGWyW1s=; b=Z7yQy4lrZoPf cTfRt+BPsvkVycMbg0chvgXUhwSwJqOdsYDO/1C41bnjbYrehTPi6j3O5gkxHrcGfz26hN6wWQW93 1lBnuDMm8EbaI/B31ZpkYXAOGqmFFMaqevNWK3p7b7+4kljkj57zj570lae+jZO8wSMN6+U3ZGhnf 98v6t7gVW5Kv3arJTT6wRD2HwxHm7ybkqIy8Wk0PChMDc5fn3tTfC6puNy09vd3RJMff8iTpL7wgB 3NhjpGehDjHXSSvd1i6M0aQLMRVMCMShwIpVk4DFbaVLi0+RHGKzJWo6u7yhcbtcIKAPI7RbjTZb5 ABNvr4pS9KZ54uY9YAfrIA==; Date: Wed, 10 Apr 2024 16:41:14 +0300 Message-Id: <86wmp5uyh1.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>, Eshel Yaron <me@HIDDEN> In-Reply-To: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> (message from Pedro Andres Aranda Gutierrez on Wed, 10 Apr 2024 09:08:08 +0200) Subject: Re: bug#70321: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode References: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 70321 Cc: 70321 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> > Date: Wed, 10 Apr 2024 09:08:08 +0200 > > 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. You cannot set this option in a mode hook, that's not how it is supposed to be used. If you customize the option to nil, any buffer under Text mode or its derivative created afterwards will have the completion turned off, that's the intended use of the option. If you want to disable the completion selectively in a mode hook of some descendant of Text mode, you need to remove ispell-completion-at-point from the appropriate hook explicitly: (defun auto-complete-text-off () (message "Trying to turn off ispell completion...") (remove-hook 'completion-at-point-functions #'ispell-completion-at-point t)) I see no bug here, just a misunderstanding. Eshel, am I missing something here?
bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 10 Apr 2024 07:09:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 10 03:09:02 2024 Received: from localhost ([127.0.0.1]:51951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruS4p-0005v9-5C for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 03:09:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paaguti@HIDDEN>) id 1ruS4k-0005tW-1w for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 03:08:57 -0400 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 <paaguti@HIDDEN>) id 1ruS4U-00044Q-MT for bug-gnu-emacs@HIDDEN; Wed, 10 Apr 2024 03:08:38 -0400 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 <paaguti@HIDDEN>) id 1ruS4T-00016D-4r for bug-gnu-emacs@HIDDEN; Wed, 10 Apr 2024 03:08:38 -0400 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-56e4a148aeeso1270490a12.2 for <bug-gnu-emacs@HIDDEN>; 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) MIME-Version: 1.0 From: Pedro Andres Aranda Gutierrez <paaguti@HIDDEN> Date: Wed, 10 Apr 2024 09:08:08 +0200 Message-ID: <CAO48Bk-3y8_RYCJHqx1iOeVxt5JDMLMJ4we8-s2N4TKN+i-SJQ@HIDDEN> Subject: Can not turn completion-at-point on a per-mode basis on modes derived from text-mode To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary="000000000000fb6b970615b8b49a" Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=paaguti@HIDDEN; 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) --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 <div dir=3D"ltr">Place the following file as init.el in a directory (e.g. ~= /.demacs.d)<div><br></div><div><div>---cut here---</div>(setq inhibit-start= up-screen t)<br><br>(defun auto-complete-text-off ()<br>=C2=A0 (message &qu= ot;Trying to turn off ispell completion...")<br>=C2=A0 (setopt text-mo= de-ispell-word-completion nil))<br><br>(add-hook 'org-mode-hook #'a= uto-complete-text-off)<br>(add-hook 'org-mode-hook #'(lambda()<br>= =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")= <br>=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)))<br><div>---cut here--= -</div><br class=3D"gmail-Apple-interchange-newline"></div><div>Open a text= file and C-h C-v=C2=A0completion-at-point-functions. You should see=C2=A0<= /div><div><div>ispell-completion-at-point in the list of completion functio= ns<br></div><div><br></div><div>Open a .org file and C-h C-v=C2=A0completio= n-at-point-functions. You see=C2=A0</div><div>ispell-completion-at-point in= the list of completion functions, when the expected behaviour</div><div>is= that ispell-completion-at-point is *not* in the list.=C2=A0</div><div><br>= </div><div>/PA</div><span class=3D"gmail_signature_prefix">-- </span><br><d= iv dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"= ><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div>Fragen sind nicht da, um = beantwortet zu werden,<br></div>Fragen sind da um gestellt zu werden<br></d= iv>Georg Kreisler</div><div><br></div><div>Headaches with a Juju log:</div>= <div>unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should= run a leader-deposed hook here, but we can't yet<br><br></div></div></= div></div></div></div> --000000000000fb6b970615b8b49a--
Pedro Andres Aranda Gutierrez <paaguti@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#70321
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.