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: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: MINI-PATCH: add how to turn auto-completion in test buffers off
Date: Wed, 10 Apr 2024 10:45:15 +0200	[thread overview]
Message-ID: <CAO48Bk-3uDWUL=BcQBkgOJFjA-iAhQOKqKmrwEJwetSuok9xpg@mail.gmail.com> (raw)
In-Reply-To: <CAO48Bk9yOP1vK2vOOKtDnQeRkeVQ1kj-kw3RkLVNfe_k2DXo0A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3240 bytes --]

Hi again,

Maybe the attached patch to the doc can help other people and show why I
was confused. It's the first time I have to disable a feature globally to
then activate it for specific modes.

To a possible question about the motivation:

I use .txt for quick scribbles, logs etc. where completion-at-point stands
in the way of productivity, but I might give it a try in.. say.. org-mode.

On Tue, 9 Apr 2024 at 07:22, Pedro Andres Aranda Gutierrez <
paaguti@gmail.com> wrote:

> Hi Eli,
>
> On Mon, 8 Apr 2024 at 19:57, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
>> > Date: Mon, 8 Apr 2024 18:56:25 +0200
>> > Cc: emacs-devel <emacs-devel@gnu.org>
>> >
>> > > We don't have to agree: this is why you can customize Emacs to work as
>> > > you'd like.  The defaults, by contrast, are set to fit what most users
>> > > want.  So we will change the default only if enough people come up
>> > > complaining about the current default and preferably provide reasons
>> > > other than just annoyance.
>> >
>> > Let’s agree on not agreeing. I just would like you to understand that
>> it’s not “annoyance” I’m trying to express. I’m just trying to voice my
>> concern that this auto-completion may impact on some people's ability to
>> use Emacs. Concentration deficits are no joke.
>>
>> IME, these completions are more or less the de-facto standard nowadays
>> in many text-editing environments, so I don't think many people will
>> be distracted to such a great degree.  I'd rather think they should
>> expect it.  But time will tell who is right.
>>
>
> Maybe our backgrounds are different. I have dealt all my life with people
> with different degrees of ability, due to condition, age, etc.
> Very brilliant people, indeed, who do not shine as much as they could,
> because "not many people are distracted by <you name the feature>".
> Attention deficits are no joke.
>
>
>> > On an Emacsish plane, what puzzles me is that the only way I’m able to
>> disable this feature is in early-init.el because the auto-completion
>> function is added when initializing text-mode.
>>
>> You should be able to disable it at any point, provided that you use
>> Customize or setopt.  If this somehow doesn't work, please submit a
>> bug report with all the details.
>>
>
> I'm on it...
>
>
>>
>> > And I’m worried that a feature with such an impact was so little
>> documented.
>>
>> It is documented in the same section where Text Mode is described.
>> But if you have suggestions for improvements in the documentation of
>> this feature, please send them.
>>
>
> BR/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

[-- Attachment #1.2: Type: text/html, Size: 4878 bytes --]

[-- Attachment #2: selective-completion-at-point.diff --]
[-- Type: text/x-patch, Size: 1152 bytes --]

diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index f5e31fd277f..2bfc405936d 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -950,13 +950,19 @@ Text Mode
 spelling dictionary as the space of possible words by default.
 @xref{Spelling}.  If your window manager defines @kbd{M-@key{TAB}} to
 switch windows, you can type @kbd{@key{ESC} @key{TAB}} or @kbd{C-M-i}
-instead.  To disable this completion, customize the variable
+instead.  To disable this completion globally, customize the variable
 @code{text-mode-ispell-word-completion} to the @code{nil} value.
 
+To selectively enable this completion for some modes derived from
+@code{text-mode} only, disable it globally and then use @code{setopt}
+to set its value to @code{'completion-at-point} in the hook for the
+mode where you want to have completion.
+
 @vindex text-mode-hook
   Entering Text mode runs the mode hook @code{text-mode-hook}
 (@pxref{Major Modes}).
 
+
   The following sections describe several major modes that are
 @dfn{derived} from Text mode.  These derivatives share most of the
 features of Text mode described above.  In particular, derivatives of

  reply	other threads:[~2024-04-10  8:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-04 17:29 MINI-PATCH: add how to turn auto-completion in test buffers off Pedro Andres Aranda Gutierrez
2024-04-04 18:48 ` Eli Zaretskii
2024-04-05 10:25   ` Pedro Andres Aranda Gutierrez
2024-04-05 12:41     ` Eli Zaretskii
2024-04-05 15:02       ` Pedro Andres Aranda Gutierrez
2024-04-07  6:32         ` Pedro Andres Aranda Gutierrez
2024-04-07  8:00           ` Eli Zaretskii
2024-04-07 10:57             ` Pedro Andres Aranda Gutierrez
2024-04-07 11:48               ` Eli Zaretskii
2024-04-08  5:30                 ` Pedro Andres Aranda Gutierrez
2024-04-08 11:27                   ` Eli Zaretskii
2024-04-08 16:56                     ` Pedro Andres Aranda Gutierrez
2024-04-08 17:37                       ` tomas
2024-04-08 18:38                         ` Eli Zaretskii
2024-04-08 18:43                           ` Emanuel Berg
2024-04-09  4:31                             ` tomas
2024-04-09  5:06                               ` Emanuel Berg
2024-04-09  9:26                                 ` Eli Zaretskii
2024-04-09  9:32                                   ` tomas
2024-04-08 17:57                       ` Eli Zaretskii
2024-04-09  5:22                         ` Pedro Andres Aranda Gutierrez
2024-04-10  8:45                           ` Pedro Andres Aranda Gutierrez [this message]
2024-04-10 13:07                             ` Eli Zaretskii
2024-04-10 13:35                               ` tomas
2024-04-10 13:58                                 ` Eli Zaretskii
2024-04-10 14:10                                   ` tomas
2024-04-10 14:45                                     ` Pedro Andres Aranda Gutierrez
2024-04-10 15:26                                     ` Eli Zaretskii

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-3uDWUL=BcQBkgOJFjA-iAhQOKqKmrwEJwetSuok9xpg@mail.gmail.com' \
    --to=paaguti@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.