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: Sun, 7 Apr 2024 08:32:14 +0200 Message-ID: References: <86y19t55hs.fsf@gnu.org> <86a5m856co.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000106a6206157bdb17" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18412"; 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 Sun Apr 07 08:33:39 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 1rtM5y-0004X7-Jr for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Apr 2024 08:33:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtM5C-0004EI-Tt; Sun, 07 Apr 2024 02:32:50 -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 1rtM59-0004Dw-Ts for emacs-devel@gnu.org; Sun, 07 Apr 2024 02:32:47 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtM56-0002FI-BA; Sun, 07 Apr 2024 02:32:47 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-516d6e23253so1908257e87.1; Sat, 06 Apr 2024 23:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712471561; x=1713076361; 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=p11vUcH0zKYoFeBlgpxqYh//YP7yyhDarqwZ0mik0ew=; b=GsYZEBYmTChd7tsmKFzD2Aj7vAqv+WC1yQFmQx78x+pIj+GleYW75Qv0/bIIQKP8Zw +mmr63Az4MnTx9HNhecW16YXjjnA0laaFPIZettgcIAOPDAbUQIKQRKI07iE1ZJzB7iK inAL6IAOIabWFHsDDsGSGFI4FfEJ6qSsuz4IJGIydl67XB2bhieQlhDObPbiYQV1fjhR BvwmuslKyIGfOtf2qfxeW9A/NW/85bhFZUGdNnnS4Yu+yNJHI+H1h3+0+9Od7HFDVfss n2Wa2+Kc7ZQhjIbSRjxVRBKOTRUTRVBEiqu0lYHy0BnHyvF59Oo4ChV+4rh6LQYxQWB2 pl7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712471561; x=1713076361; 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=p11vUcH0zKYoFeBlgpxqYh//YP7yyhDarqwZ0mik0ew=; b=AAYrnxgCUjPm50kx2MN++9F6ua76n8WMF621u5HwsPBS1XeltqGpyetv5tT/tECKYU fKKI4sx1Oixjz8cBb2ElmK099xkM8Qx2YJ0Xji1WXisWXoZM5ZsrW5BQNMTj1lntGIq7 qUVA5IY3RgXuN76FgL0HvRBNhvH/z5mPZkiDcDT2/iik82Pj2/iHoXWF6+0YSovSKr/M N+GNEAv0WQPlULl6uIs2E/kKOa2Jci7Q+l0TyPFN8qBvbgDKpOT0CRHBmEEDCcoTQ4YH 8ZbR45lTzfpUSom6it+obUxBjAZMkT3B55KeopG209m4xQ1knEuqyk3WMrj4I/gn47rv n6dA== X-Gm-Message-State: AOJu0Yz7D+guogfbG8nEbor6PgDbG0Qt9+UHq6/5ah/lc3bh+oaLzwpz Qb2Ds5lRVsBsGlDR3RH9WHJiXIU+YyeIQb18Obvic9DDu5etnbhzf+3e8ZSma2jYp8LRWu4ISa2 xEqBmllxpYjwTuvCK1FqrUVoqbRItY87b X-Google-Smtp-Source: AGHT+IEps8NGPqbbgWo+DFtHBmUL3DhN48uCXLiNvyuX79oXTlS1BxtPwwFaSGIIl3Qmzo3px4EfAoW13ax4fno5s+U= X-Received: by 2002:a05:6512:3b2b:b0:517:bb:fbb4 with SMTP id f43-20020a0565123b2b00b0051700bbfbb4mr323450lfv.66.1712471560707; Sat, 06 Apr 2024 23:32:40 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=paaguti@gmail.com; helo=mail-lf1-x134.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:317583 Archived-At: --000000000000106a6206157bdb17 Content-Type: text/plain; charset="UTF-8" Hi again, Is there any conceptual difference between providing flyspell/ispell-mode and providing auto-complete suggestions in text mode? I personally don't think so and would like a more thorough discussion on this. That we want Emacs to have as many features as modern text processors provide is something that I strongly support. That we want all these features to be activated by default in text mode merits much more debate. And that we want some and some not is confusing... My .002 cents, /PA On Fri, 5 Apr 2024 at 17:02, Pedro Andres Aranda Gutierrez < paaguti@gmail.com> wrote: > Hi, > > answers inline. > > On Fri, 5 Apr 2024 at 14:42, Eli Zaretskii wrote: > >> > From: Pedro Andres Aranda Gutierrez >> > Date: Fri, 5 Apr 2024 12:25:18 +0200 >> > Cc: emacs-devel@gnu.org >> > >> > so you mean something like the attached patch? >> >> Almost, see below. >> >> > diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi >> > index cb347d59948..f039c42d46c 100644 >> > --- a/doc/emacs/text.texi >> > +++ b/doc/emacs/text.texi >> > @@ -954,6 +954,11 @@ Text Mode >> > Entering Text mode runs the mode hook @code{text-mode-hook} >> > (@pxref{Major Modes}). >> > >> > +@vindex text-mode-ispell-word-completion >> > + Entering Text mode also activates auto-complete hints. If you find >> > +that this is disturbing for you, set this variable to @code{nil} in >> > +your Emacs initialization code. >> >> This is using the wrong tone for describing the issue: it regards >> completion hints in Text Mode as a nuisance in most cases. If it were >> such a nuisance, we ought to make it off by default. >> > > I will always remember a friend of mine, who always asked me to disable > auto-completion and hints in his word processor, because they distracted > him too much from his work and line of thought. And, once again, some > concentration deficits need these features to be disabled, so I don't see > this as negative, but reaching out to these communities. > > >> Instead, the text should describe the completion hints feature from >> the POV of its being useful, and then say that the variable >> text-mode-ispell-word-completion controls it. >> > > OK, anyhow, I will try to find another wording. > > Also, @vindex generates no text in the formatted manual, so you need >> to mention the variable in the text as well, otherwise "this variable" >> will allude to something the text doesn't mention. >> >> Finally, please leave two spaces between sentences, per our >> conventions. >> >> > --- a/lisp/textmodes/text-mode.el >> > +++ b/lisp/textmodes/text-mode.el >> > @@ -145,7 +145,10 @@ text-mode >> > You can thus get the full benefit of adaptive filling >> > (see the variable `adaptive-fill-mode'). >> > \\{text-mode-map} >> > -Turning on Text mode runs the normal hook `text-mode-hook'." >> > +Turning on Text mode runs the normal hook `text-mode-hook'. >> > +By default, `text-mode-hook' will enable completion at point with >> > +candidates supplied by `ispell'. You can turn this off by >> > +setting `text-mode-ispell-word-completion' to `nil'." >> >> This part is okay (modulo the 2 spaces between sentences issue). >> >> Thanks. >> > > /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 > > -- 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 --000000000000106a6206157bdb17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi again,

Is there any conce= ptual difference between providing flyspell/ispell-mode and providing
=
auto-complete suggestions in text mode? I personally don't think s= o and would like a more
thorough discussion on this. That we want= Emacs to have as many features as modern text processors
provide= is something that I strongly support. That we want all these features to b= e activated by default in
text mode merits much more debate. And = that we want some and some not is confusing...

My = .002 cents, /PA

On Fri, 5 Apr 2024 at 17:02, Pedro Andres Aranda Gutierrez = <paaguti@gmail.com> wrote:
=
Hi,

answers inline.

On Fri, 5 Apr 2024 at 14:4= 2, Eli Zaretskii <eliz= @gnu.org> wrote:
> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Fri, 5 Apr 2024 12:25:18 +0200
> Cc: emacs-dev= el@gnu.org
>
> so you mean something like the attached patch?

Almost, see below.

> diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
> index cb347d59948..f039c42d46c 100644
> --- a/doc/emacs/text.texi
> +++ b/doc/emacs/text.texi
> @@ -954,6 +954,11 @@ Text Mode
>=C2=A0 =C2=A0 Entering Text mode runs the mode hook @code{text-mode-hoo= k}
>=C2=A0 (@pxref{Major Modes}).
>=C2=A0
> +@vindex text-mode-ispell-word-completion
> +=C2=A0 Entering Text mode also activates auto-complete hints. If you = find
> +that this is disturbing for you, set this variable to @code{nil} in > +your Emacs initialization code.

This is using the wrong tone for describing the issue: it regards
completion hints in Text Mode as a nuisance in most cases.=C2=A0 If it were=
such a nuisance, we ought to make it off by default.
<= br>
I will always remember a friend of mine, who always asked me = to disable=C2=A0
auto-completion and hints in his word proces= sor, because=C2=A0they distracted
him too much from his work and = line of thought. And, once again, some
concentration deficits nee= d these features to be disabled, so I don't see
this as negat= ive, but reaching out to these communities.
=C2=A0
Instead, the text should descr= ibe the completion hints feature from
the POV of its being useful, and then say that the variable
text-mode-ispell-word-completion controls it.

OK, anyhow, I will try to find another wording.

=
Also, @vindex generates n= o text in the formatted manual, so you need
to mention the variable in the text as well, otherwise "this variable&= quot;
will allude to something the text doesn't mention.

Finally, please leave two spaces between sentences, per our
conventions.

> --- a/lisp/textmodes/text-mode.el
> +++ b/lisp/textmodes/text-mode.el
> @@ -145,7 +145,10 @@ text-mode
>=C2=A0 You can thus get the full benefit of adaptive filling
>=C2=A0 =C2=A0(see the variable `adaptive-fill-mode').
>=C2=A0 \\{text-mode-map}
> -Turning on Text mode runs the normal hook `text-mode-hook'."=
> +Turning on Text mode runs the normal hook `text-mode-hook'.
> +By default, `text-mode-hook' will enable completion at point with=
> +candidates supplied by `ispell'. You can turn this off by
> +setting `text-mode-ispell-word-completion' to `nil'."
This part is okay (modulo the 2 spaces between sentences issue).

Thanks.

/PA
--
Fragen sind nicht da, um bean= twortet zu werden,
Fragen sind da um gestellt zu werden
G= eorg 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

=


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

--000000000000106a6206157bdb17--