From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Word completion in text modes Date: Sat, 25 Nov 2023 14:33:56 +0200 Message-ID: <837cm6c8qz.fsf@gnu.org> References: <83h6ljme0j.fsf@gnu.org> <83edgnmaqw.fsf@gnu.org> <837cmfm30o.fsf@gnu.org> <834jhina3v.fsf@gnu.org> <83leamcdzv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eshel Yaron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 25 13:34:44 2023 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 1r6rrw-0006jA-7n for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Nov 2023 13:34:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6rrI-0005p0-Ps; Sat, 25 Nov 2023 07:34:04 -0500 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 1r6rrG-0005jg-VV for emacs-devel@gnu.org; Sat, 25 Nov 2023 07:34:03 -0500 Original-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 ) id 1r6rrG-0007Gk-I7; Sat, 25 Nov 2023 07:34:02 -0500 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=S29boKqHnJ13l1uzEvV4lWz6xpuVWdBt0Q28I/8wcKs=; b=oTt/8sTGpOnh /uztAEQcPtV7fzuvgJyfUjPYL62LPB5IpLmTpqDUQSXWjDp04khU5SocJCCuVv5oy0D6zhRl4icQn 08J/H/9dr7+Cof1cP2x4RkJHlumbfEihurG8D8mgi2RGXEP8WLP5c91d7kmQpSTQyA2fNkL25G0Hc p9OaGhA9Bs35f3gxmpEPlS3z9ZNuDDz/Gmu/zTRvK8PBciJYvaGQeIYIIkOQv6UqFwemWu4u9HSrU 3UTLof92HjGnhYYNCrW46I9CoMYrSI6AU9U0FCdVATmdmoafvqeyxLcnKRpA4uZXjun7hOqnApRxA Fk5PIRDTwTn4xLDkOXk+bQ==; In-Reply-To: (message from Eshel Yaron on Sat, 25 Nov 2023 13:11:27 +0100) 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:313209 Archived-At: > From: Eshel Yaron > Cc: emacs-devel@gnu.org > Date: Sat, 25 Nov 2023 13:11:27 +0100 > > >> diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi > >> index 8670807cbdf..ffd7ad7f51d 100644 > >> --- a/doc/lispref/modes.texi > >> +++ b/doc/lispref/modes.texi > >> @@ -981,9 +981,7 @@ Basic Major Modes > >> @deffn Command text-mode > >> Text mode is a major mode for editing human languages. It defines the > >> @samp{"} and @samp{\} characters as having punctuation syntax > >> -(@pxref{Syntax Class Table}), and binds @kbd{M-@key{TAB}} to > >> -@code{ispell-complete-word} (@pxref{Spelling,,, emacs, The GNU Emacs > >> -Manual}). > >> +(@pxref{Syntax Class Table}). > > > > Why remove the reference to the command binding here? > > Text mode no longer binds `C-M-i` to anything, relying on the global > binding instead. So there doesn't seem to be any reason to mention this > binding here anymore, just like it's not mentioned in the description of > `prog-mode` that follows this paragraph. Does that make sense? But the global bin ding has a text-mode-special effect in Text mode, does it not? Then we should change the text to mention that special effect, instead of removing it completely. That's assuming the completion feature is still important enough to mention it in the manual. > > Did you check what happens when Flyspell mode is turned on in a buffer > > under Text mode or one of its descendants? > > Yes. Unless one sets `flyspell-use-meta-tab` to nil, Flyspell mode binds > `C-M-i` to a completely different command, `flyspell-auto-correct-word`. And if flyspell-use-meta-tab is nil, what happens then under Flyspell mode?