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: Small improvements to ruby-mode Date: Tue, 09 Jul 2013 04:40:32 +0400 Message-ID: <51DB5C00.5000900@yandex.ru> References: <2A6700DEDCA640EF92B326002717596D@gmail.com> <87txkrm46t.fsf@yandex.ru> <6EF2AEF8D67840A2AF1C908AA3D0725F@gmail.com> <51C5A67A.2020002@yandex.ru> <51C6EA5F.2040408@yandex.ru> <51D1CB5A.2060900@yandex.ru> <51D1F98D.3060900@yandex.ru> <51D31E12.7060002@yandex.ru> <51D4476A.40107@yandex.ru> <51D6A02C.2020207@yandex.ru> <51D6D500.7080306@yandex.ru> <87bo6e0xct.fsf@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 1373330446 22243 80.91.229.3 (9 Jul 2013 00:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 00:40:46 +0000 (UTC) Cc: Bozhidar Batsov , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 09 02:40:48 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 1UwLz5-0007u2-NY for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2013 02:40:47 +0200 Original-Received: from localhost ([::1]:36713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwLz5-00026A-91 for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2013 20:40:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwLyv-00020o-2a for emacs-devel@gnu.org; Mon, 08 Jul 2013 20:40:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwLyr-0001B4-07 for emacs-devel@gnu.org; Mon, 08 Jul 2013 20:40:37 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:53099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwLyq-0001At-Py for emacs-devel@gnu.org; Mon, 08 Jul 2013 20:40:32 -0400 Original-Received: by mail-lb0-f171.google.com with SMTP id 13so4267637lba.16 for ; Mon, 08 Jul 2013 17:40:31 -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 :x-antivirus:x-antivirus-status; bh=AGwUnuLMYVRYAOqY0lCfj6qn5rLt3jBFGg4FutVzb0U=; b=yvFNlQqZ45QCqMNqbKGF7h7jb1gbDJBpRsFbQ+xl/kEkQgJKgEmxyAO2rKPRyUGQGf i9hGAyyZodJiQz+04hblQNPqtF9ZA3aqsvQn20joZyuanX+mQIghdgC0HOe0cFs1XiU3 5W58PECteFZmEZF796FQz2Xuks4iH5LmkgkGEN/fN+s3bJQ3716QMHFoNg+RXKhvefCI C64yo8tC/HS18teWYuulVqAh6KOPiLrgkk0u8V9m3PbSPdL5Rha1OrvQHhwPN7ga1jxc XHp8P1PRbdXcJHqJCwT9KZ3qz1zwHhLHG6KS+hKy/ISaZhDnDBd/Tlv83sq69EYBI5g7 VP3w== X-Received: by 10.152.20.165 with SMTP id o5mr11494713lae.71.1373330431444; Mon, 08 Jul 2013 17:40:31 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id k10sm8137600lbl.10.2013.07.08.17.40.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Jul 2013 17:40:30 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-Antivirus: avast! (VPS 130708-0, 08.07.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22b 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:161737 Archived-At: On 08.07.2013 13:22, Stefan Monnier wrote: >> a. Ruby trunk has some objectionable code, which I believe we shouldn't >> merge, and noone seems to be interested in discussing or reverting it: >> http://bugs.ruby-lang.org/issues/6854 > > "deep-indent", huh? Yep. Cryptic name and docstring, plus no comments in the code. All par for the course. :) > I don't give it a name in SMIE, but I use the > "hanging-p" name for the test to choose between doing it or not (which > seems to be pretty much the same test you use in the current > ruby-mode.el). I'm not sure what piece of logic in ruby-mode you mean exactly, but if SMIE does indentation similar to e.g. js-mode (indentation inside parens depends on whether the opener is followed by a newline), then that's behavior I prefer and have in my config via defadvice. ruby-mode currently picks between "deep" and "not-so-deep" indent based on whether the current opener is in `ruby-deep-indent-paren'. In practice, with SMIE in ruby-mode enabled, I would expect foo( 1, 2, 3) to be indented as foo( 1, 2, 3) which doesn't happen. >> b. They've had a bug about removing ruby-mode.el for months now: >> http://bugs.ruby-lang.org/issues/6823 Again, no movement there. > > Maybe making the trunk code work in 23.4 (for example) would help > convince people to drop it from ruby-lang. I encourage people to post > a "vote to remove as well" to this bug-tracker. Maybe it would. I posted a "me too" there. >> c. No ELPA repositories are tracking Ruby trunk anymore. We just have >> some older versions uploaded to Marmalade and Tromey's archive a while >> back. > > That's good. So we should indeed upload a newer version (or better > yet, remove those out dated versions). https://github.com/nicferrier/marmalade/issues/55 I'm not sure if I should Cc Tom Tromey, after all, his repository is supposed to be completely out of use.