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.devel Subject: Re: MINI-PATCH: add how to turn auto-completion in test buffers off Date: Fri, 5 Apr 2024 12:25:18 +0200 Message-ID: References: <86y19t55hs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000ec1a7c061556e0ef" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38151"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 05 12:27:53 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rsgnY-0009bq-IV for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Apr 2024 12:27:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsgm9-0007Dq-Vz; Fri, 05 Apr 2024 06:26:26 -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 1rsgla-0006DW-P7 for emacs-devel@gnu.org; Fri, 05 Apr 2024 06:25:51 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsglY-0004rL-Sc; Fri, 05 Apr 2024 06:25:50 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-56e1e6e1d01so2238593a12.1; Fri, 05 Apr 2024 03:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712312746; x=1712917546; darn=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=r9BCwCyWKuEXl6CV//0zelQ/+rpsdC7Vswc+/YzpyNY=; b=IvEuqr+G9IKtK0ahKbVyBf3Z/zX+smC1gm2BPgOKqJ8xF+tOqiaZWc6E4AFmDRNMKA J1Wa/zodGh5bL/m/Kd1Wms0qOf5trCmA4lJYo2U12rKSXiyX/lfkct5OdYn2X5mqAH4U EKLEZMGsWYv/mP+yB6G+k3qMOfC6M2wSmynZq9W4RI9xVAAIhMxrHud90AqbB+Pg3cQk FLfB7WBa6q2mIMdPX8xSqC8sfXKw9SR/eEuM4ZiCyUZB3qH20+tCAD5FqTiFkPsY3oFD Gf1xFQz8oSqaZVtP4Gx7mcbenBjtws/PumrUUu185oTHyB26P1KTgHhv5RItutd+VDeg fotw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712312746; x=1712917546; 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=r9BCwCyWKuEXl6CV//0zelQ/+rpsdC7Vswc+/YzpyNY=; b=PiFp6ZM6KR+PpelrOm/IiakT+XVd/VGhgLPnHizIQ/n/fT5vSJ3Ba+RnYThutJdaJj uK6SkDTLdRaP51T9EFEElnwGt0zD4o58NpZOJBaIwDHiaVjEmD27ni89uZm8iyJ2IoMt gZ7TbkT3pw6/laJ5amyBxWFXr9Gd4xSLZk72g9g9lsj5PZbEcGasJw+qSw5yBOTHis9c /OCBfgvpVjr60jXSph2drufgWiyEzqAwXJa4thApN3pyS7q05MLjNl4P31i1rKNH/AXv EXSYoe0vHurFe51/1rXBduR9mXAHOiXnHEekMnygYf8UvROuE5h810ueARQKDx4FwXff wivA== X-Gm-Message-State: AOJu0Yzd+nbv0SkuPja0oWyoIhmKoxKcgshgJ0NGxUyS9X+wK9fUafOl pxkRWpsHb1x32VVl/Q030XuUmSKMNesv0BhV4pqYOqWBcbY+aLoGkfG4fldRMqvFQjZoF5uh2z3 Q5HsOdaIduUZ2Y5J+vkBRZx8IEhCtg06j X-Google-Smtp-Source: AGHT+IEicvWMt0hCTSinqLHp+EUY1m1qR46b+ez5GUHCiFUKii15Ra0qcDHs0jCLNkVcARKwM8IRMeJfEr0q1m/7thw= X-Received: by 2002:a50:9319:0:b0:56e:2dfc:6189 with SMTP id m25-20020a509319000000b0056e2dfc6189mr698576eda.2.1712312745186; Fri, 05 Apr 2024 03:25:45 -0700 (PDT) In-Reply-To: <86y19t55hs.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=paaguti@gmail.com; helo=mail-ed1-x533.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317539 Archived-At: --000000000000ec1a7c061556e0ef Content-Type: multipart/alternative; boundary="000000000000ec1a79061556e0ed" --000000000000ec1a79061556e0ed Content-Type: text/plain; charset="UTF-8" Hi, so you mean something like the attached patch? Best, /PA On Thu, 4 Apr 2024 at 20:48, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Thu, 4 Apr 2024 19:29:30 +0200 > > > > I find auto-completion suggestions when writing text quite intrusive and > distracting. It has taken me some > > Emacs Lisp reading to find out how to turn it off. Attached is a > micro-patch to add a small hint to turn it off. A > > reminder: there are people who need to be not disturbed with external > stimuli when working (for example > > attention deficits, etc.) > > > > Thx, /PA > > > > ---cut here--- > > diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi > > index b034fecd77b..8a61117142d 100644 > > --- a/doc/lispref/modes.texi > > +++ b/doc/lispref/modes.texi > > @@ -1056,7 +1056,8 @@ Basic Major Modes > > @samp{"} and @samp{\} characters as having punctuation syntax > > (@pxref{Syntax Class Table}), and arranges for > > @code{completion-at-point} to complete words based on the spelling > > -dictionary (@pxref{Completion in Buffers}). > > +dictionary (@pxref{Completion in Buffers}), unless variable > > +@code{text-mode-ispell-word-completion} is set to @code{nil}. > > Thanks, but this is not the right place for documenting the option if > we want to make it more discoverable. User options are supposed to be > documented in the Emacs user manual, not in the Lisp Reference manual, > and users are unlikely to look in the latter when they look for > user-level information. > > So I think this should be added to the node "Text Mode" of the user > manual instead. Bonus points for mentioning this feature in the doc > string of text-mode as well. > -- 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 --000000000000ec1a79061556e0ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

so you mean something like the atta= ched patch?

Best, /PA

On Thu, 4 Apr 2024 at 2= 0:48, Eli Zaretskii <eliz@gnu.org>= ; wrote:
> Fr= om: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Thu, 4 Apr 2024 19:29:30 +0200
>
> I find auto-completion suggestions when writing text quite intrusive a= nd distracting. It has taken me some
> Emacs Lisp reading to find out how to turn it off. Attached is a micro= -patch to add a small hint to turn it off. A
> reminder: there are people who need to be not disturbed with external = stimuli when working (for example
> attention deficits, etc.)
>
> Thx, /PA
>
> ---cut here---
> diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
> index b034fecd77b..8a61117142d 100644
> --- a/doc/lispref/modes.texi
> +++ b/doc/lispref/modes.texi
> @@ -1056,7 +1056,8 @@ Basic Major Modes
>=C2=A0 @samp{"} and @samp{\} characters as having punctuation synt= ax
>=C2=A0 (@pxref{Syntax Class Table}), and arranges for
>=C2=A0 @code{completion-at-point} to complete words based on the spelli= ng
> -dictionary (@pxref{Completion in Buffers}).
> +dictionary (@pxref{Completion in Buffers}), unless variable
> +@code{text-mode-ispell-word-completion} is set to @code{nil}.

Thanks, but this is not the right place for documenting the option if
we want to make it more discoverable.=C2=A0 User options are supposed to be=
documented in the Emacs user manual, not in the Lisp Reference manual,
and users are unlikely to look in the latter when they look for
user-level information.

So I think this should be added to the node "Text Mode" of the us= er
manual instead.=C2=A0 Bonus points for mentioning this feature in the doc string of text-mode as well.


--
Fragen sind nicht da, um bea= ntwortet 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 ru= n a leader-deposed hook here, but we can't yet

--000000000000ec1a79061556e0ed-- --000000000000ec1a7c061556e0ef Content-Type: text/x-patch; charset="US-ASCII"; name="no-ispell-completion.diff" Content-Disposition: attachment; filename="no-ispell-completion.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lumirov10 ZGlmZiAtLWdpdCBhL2RvYy9lbWFjcy90ZXh0LnRleGkgYi9kb2MvZW1hY3MvdGV4dC50ZXhpCmlu ZGV4IGNiMzQ3ZDU5OTQ4Li5mMDM5YzQyZDQ2YyAxMDA2NDQKLS0tIGEvZG9jL2VtYWNzL3RleHQu dGV4aQorKysgYi9kb2MvZW1hY3MvdGV4dC50ZXhpCkBAIC05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