From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.bugs Subject: bug#16907: 24.3.50; [ruby-mode] %w/W literals have incorrect indentation Date: Sat, 1 Mar 2014 16:00:52 +0200 Message-ID: References: <874n3in0nd.fsf@yandex.ru> <5311E75B.9010700@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5311e814_51f79246_c8" X-Trace: ger.gmane.org 1393682476 11068 80.91.229.3 (1 Mar 2014 14:01:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Mar 2014 14:01:16 +0000 (UTC) Cc: 16907@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 01 15:01:23 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 1WJkTj-0005Lv-00 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 15:01:23 +0100 Original-Received: from localhost ([::1]:59876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkTi-0006E0-FG for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Mar 2014 09:01:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkTX-0006Df-Jd for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 09:01:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJkTO-0001Kl-Ct for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 09:01:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJkTO-0001Ke-98 for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 09:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WJkTN-00020q-Tg for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 09:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Mar 2014 14:01:01 +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.13936824547715 (code B ref 16907); Sat, 01 Mar 2014 14:01:01 +0000 Original-Received: (at 16907) by debbugs.gnu.org; 1 Mar 2014 14:00:54 +0000 Original-Received: from localhost ([127.0.0.1]:45478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJkTG-00020N-4o for submit@debbugs.gnu.org; Sat, 01 Mar 2014 09:00:54 -0500 Original-Received: from mail-ee0-f52.google.com ([74.125.83.52]:51466) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJkTD-00020E-SY for 16907@debbugs.gnu.org; Sat, 01 Mar 2014 09:00:52 -0500 Original-Received: by mail-ee0-f52.google.com with SMTP id c41so2920128eek.39 for <16907@debbugs.gnu.org>; Sat, 01 Mar 2014 06:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=mvkoST2QfJxuH7Vvj++B8x8W3yCxuuO+mu0dThqOIMs=; b=QY8XXbM89h7pxnw/NHBuh+b1JR+dMITJODMHHKQ6oqDdRLlyRxNHhjSPbnMsZr+Rxf Fiao/lcGNyu8GIllkck9/IwRMomAVOWgcQoO11xwg7rMKxIvRG4o8U0KcVGiixIP/k9o Dee7NR2fSkSwbST3WLwYkY7jsOKBmzf9IC+9G63LQxOuq/ApRQfJPfJqMHJPFmyLw3gU byAXRsQIn64C8i9ru2D+Vlw/AMqwaW0w8T9OyRYAAkG0FNOwfbH+XHCJ2kvgzNNQzQrN ensyNl1tQjZKOyQEKLh0R9PIQHTh7biO+rz1s7bHwwz8IckQp30ge5LkR2/CYwm8K5Fx jNoQ== X-Received: by 10.15.52.66 with SMTP id o42mr221485eew.89.1393682450957; Sat, 01 Mar 2014 06:00:50 -0800 (PST) Original-Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id 43sm23852419eeh.13.2014.03.01.06.00.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 01 Mar 2014 06:00:50 -0800 (PST) In-Reply-To: <5311E75B.9010700@yandex.ru> X-Mailer: sparrow 1.6.4 (build 1178) 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:86446 Archived-At: --5311e814_51f79246_c8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Saturday, March 1, 2014 at 3:57 PM, Dmitry Gutov wrote: > (Please keep it in Cc). > > I know. Sorry about that. > > 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. > > Oops. I should have read your comments more carefully. --5311e814_51f79246_c8 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On Sa= turday, March 1, 2014 at 3:57 PM, Dmitry Gutov wrote:
(Please keep it in Cc).
I know.= Sorry about that. 

On 01.03.2014 13:00, Bozhida= r Batsov wrote:
2. Tokenize the elements inside the above literals w= ithout regard to
characters used in them. =60ruby-smie--backwar= d-token' and its counterpart
would have to be able to easily kn= ow when it's inside such literal.

Alternatively,= still propertize them as =22general strings=22, but replace
=60= smie-indent-inside-string' in =60smie-indent-functions' with a
= specialized version that would look at what the string begins with.
=
Option 1 seems better/cleaner to me,
<= /blockquote>

Option 1 is everything before =22Alternat= ively=22. I'm not sure how to
implement the item 2 in it.

Oops. I should have read your comments more carefully. <= /font> 
=20

--5311e814_51f79246_c8--