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#11923: 24.1.50; (Contains ERT test) ruby-indent-line doesn't indent line after symbol creation using string interpolation Date: Sun, 15 Jul 2012 00:22:20 +0400 Message-ID: <5001D4FC.6000706@yandex.ru> References: <87liip3uah.fsf@sapo.pt> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040608070009030102010102" X-Trace: dough.gmane.org 1342297406 25471 80.91.229.3 (14 Jul 2012 20:23:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2012 20:23:26 +0000 (UTC) Cc: 11923@debbugs.gnu.org To: rolando_pereira@sapo.pt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 14 22:23:25 2012 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 1Sq8s8-00067E-4G for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2012 22:23:24 +0200 Original-Received: from localhost ([::1]:44770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq8s6-0007nj-MR for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2012 16:23:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq8s3-0007ne-IR for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 16:23:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sq8s2-0001eY-5J for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 16:23:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq8s1-0001eU-TJ for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 16:23:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sq8xa-0002eD-G2 for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 16:29:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87liip3uah.fsf@sapo.pt> Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jul 2012 20:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11923-submit@debbugs.gnu.org id=B11923.134229769010102 (code B ref 11923); Sat, 14 Jul 2012 20:29:02 +0000 Original-Received: (at 11923) by debbugs.gnu.org; 14 Jul 2012 20:28:10 +0000 Original-Received: from localhost ([127.0.0.1]:41445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sq8wj-0002cs-Bh for submit@debbugs.gnu.org; Sat, 14 Jul 2012 16:28:09 -0400 Original-Received: from forward2.mail.yandex.net ([77.88.46.7]:43523) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sq8wf-0002ch-LR for 11923@debbugs.gnu.org; Sat, 14 Jul 2012 16:28:08 -0400 Original-Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward2.mail.yandex.net (Yandex) with ESMTP id D978D12A082C; Sun, 15 Jul 2012 00:22:18 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1342297338; bh=Kc02fEK/sBo2ND3ZebsiL8R63GdCSeYGCXxWM9gQYwU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:Content-Type; b=MpEVOtkuYeJmPU8cJQqZv+TRoaXlyg5FCgvCC7Xxt7lAca0B6DBPmFxzA4fesarN4 OBZyH/7/RBF5e56zrQanhEqp4kSy35XzDYteDrHEYCzirKo6zmppoQfVyehrumzo6I GwmQzYv6RurFTAtbbhLaiprSRis2EUjinoHiRnRM= Original-Received: from smtp4.mail.yandex.net (localhost [127.0.0.1]) by smtp4.mail.yandex.net (Yandex) with ESMTP id B75275C03A6; Sun, 15 Jul 2012 00:22:18 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp4.mail.yandex.net (nwsmtp/Yandex) with ESMTP id MHKS4aQT-MIKuYllO; Sun, 15 Jul 2012 00:22:18 +0400 X-Yandex-Rcpt-Suid: rolando_pereira@sapo.pt X-Yandex-Rcpt-Suid: 11923@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1342297338; bh=Kc02fEK/sBo2ND3ZebsiL8R63GdCSeYGCXxWM9gQYwU=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type; b=Iv4ivtibOX5zi5Zlgekf82iyj0xGhbos9UTp2iZCT/U/Ua+5jVxfoOpcxzyLV0ymO pzh3kuIs5a6rMYug1+CbPnuBEvxOsxaqssUoy54iWyrtUiOBhgMWR9kGbTX871hI/j VgoZConq299B3lCGeZ9B9MoJ2PSE40FmRc81kn5o= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61943 Archived-At: This is a multi-part message in MIME format. --------------040608070009030102010102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --=-=-= Content-Type: text/plain Rolando Pereira writes: > When writing ruby code, if you type something like > :"foo#{variable_name}" emacs can no longer indent lines following it > because it gives the following error: > > ruby-forward-string: Search failed: "[^\\]\\(\\\\\\\\\\)*[\"]" > ... Here's a patch, including the slightly rewritten test case. --------------040608070009030102010102 Content-Type: text/plain; charset=windows-1251; name="ruby-mode-11923.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ruby-mode-11923.diff" ZGlmZiAtLWdpdCBhL2xpc3AvQ2hhbmdlTG9nIGIvbGlzcC9DaGFuZ2VMb2cKaW5kZXggMmNi ZGJkYi4uM2FjN2IyZSAxMDA2NDQKLS0tIGEvbGlzcC9DaGFuZ2VMb2cKKysrIGIvbGlzcC9D aGFuZ2VMb2cKQEAgLTEsMyArMSw4IEBACisyMDEyLTA3LTE0ICBEbWl0cnkgR3V0b3YgIDxk Z3V0b3ZAeWFuZGV4LnJ1PgorCisJKiBwcm9nbW9kZXMvcnVieS1tb2RlLmVsIChydWJ5LXBh cnNlLXBhcnRpYWwpOiBObyBlcnJvciB3aGVuIGVuZAorCXVwIGluc2lkZSBzdHJpbmcgc3lt Ym9sIGxpdGVyYWwuCisKIDIwMTItMDctMTIgIEVsaSBaYXJldHNraWkgIDxlbGl6QGdudS5v cmc+CiAKIAkqIGVtYWNzLWxpc3AvYnl0ZWNvbXAuZWwgKGJ5dGUtcmVjb21waWxlLWRpcmVj dG9yeSk6IFVzZSBjbC1pbmNmLApkaWZmIC0tZ2l0IGEvbGlzcC9wcm9nbW9kZXMvcnVieS1t b2RlLmVsIGIvbGlzcC9wcm9nbW9kZXMvcnVieS1tb2RlLmVsCmluZ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ItY29udGVudCAoYnVmZmVyLXN1YnN0cmluZy1uby1wcm9wZXJ0aWVzIChwb2ludC1taW4p DQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKHBvaW50LW1heCkpKSkNCisgICAgICAgIChzaG91bGQgKHN0cmluZz0gYnVm ZmVyLWNvbnRlbnQgZXhwZWN0ZWQtY29udGVudCkpKSkpKQ0KKw0KKyhwcm92aWRlICdydWJ5 LW1vZGUtdGVzdHMpDQorDQorOzs7IHJ1YnktbW9kZS10ZXN0cy5lbCBlbmRzIGhlcmUNCg== --------------040608070009030102010102--