From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Devon Sean McCullough Newsgroups: gmane.emacs.bugs Subject: bug#36727: 27.0.50; indent bug Date: Thu, 10 Oct 2019 11:40:06 +0800 Message-ID: <8AC2B0A5-22FF-412D-8C57-6C4D46A70D6C@jovi.net> References: <87y2xtsc0t.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="196893"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36727@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 05:41:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIPKC-000p3K-Im for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 05:41:12 +0200 Original-Received: from localhost ([::1]:33672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIPKA-00068c-QH for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 23:41:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIPK4-00068J-Fb for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 23:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIPK3-0005EY-D0 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 23:41:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46094) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIPK3-0005EU-9k for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 23:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIPK1-0001Q1-MR for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2019 23:41:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Devon Sean McCullough Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2019 03:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36727 X-GNU-PR-Package: emacs Original-Received: via spool by 36727-submit@debbugs.gnu.org id=B36727.15706788145389 (code B ref 36727); Thu, 10 Oct 2019 03:41:01 +0000 Original-Received: (at 36727) by debbugs.gnu.org; 10 Oct 2019 03:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:54914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIPJG-0001Oq-5P for submit@debbugs.gnu.org; Wed, 09 Oct 2019 23:40:14 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.148.140]:38806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIPJD-0001Oi-H1 for 36727@debbugs.gnu.org; Wed, 09 Oct 2019 23:40:12 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway34.websitewelcome.com (Postfix) with ESMTP id D6E347F8AC96 for <36727@debbugs.gnu.org>; Wed, 9 Oct 2019 22:40:10 -0500 (CDT) Original-Received: from leaf.websitewelcome.com ([192.185.82.99]) by cmsmtp with SMTP id IPJCirDpI3Qi0IPJCiOJd3; Wed, 09 Oct 2019 22:40:10 -0500 X-Authority-Reason: nr=8 Original-Received: from 1-36-61-246.static.netvigator.com ([1.36.61.246]:61398 helo=[192.168.8.5]) by leaf.websitewelcome.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.92) (envelope-from ) id 1iIPJC-002osk-CM; Wed, 09 Oct 2019 22:40:10 -0500 In-Reply-To: <87y2xtsc0t.fsf@gnus.org> X-Mailer: Apple Mail (2.3124) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source-IP: 1.36.61.246 X-Source-L: No X-Exim-ID: 1iIPJC-002osk-CM X-Source-Sender: 1-36-61-246.static.netvigator.com ([192.168.8.5]) [1.36.61.246]:61398 X-Source-Auth: devon2011@jovi.net X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-Local-Domain: yes X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168834 Archived-At: > On Oct 10, 2019, at 8:02 AM, Lars Ingebrigtsen wrote: >=20 > Devon Sean McCullough writes: >=20 >> (assert (progn >> Indentation) nil >> "<-- should line up with progn.") >>=20 >> In emacs-lisp-mode, both indent-pp-sexp and indent-for-tab-command >> indent this incorrectly as above (string lines up with capital letter = I) >> instead of correctly as below (string lines up with progn=E2=80=99s = open paren) >>=20 >> (assert (progn >> Indentation) nil >> "<-- should line up with progn.") >=20 > emacs-lisp-mode also flags that `nil' with a warning face -- because > this isn't a style that's recommended. >=20 > So I don't know whether fixing up indentation in code that's already > badly formatted is something we want to do. Any opinions? Such indentation failures will conceal errors which proper indentation = would highlight. Any indenter capable of such mistakes is almost certainly buggy in many = other ways. Peace =E2=80=94Devon P.S. Is it worth time and attention to fix any time soon? It=E2=80=99s been decades since I got paid to maintain Emacs so I have no way to judge that. Machine learning may offer better ways to weigh code beauty.=