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: [Emacs-diffs] trunk r114556: * test/indent/ruby.rb: Fix a spurious change, add more failing examples. Date: Wed, 09 Oct 2013 16:40:56 +0300 Message-ID: <52555CE8.7050703@yandex.ru> References: <87y564hecg.fsf@yandex.ru> <5254CD19.4060301@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 1381326078 29345 80.91.229.3 (9 Oct 2013 13:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 13:41:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 09 15:41:21 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 1VTu0v-0008W1-3L for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2013 15:41:21 +0200 Original-Received: from localhost ([::1]:42016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTu0u-0000xF-A9 for ged-emacs-devel@m.gmane.org; Wed, 09 Oct 2013 09:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTu0k-0000w6-6X for emacs-devel@gnu.org; Wed, 09 Oct 2013 09:41:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTu0b-0004z2-PO for emacs-devel@gnu.org; Wed, 09 Oct 2013 09:41:10 -0400 Original-Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:58206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTu0b-0004xM-JB for emacs-devel@gnu.org; Wed, 09 Oct 2013 09:41:01 -0400 Original-Received: by mail-ee0-f44.google.com with SMTP id b47so419498eek.17 for ; Wed, 09 Oct 2013 06:41:00 -0700 (PDT) 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=5jT+OYOfVbaoSU0miDk+z2wyoyskjAX/7U0As/T3Oq8=; b=qMU0EvxM8B6fiBdaDcvbAggxEyHAaYyZCIkonds3xMlC6fJYvgff4HFjfGPUK9GA7J 8063sHHW8uITiM4eiUi19A41caJTKfFt+YOk03aDItGpA2UQuSKrNsLuy0HSbBUYcdgw Kfms/c1NDh6A2BXa2B36PlZWaq7gqP6stmC6IQ9NHrI7kTcrHquWDFlz3smDoNGR970K DWIOIxyQJiq9I+zw4/PBOloKyIiGeJyKsMw+8Q8Eq0Ft05ii1emZfQJYLJbAfz4GQzYB 2SqiVbMlLWc07sVG2tQnq+nFPsLghkNKdHn/SH3rNoSsbTXvpYapxqXZZgTdQ99b8uKD gt3g== X-Received: by 10.15.94.201 with SMTP id bb49mr11811352eeb.23.1381326060522; Wed, 09 Oct 2013 06:41:00 -0700 (PDT) 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 m54sm88977205eex.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Oct 2013 06:40:59 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.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::22c 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:164036 Archived-At: On 09.10.2013 15:47, Stefan Monnier wrote: >> If I remove the `when' and just leave (smie-rule-parent), none of the >> indentation examples break, AFAICS. > > IIRC it's for the case where the "do" is at the beginning of the line That would be a syntax error. > or is not at the end of the line. I found an example where it makes a difference, but it looks too weird: it do foo { } end Never seen Ruby code written this way. I'm going to simplify that case, then, as long as you don't mind.