From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: emacs-28 8370caa835: ; * lisp/electric.el (electric-indent-mode): Clarify doc (bug#22564). Date: Sun, 15 May 2022 11:28:11 +0530 Message-ID: <87fslbl4lo.fsf@gmail.com> References: <165253976940.12698.9877205742602436208@vcs2.savannah.gnu.org> <20220514144929.A603BC01683@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28779"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 15 08:25:36 2022 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 1nq7hA-0007M4-CQ for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 08:25:36 +0200 Original-Received: from localhost ([::1]:33952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nq7h9-0003rd-3F for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 02:25:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7Gk-0002hD-KB for emacs-devel@gnu.org; Sun, 15 May 2022 01:58:18 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:33545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nq7Gi-0003uF-UC; Sun, 15 May 2022 01:58:18 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id d17so11638201plg.0; Sat, 14 May 2022 22:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=xF2+YpPPJRHRPbGiNokOlgI98N0/9aP0AKGQ9hk04So=; b=VRTw2NpVp63XYfK7N5bXtMYQelPhNcjIz/kISBnasnBd3U0jOmQSqcjzCifLA6QoCa eGRLwv8d+yZlBSVHmNBQzJ5eB6y7pemr+jMs5F5iFoFCrTp7gXCEvV+F3ayQyisW8DMf HxA/eGBBkvKe/VydCLHkS5y0iSQuYTnRFrrysfduwvpaJ+BUnoaV+NEAYNx5u4oI6oiA 5VcR/1TabBz4M0NndvYmCTqIp0u3Q2AfJgFpC15svYUhi7Okjd0dr5kGprN8x6k1RsJT 3jkLz9WXYLgiccEYSPcmz76now+vaElWOLrKhLnYicDUsv3gGYq5ebUct/fxfeXv/ije szkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=xF2+YpPPJRHRPbGiNokOlgI98N0/9aP0AKGQ9hk04So=; b=n5tr+ar9VNBHN9FXnjqYl6DJNUS1JToOp5CEtSqkWj0/bFzEpfJK5wDj6mPK7YKJ71 mcxB8k6BWoqN23kgc7Hjw9bw1jgR1sGO3FsrX55gQOSc2aUV96O29mqpwhrLKECugW9E JACgLFVGc3mB88syUxGDFj2fYlxbzbNucytm4u/bxkDXYTluklZKf6IcgdTLCuT4O7S5 gP0yxF/Rf/Ve4kpVDN0ss7xqxBb6OX80xq8l1hSVXTyjOY+wlSlC1jHGcLNsAMy6fJ17 AVTeXRJyVE/ZUgWVWMOEy2Ff/XlSDb+Q3vmgahB3wRcZXQEeGlKYDiW7pgw4R6BgVH1F 4z7A== X-Gm-Message-State: AOAM53393+YHGcCOw3usoMfQbB5M1L0I/LLI42TWpsdHrk+zEYefKUoy Uum7dj81ntKdjSrjDI6O5HKeYOvI2PQf7A== X-Google-Smtp-Source: ABdhPJzdAhD3ZJVGz+4hZSd6eCQNZbaG/mUK4U5e6gfE3LX6lB03oBmVZzvxTYH/yDGkp+N9b7/awg== X-Received: by 2002:a17:90a:e7cd:b0:1dc:74eb:7526 with SMTP id kb13-20020a17090ae7cd00b001dc74eb7526mr13147666pjb.144.1652594294590; Sat, 14 May 2022 22:58:14 -0700 (PDT) Original-Received: from localhost ([49.204.115.240]) by smtp.gmail.com with ESMTPSA id 10-20020a17090a174a00b001d5f22845bdsm9544757pjm.1.2022.05.14.22.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 22:58:14 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org, Eli Zaretskii In-Reply-To: <20220514144929.A603BC01683@vcs2.savannah.gnu.org> (Eli Zaretskii's message of "Sat, 14 May 2022 10:49:29 -0400 (EDT)") Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 15 May 2022 02:22:47 -0400 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" Xref: news.gmane.io gmane.emacs.devel:289791 Archived-At: [=E0=AE=9A=E0=AE=A9=E0=AE=BF =E0=AE=AE=E0=AF=87 14, 2022] Eli Zaretskii wro= te: > branch: emacs-28 > commit 8370caa835372ba7841e3822b0f929398c074e1a > Author: Eli Zaretskii > Commit: Eli Zaretskii > > ; * lisp/electric.el (electric-indent-mode): Clarify doc (bug#22564). > --- > lisp/electric.el | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/lisp/electric.el b/lisp/electric.el > index 042fc90ccb..4a35c1a2a1 100644 > --- a/lisp/electric.el > +++ b/lisp/electric.el > @@ -310,10 +310,16 @@ column specified by the function `current-left-marg= in'." >=20=20 > ;;;###autoload > (define-minor-mode electric-indent-mode > - "Toggle on-the-fly reindentation (Electric Indent mode). > + "Toggle on-the-fly reindentation of text lines (Electric Indent mode). >=20=20 > When enabled, this reindents whenever the hook `electric-indent-function= s' > -returns non-nil, or if you insert a character from `electric-indent-char= s'. > +returns non-nil, or if you insert one of the \"electric characters\". > +The electric characters normally include the newline, but can > +also include other characters as needed by the major mode; see > +`electric-indent-chars' for the actual list. > + > +By \"reindent\" we mean remove any existing indentation, and then > +indent the line accordiung to context and rules of the major mode. ^^^^^^^^^^ Typo here, should be according > This is a global minor mode. To toggle the mode in a single buffer, > use `electric-indent-local-mode'."