From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#25030: 25.1; Unexpected indentation and syntax-highlighting in `emacs-lisp-mode' Date: Mon, 19 Mar 2018 18:35:43 -0700 (PDT) Message-ID: References: <868taptb26.fsf@gmail.com> <87efkftyez.fsf@gmail.com> <86in9rmw6h.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521509651 4562 195.159.176.226 (20 Mar 2018 01:34:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Mar 2018 01:34:11 +0000 (UTC) To: Andy Moreton , 25030@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 20 02:34:07 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 1ey6AB-00015S-29 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Mar 2018 02:34:07 +0100 Original-Received: from localhost ([::1]:44868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey6CC-00009C-Gd for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Mar 2018 21:36:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey6C6-000090-CW for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 21:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey6C2-0002Rn-CT for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 21:36:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey6C2-0002RZ-7h for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 21:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ey6C1-0005eF-Rn for bug-gnu-emacs@gnu.org; Mon, 19 Mar 2018 21:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Mar 2018 01:36: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 Original-Received: via spool by 25030-submit@debbugs.gnu.org id=B25030.152150975421694 (code B ref 25030); Tue, 20 Mar 2018 01:36:01 +0000 Original-Received: (at 25030) by debbugs.gnu.org; 20 Mar 2018 01:35:54 +0000 Original-Received: from localhost ([127.0.0.1]:42433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey6Bu-0005dq-6j for submit@debbugs.gnu.org; Mon, 19 Mar 2018 21:35:54 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:48712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ey6Bs-0005db-LF for 25030@debbugs.gnu.org; Mon, 19 Mar 2018 21:35:53 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2K1ZKsp080244; Tue, 20 Mar 2018 01:35:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=8ubW/7Bfj9seaLUdkgoredISjTc/m58W2C0Kn1FSgAw=; b=jzuiUocEl/oX/rRqxg1Pp0f6Dh8YmvyCR41EGU0O0QlEFBQQAoWeTeiiFteyTOjPBJgd 9rhuBogcBtjeXt0cAokMj3XGwzEAQtbMp9EMOc+Mo1laNclIr3QZBubAgKu/hscZDjJd XH0MHINj2ANa1jPa2JoKX/T4evhO+sxFJgoTf29gfvl1hQfh3C5e81ad3Yh/JNG7Iiv8 h9Ebg8D2oTULUxhkVpqOJwMCllZk09VfsVEMRgKMspxxMdWBkmyaRrDkS3GIrHC/NBbS PWnF/zS1P5W6ojjFSmwxIyDm3R7Ile0DWLlF1koaGMblefuuCPUe+04XDXGaIM2i3cxe Zg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gtrs5006b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 01:35:46 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2K1Zjep009114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 20 Mar 2018 01:35:45 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2K1Zjw1021106; Tue, 20 Mar 2018 01:35:45 GMT In-Reply-To: <86in9rmw6h.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8837 signatures=668693 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=814 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200006 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:144434 Archived-At: > >> 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. >=20 > 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. >=20 > Style choices should not produce warnings. An indication that code layout > is following an unusual style may be useful, but it should be optional, a= nd > it should not use the warning face (it should have a separate face that c= an > be customised independently of the warning face). What Andy said. This has nothing to do with byte-compiling (or interpreting, for that matter). There is nothing wrong with having optional (especially opt-in) indications of flouting conventional style. And even then we should not use, or inherit from, the warning face. It should be easy for users to give the face(s) used for stylistic highlighting different appearance(s) from standard Emacs faces that have other meanings. Error and warning faces are to be avoided for anything that is not an error or warning. And any faces used by the byte-compiler should be about something relevant to byte-compiling.