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#16907: 24.3.50; [ruby-mode] %w/W literals have incorrect indentation Date: Sat, 01 Mar 2014 15:57:47 +0200 Message-ID: <5311E75B.9010700@yandex.ru> References: <874n3in0nd.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 1393682310 9600 80.91.229.3 (1 Mar 2014 13:58:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 13:58:30 +0000 (UTC) Cc: 16907@debbugs.gnu.org To: Bozhidar Batsov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 01 14:58:38 2014 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 1WJkR3-00048B-5L for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 14:58:37 +0100 Original-Received: from localhost ([::1]:59749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkR2-0005XF-RA for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 08:58:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkQc-000560-S5 for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 08:58:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJkQV-00089v-J0 for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 08:58:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkQV-00089q-Et for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 08:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WJkQU-0001uI-UZ for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 08:58:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Mar 2014 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16907 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16907-submit@debbugs.gnu.org id=B16907.13936822797321 (code B ref 16907); Sat, 01 Mar 2014 13:58:02 +0000 Original-Received: (at 16907) by debbugs.gnu.org; 1 Mar 2014 13:57:59 +0000 Original-Received: from localhost ([127.0.0.1]:45473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJkQP-0001tz-T8 for submit@debbugs.gnu.org; Sat, 01 Mar 2014 08:57:58 -0500 Original-Received: from mail-ee0-f45.google.com ([74.125.83.45]:33418) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJkQK-0001tl-7h for 16907@debbugs.gnu.org; Sat, 01 Mar 2014 08:57:52 -0500 Original-Received: by mail-ee0-f45.google.com with SMTP id d17so2873167eek.18 for <16907@debbugs.gnu.org>; Sat, 01 Mar 2014 05:57:50 -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=j95xz0hNVWIAmOdE2szXXo9s29E7hMFXRfAKRu4sGcA=; b=VBGJRULzXVkA8MBU7syp0x0thkrhASwysrd8wwHJ312l1hlJGCBeYXM5loLng/K3uo nzjVB1njTlxE6mir7+lNB7KtLdfz/20uxHQASF/Cc57iBc40DeoiGhBn+xslR+Qk35YP pftSV8OdcIEOILKd6BM5Mqj0gjRy44zJ1z9io3bqSALWonYNurIcpt1uFbElPfEciQlQ BYV8zXuPQH1hRbGmjVMuMt9Ll9e/L22mvrtMZ1Gv2zgy8UwnjqjBQCF7hQ+0DjlWYIFA 4YUHVZfoT5Vfazd0DXOfnpafS2z7RoBDhRX7MPQg0FgGp/c5hoRlcFsu5OvcxfNMjn6r xShQ== X-Received: by 10.14.220.193 with SMTP id o41mr28497242eep.22.1393682270784; Sat, 01 Mar 2014 05:57:50 -0800 (PST) Original-Received: from [192.168.10.2] ([93.109.195.252]) by mx.google.com with ESMTPSA id x3sm23820134eep.17.2014.03.01.05.57.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Mar 2014 05:57:50 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 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:86445 Archived-At: (Please keep it in Cc). On 01.03.2014 13:00, Bozhidar Batsov wrote: >> 2. Tokenize the elements inside the above literals without regard to >> characters used in them. `ruby-smie--backward-token' and its counterpart >> would have to be able to easily know when it's inside such literal. >> >> Alternatively, still propertize them as "general strings", but replace >> `smie-indent-inside-string' in `smie-indent-functions' with a >> specialized version that would look at what the string begins with. > Option 1 seems better/cleaner to me, Option 1 is everything before "Alternatively". I'm not sure how to implement the item 2 in it.