GNU bug report logs - #27648
25.2; ruby-mode doesn't see an `if` block that assigned from newline after '\'

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: ojab@HIDDEN; dated Mon, 10 Jul 2017 23:08:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 27648 <at> debbugs.gnu.org:


Received: (at 27648) by debbugs.gnu.org; 17 Jul 2017 00:10:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 16 20:10:56 2017
Received: from localhost ([127.0.0.1]:42871 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dWtcl-00011K-Si
	for submit <at> debbugs.gnu.org; Sun, 16 Jul 2017 20:10:56 -0400
Received: from mail-wm0-f44.google.com ([74.125.82.44]:35339)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1dWtcj-000117-Gs
 for 27648 <at> debbugs.gnu.org; Sun, 16 Jul 2017 20:10:54 -0400
Received: by mail-wm0-f44.google.com with SMTP id w126so62050094wme.0
 for <27648 <at> debbugs.gnu.org>; Sun, 16 Jul 2017 17:10:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:subject:to:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=IbOrBBel5j5rxmt53UNKCMrMDLL6MGgzzlAFUznGbPw=;
 b=kInjrF5wF71khWwh9yZvgWaZEffLbBIsKVpzn8BMM1WYjnXMyIBNjQxymQb/OAFDA0
 3olFhXfR9HciGRaZdYTpZqbhRady9vvlxgVfY2I1zYSAfXlxFEuaGed40kfjPxp7G2yQ
 puoT7o3iZ+ZwH2J6mEB6CK7v23rEjw4UQCSZdWrA+I8G8cZMto1Nj1hW/mY9bHwBHR6A
 bW6XD7la5pYVdFi2enWLRfJx0aXg2/PQSxYgedLEBtBhOztHGoJg0dZuUN14yfGA/UsP
 JSlHuyBBKcIV2rcLlESUPE+vBubRTuZCrZHOuEEtToLpH2IO/C0vkHg59mIMQQa9cadC
 T42g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:subject:to:references:from:message-id
 :date:user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=IbOrBBel5j5rxmt53UNKCMrMDLL6MGgzzlAFUznGbPw=;
 b=YwsSpjaqkzpRbdDSG7QN+ZxEgaK1Qb1gDwaZTTzPZlYiRGhQPsN/V0FFtErTgsoGeP
 bBgiPF9ALq2W5MQrHccIE71S4xDh/3bm3cAVKjQN0q4K7RHv+Flae69436M3WqyOLVpm
 VOPPtzaDkP5SW8e/BDTgqEosepOBp5DVQM9LLYd9Wek44/ipx+3Q/hcIAzDITKPpizA7
 joyaZGxDld9KYpymxe0GxiYVHHRXdLvjjFPxlzglJotf9IauDZooBvzKgVwXnn3HIhKe
 6tjAqk3BOhtnj07bN1W29TH+9zoDiKIbCLyspnBUMf8eGAFsGbYgmG33Tp+4Rnr6f1rK
 KYLA==
X-Gm-Message-State: AIVw1130EnCLOBVLdJcpKlK1Mq4fkjp4DAhiTfBT6WYqkejF8c5vzdJw
 L+pgfdMnZ146zAfwD9w=
X-Received: by 10.28.168.21 with SMTP id r21mr2310030wme.80.1500250247798;
 Sun, 16 Jul 2017 17:10:47 -0700 (PDT)
Received: from [192.168.1.3] ([185.105.174.193])
 by smtp.googlemail.com with ESMTPSA id
 l186sm13179293wma.10.2017.07.16.17.10.46
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 16 Jul 2017 17:10:47 -0700 (PDT)
Subject: Re: bug#27648: 25.2; ruby-mode doesn't see an `if` block that
 assigned from newline after '\'
To: ojab@HIDDEN, 27648 <at> debbugs.gnu.org
References: <87inj0qowa.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
Message-ID: <77f4e7e4-99fa-9256-9eca-e8efd2644198@HIDDEN>
Date: Mon, 17 Jul 2017 03:10:45 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101
 Thunderbird/54.0
MIME-Version: 1.0
In-Reply-To: <87inj0qowa.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 27648
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

On 7/10/17 6:42 PM, ojab@HIDDEN wrote:
> `ruby-mode` doesn't see an 'if' block in the following case:

Thanks for the report, I'll look into it (recognizing 'if' is easy; 
adding extra indentation after \ is harder).

Please note, though, that the \ in this example is entirely optional. 
And the indentation works well without it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27648; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jul 2017 23:07:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 10 19:07:44 2017
Received: from localhost ([127.0.0.1]:33118 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dUhmJ-0000g5-8I
	for submit <at> debbugs.gnu.org; Mon, 10 Jul 2017 19:07:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40192)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ojab@HIDDEN>) id 1dUar1-00039M-Of
 for submit <at> debbugs.gnu.org; Mon, 10 Jul 2017 11:44:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ojab@HIDDEN>) id 1dUaqv-0001EP-G9
 for submit <at> debbugs.gnu.org; Mon, 10 Jul 2017 11:44:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50068)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ojab@HIDDEN>) id 1dUaqv-0001EB-C6
 for submit <at> debbugs.gnu.org; Mon, 10 Jul 2017 11:44:01 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59356)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ojab@HIDDEN>) id 1dUaqt-00058a-SQ
 for bug-gnu-emacs@HIDDEN; Mon, 10 Jul 2017 11:44:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ojab@HIDDEN>) id 1dUaqs-0001CF-Om
 for bug-gnu-emacs@HIDDEN; Mon, 10 Jul 2017 11:43:59 -0400
Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:35902)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ojab@HIDDEN>) id 1dUaqs-0000xb-CJ
 for bug-gnu-emacs@HIDDEN; Mon, 10 Jul 2017 11:43:58 -0400
Received: by mail-lf0-x22b.google.com with SMTP id h22so65019253lfk.3
 for <bug-gnu-emacs@HIDDEN>; Mon, 10 Jul 2017 08:43:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ojab.ru; s=google;
 h=from:to:subject:date:message-id:mime-version;
 bh=69Rckz5hs9NTlM3ZPXpUVFz1mwT7MWsCmP/a5kYNrQ4=;
 b=DMphWxtieB3mIHu5PWJkSZ+QA2Uyakt81j6AbvuneXSBdrd6O75sqR8L57J2ilejj+
 MFOO/qodEiOHTI9DKhzYgfxnsVnE/VLN0Enlm4YkLpasXKqKWzrW5u9EKPfvvqicfIw0
 2PImYPpfP1yZyP4KIdhGUIT2rRJG7tH8dega4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=69Rckz5hs9NTlM3ZPXpUVFz1mwT7MWsCmP/a5kYNrQ4=;
 b=nzRbP+h6tmM8RHt/xSFS4UkgNH9CatKFb0A1bFsWknFgiGljp9aSfUA/UDkYcbEqCW
 2UO4Z/o2YUKjC9HobIk9GHmvgR/Z/hBPQOC1f22Q205s01ibM7yjv2di6YHLr7pNHAIl
 fovjd+Cwdy3Ajpmn1r6nFTe8BX2Z3jjLy68LI7nxZ3DispUY5AaVT2pS1uDLD9fP1vE+
 WD7lfoKE/JGIn6jkCj3NKLrtRsmeTWasjWglTGQS9PVgr8s1o+vnAeCbCkuA9PU3jmWm
 fqoHUUXhLVZV4r8V2JMxjzgNZEb7YGvgQQymdprqCpeVq4Ab1hrI1N7g/hMR9GKvK4XD
 DpTA==
X-Gm-Message-State: AIVw112pnCOnjiB0v5e4WsgkHG8bnlLS69DejizD0RZw8+dIxyXNCQ4l
 BVmfNB5GXJxPwdbtEn99kw==
X-Received: by 10.25.22.212 with SMTP id 81mr1585044lfw.104.1499701413537;
 Mon, 10 Jul 2017 08:43:33 -0700 (PDT)
Received: from ojab.ru (ojab-1-pt.tunnel.tserv24.sto1.ipv6.he.net.
 [2001:470:27:50c::2])
 by smtp.gmail.com with ESMTPSA id q90sm2802169lfb.36.2017.07.10.08.43.31
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 10 Jul 2017 08:43:32 -0700 (PDT)
From: ojab@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 25.2;
 ruby-mode doesn't see an `if` block that assigned from newline after
 '\'
Date: Mon, 10 Jul 2017 15:42:45 +0000
Message-ID: <87inj0qowa.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 10 Jul 2017 19:07:42 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

`ruby-mode` doesn't see an 'if' block in the following case:
```
def foo
  bar = \
    if true
      true
    else
    end
end
```
actual indentation is:
```
def foo
  bar = \
    if true
  true
else
end
end
```
and the first `end` is recognized as the end of `def` block.


In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu)
 of 2017-04-26 built on ojab.ru
System Description:	Linux From Scratch

Configured using:
 'configure --prefix=/usr --localstatedir=/var --without-all
 --enable-acl --without-x --with-zlib --with-gnutls --with-xml2
 --with-modules --with-file-notification'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES

Important settings:
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_RU.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
regexp-opt rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode
easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
inotify multi-tty make-network-process emacs)

Memory information:
((conses 16 81921 6346)
 (symbols 48 18715 0)
 (miscs 40 41 113)
 (strings 32 13939 4754)
 (string-bytes 1 400815)
 (vectors 16 9337)
 (vector-slots 8 377183 19278)
 (floats 8 141 294)
 (intervals 56 188 8)
 (buffers 976 19)
 (heap 1024 34947 1946))




Acknowledgement sent to ojab@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#27648; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.