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: MINI-PATCH: add how to turn auto-completion in test buffers off Date: Wed, 10 Apr 2024 16:07:12 +0300 Message-ID: <86y19lv01r.fsf@gnu.org> References: <86y19t55hs.fsf@gnu.org> <86a5m856co.fsf@gnu.org> <868r1p1u21.fsf@gnu.org> <86zfu5z93q.fsf@gnu.org> <86a5m4ytzn.fsf@gnu.org> <9ABD0212-9EC4-4F3F-9E7C-46DF6ADBD451@gmail.com> <86le5nybxa.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7864"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 10 15:07:58 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 1ruXgE-0001pr-9k for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Apr 2024 15:07:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruXfY-0007Ch-3P; Wed, 10 Apr 2024 09:07:16 -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 1ruXfX-0007CT-3L for emacs-devel@gnu.org; Wed, 10 Apr 2024 09:07:15 -0400 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 1ruXfW-0004N4-Li; Wed, 10 Apr 2024 09:07:14 -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=SlMyK55COxVZTG3wZlPVlOOOo+pzN22cTVQHSCyWf+8=; b=ZRBY3mXOMDRK I6jD6UKWUyo3lRyYEHPcjQubX4FFIBiCeBocte97zUXkvJe7kwg5lXbpTN4Q57mD1Ba5B3HhBWSsI 0yQmYBPfSKsQgEwEEeKLRtjwkhnOQRO48JXXeRrRE65Vvmrh0Ns3oQUXniQs0I3aWBCt2P51fjj3d jXiw+ogQSksFAP0TDT6Cx7D6ymYDK4SA3sLRkVRIfm1HbMMJnkpC5ozfMd2e1cjuPk7YZiE2EDu94 2Gygd0EJGQEGXHN/I9xztGiv4H40ABuD+S8Ojfe250SKqpTAscpYi0qL06RBXyxfSyuH3BN6I2FLr D9/Rjfxac1UYGCGOqFSksg==; In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Wed, 10 Apr 2024 10:45:15 +0200) 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:317656 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Wed, 10 Apr 2024 10:45:15 +0200 > Cc: emacs-devel@gnu.org > > 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. Does what you suggest for the manual really work? Calling setopt in this case modified the keymap of text-mode, and that has a global effect. I really don't think buffer-local tricks like this one belong to the Emacs user manual. Users who have such a need will have to read the code and figure this out for themselves. The purpose of documenting this in the user manual is to make the feature discoverable; once discovered, tweaking it should be easy, and doesn't need to be described in the user manual.