From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emacs-lisp-mode' Date: Tue, 20 Mar 2018 00:23:50 +0000 Message-ID: <86in9rmw6h.fsf@gmail.com> References: <868taptb26.fsf@gmail.com> <87efkftyez.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521505390 11587 195.159.176.226 (20 Mar 2018 00:23:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2018 00:23:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (windows-nt) To: 25030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 20 01:23:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey53Q-0002uy-Ss for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Mar 2018 01:23:05 +0100 Original-Received: from localhost ([::1]:44651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey55T-0003cr-Qy for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 20:25:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey55N-0003cf-B5 for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:25:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey55K-0002SX-6k for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:25:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey55K-0002ST-3B for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ey55J-0003tR-Oy for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:25:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Mar 2018 00:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152150545914912 (code B ref -1); Tue, 20 Mar 2018 00:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2018 00:24:19 +0000 Original-Received: from localhost ([127.0.0.1]:42386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey54d-0003sS-2d for submit@debbugs.gnu.org; Mon, 19 Mar 2018 20:24:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey54b-0003s7-Oa for submit@debbugs.gnu.org; Mon, 19 Mar 2018 20:24:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey54T-0002AR-Iv for submit@debbugs.gnu.org; Mon, 19 Mar 2018 20:24:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ey54T-0002AN-G3 for submit@debbugs.gnu.org; Mon, 19 Mar 2018 20:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey54N-0003Wt-JF for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:24:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey54K-000259-FN for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:24:03 -0400 Original-Received: from [195.159.176.226] (port=45716 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey54K-000242-89 for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 20:24:00 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ey52D-0001pi-Rq for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 01:21:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:9E6RxZFxxMlnyzJZ7++8dPlLmwc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:144431 Archived-At: On Mon 19 Mar 2018, Noam Postavsky wrote: > unarchive 18163 > merge 25030 18163 > quit > > Andy Moreton writes: > >> This may not be a bug, but it is certainly a mis-feature. >> >> Warning should be reserved for syntax which may have unintended or >> surprising semantics. Indentation that does not follow a convention is >> not wrong either systacically or semantically. > > I'm not convinced by this. Code with unconventional indendation has > surprising syntax to a human reader (or from another perspective, when > I'm writing code which indents strangely, that clues me in that I've > written some unintended syntax), therefore, it seems a warning is > exactly appropriate. I disagree. The interpreter and byte compiler do not care about the indentation style that you choose for your code: the syntax and semantics are unaffected. Style choices should not produce warnings. An indication that code layout is following an unusual style may be useful, but it should be optional, and it should not use the warning face (it should have a separate face that can be customised independently of the warning face). AndyM