From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: ruby-mide, SMIE and token priority Date: Mon, 11 Nov 2013 19:19:13 +0200 Message-ID: <52811191.3040802@yandex.ru> References: <527B069B.6020400@yandex.ru> <527B9163.3020102@yandex.ru> <87bo1rqep1.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384190623 21558 80.91.229.3 (11 Nov 2013 17:23:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 17:23:43 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 11 18:23:46 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VfvDA-00038t-29 for ged-emacs-devel@m.gmane.org; Mon, 11 Nov 2013 18:23:40 +0100 Original-Received: from localhost ([::1]:38734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfvD9-0000cy-IF for ged-emacs-devel@m.gmane.org; Mon, 11 Nov 2013 12:23:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfvCy-0000Qp-90 for emacs-devel@gnu.org; Mon, 11 Nov 2013 12:23:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vfv8w-0006MQ-4B for emacs-devel@gnu.org; Mon, 11 Nov 2013 12:19:26 -0500 Original-Received: from mail-ee0-x234.google.com ([2a00:1450:4013:c00::234]:49576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfv8v-0006ML-TZ for emacs-devel@gnu.org; Mon, 11 Nov 2013 12:19:18 -0500 Original-Received: by mail-ee0-f52.google.com with SMTP id l10so869422eei.39 for ; Mon, 11 Nov 2013 09:19:17 -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=uFI4DDHM/OjGPwaa0uUIdyKRRe/0FZV1seEefXTkQAc=; b=jveOprgXU5kg44s8lOhIg/dRUcjn0+RMVKyl5tU/El93ciB32Y+rW2AUjMnHzYMIE9 YyZDuKpW3nfnB9z2CtuwdOiryUzBz5SJnup6gyAlAgbwyMuMaeDUINev+bgwNRASvUmg fO2fvk7tevVlPQAoHO58cc7ztAcyPpqnzNsNjVVVTnQPNANVcgpENTbCFY8TEj9+XqKf cTXOD7GfSgDf8h9Ll3PZpm+1/TYVTcuhdDXPcEuZYV4A3EcgTdPSqulYyjxjnc4zWlXJ DviB7rXQ4g5hu/OWJY+kidoyy/MuMD0Mu4IejJklMvb7uzfwkKS84g7cXwtscO041n9a FIrQ== X-Received: by 10.14.241.74 with SMTP id f50mr36573896eer.29.1384190357077; Mon, 11 Nov 2013 09:19:17 -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 8sm65250409eem.15.2013.11.11.09.19.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Nov 2013 09:19:16 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165175 Archived-At: On 11.11.2013 17:13, Bozhidar Batsov wrote: > At first glance everything looks good to me. I was extremely happy to > see you've fixed the indentation for: > > if foo && > bar > end > > The old (incorrect) behaviour was quite an annoyance for many Ruby > programmers. I'm glad you like it. Lining up foo and bar makes sense from the syntax standpoint, so SMIE more or less does that by default, but I was afraid it would hurt readability: this way, "bar" is indented only 1 column more than the block body, so it could be mistaken for the first statement more easily.