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.bugs Subject: bug#20846: 24.4; Electric-indent-mode does not call indent-line-function after hitting RET inside a comment Date: Fri, 28 May 2021 16:06:09 +0300 Message-ID: <8335u780u6.fsf@gnu.org> References: <871r9t6pgd.fsf@gnus.org> <838s40acf9.fsf@gnu.org> <87sg273fqo.fsf@gnus.org> <83fsy78l2p.fsf@gnu.org> <49c82e08-f15e-e564-1740-86271fc94f3b@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12143"; mail-complaints-to="usenet@ciao.gmane.io" Cc: robin.neatherway@gmail.com, larsi@gnus.org, monnier@iro.umontreal.ca, 20846@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 15:07:34 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lmcD8-0002zJ-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 15:07:34 +0200 Original-Received: from localhost ([::1]:47440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmcD7-0003Uv-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 09:07:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmcCe-0002kP-1s for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 09:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmcCc-00034M-JS for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 09:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmcCc-0001iL-Bd for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2021 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20846 X-GNU-PR-Package: emacs Original-Received: via spool by 20846-submit@debbugs.gnu.org id=B20846.16222071776528 (code B ref 20846); Fri, 28 May 2021 13:07:02 +0000 Original-Received: (at 20846) by debbugs.gnu.org; 28 May 2021 13:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:53882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmcBq-0001hB-0k for submit@debbugs.gnu.org; Fri, 28 May 2021 09:06:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmcBk-0001gt-E7 for 20846@debbugs.gnu.org; Fri, 28 May 2021 09:06:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53894) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmcBe-0002RY-U2; Fri, 28 May 2021 09:06:02 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4467 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmcBe-00022I-GB; Fri, 28 May 2021 09:06:02 -0400 In-Reply-To: <49c82e08-f15e-e564-1740-86271fc94f3b@yandex.ru> (message from Dmitry Gutov on Fri, 28 May 2021 15:56:51 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207457 Archived-At: > Cc: robin.neatherway@gmail.com, monnier@iro.umontreal.ca, > 20846@debbugs.gnu.org > From: Dmitry Gutov > Date: Fri, 28 May 2021 15:56:51 +0300 > > On 28.05.2021 08:49, Eli Zaretskii wrote: > > If it is called somewhere where auto-indentation cannot be done > > (e.g. inside a string), the function should simply return ‘noindent’. > > I believe it's the choice of the indentation function - whether it works > inside string, comments, etc. Some do, some don't. Then that sentence is misleading and should be rephrased, because my reading of it is that it clearly states that auto-indentation inside strings is generally impossible, and expects the implementations to behave like that.