From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren Date: Thu, 12 Dec 2013 18:30:39 +0200 Message-ID: <52A9E4AF.40006@yandex.ru> References: <87sity96he.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1386865880 2743 80.91.229.3 (12 Dec 2013 16:31:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2013 16:31:20 +0000 (UTC) Cc: 16116@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 12 17:31:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vr9AZ-0006HO-7Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 17:31:23 +0100 Original-Received: from localhost ([::1]:37474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr9AY-00065R-OV for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 11:31:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr9AN-0005uD-Dt for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 11:31:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vr9AE-0007XE-Hf for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 11:31:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr9AE-0007XA-D0 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 11:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vr9AD-0000E9-TC for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2013 11:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2013 16:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16116-submit@debbugs.gnu.org id=B16116.1386865850843 (code B ref 16116); Thu, 12 Dec 2013 16:31:01 +0000 Original-Received: (at 16116) by debbugs.gnu.org; 12 Dec 2013 16:30:50 +0000 Original-Received: from localhost ([127.0.0.1]:45925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vr99z-0000DR-Mz for submit@debbugs.gnu.org; Thu, 12 Dec 2013 11:30:48 -0500 Original-Received: from mail-bk0-f53.google.com ([209.85.214.53]:45369) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vr99v-0000DD-V7 for 16116@debbugs.gnu.org; Thu, 12 Dec 2013 11:30:44 -0500 Original-Received: by mail-bk0-f53.google.com with SMTP id na10so960011bkb.26 for <16116@debbugs.gnu.org>; Thu, 12 Dec 2013 08:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=LAqByYQ8SPqpFugppTxWpeHeU2DHDuHwJgYJWPyYY/Q=; b=Tw/6NABo0VTn3O18BULGUoqTcBfi/b1n5XnDR4+skUJFG/wpY8nB5e5W0JFBEUqSw2 1z+ojZVGKFUq0DknSoM4MuQX3cfYItDfWAqdU0BFCjGmd73IMO17ObRrSgxkm3YiPQwL HPY6h/zu9hzb7FZtxWGZCcrhWh2lAcFxlax2fHzDVa7sdmuILHlrOfWVU63pLERfQuxW Jskom3oCPDEsfdRW6S2LndIo+v8EWv6WNpYilwHXWO4SnJxVN+Y+MCJbmYh3dx26RznA YQVTdPMsgGfe4r1kIiAskmKu7XRRMzcOZ1rCukAPEKs3zFmFmvNzo5cSzwATuyJmBDcr xnoA== X-Received: by 10.205.36.81 with SMTP id sz17mr3076189bkb.29.1386865842946; Thu, 12 Dec 2013 08:30:42 -0800 (PST) Original-Received: from [192.168.10.48] (93-245-142.netrun.cytanet.com.cy. [93.109.245.142]) by mx.google.com with ESMTPSA id xm9sm18792308bkb.1.2013.12.12.08.30.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Dec 2013 08:30:41 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81821 Archived-At: On 12.12.2013 14:55, Stefan Monnier wrote: > Well, it does look right to me, because that line closes the whole construct. Here are some arguments on why it's wrong: - It deforms the last array literal and breaks the symmetry with the previous one. - If it emphasizes the fact that the construct is closed, why doesn't it align the opening and closing round parens, and aligns delimiters from different sexps instead? - What about the following example? The last line likewise closes the whole construct, but we don't indent it to the 0th column, right? foo( a, b, c) - Likewise, this example: foo([a, b]) - Indentation functions usually don't care about tokens that go after the first one after indentation. I'm used to that. For example, take js-mode. It handles the initial example differently, but compare this one under both modes: foo([a, b ]) js-mode indents it as I would expect. - If I want to emphasize the closing of the whole construct, I can put the closing paren on a separate line.