From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: Small improvements to ruby-mode Date: Sat, 6 Jul 2013 08:14:58 +0300 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b676b44898dc404e0d0e4df X-Trace: ger.gmane.org 1373087713 17043 80.91.229.3 (6 Jul 2013 05:15:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 05:15:13 +0000 (UTC) Cc: emacs-devel , Dmitry Gutov To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 06 07:15:13 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 1UvKq1-0005H7-8o for ged-emacs-devel@m.gmane.org; Sat, 06 Jul 2013 07:15:13 +0200 Original-Received: from localhost ([::1]:59470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvKq0-0004Aw-R1 for ged-emacs-devel@m.gmane.org; Sat, 06 Jul 2013 01:15:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvKps-00042w-3O for emacs-devel@gnu.org; Sat, 06 Jul 2013 01:15:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvKpn-0001VB-BG for emacs-devel@gnu.org; Sat, 06 Jul 2013 01:15:04 -0400 Original-Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:50801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvKpn-0001V3-6b for emacs-devel@gnu.org; Sat, 06 Jul 2013 01:14:59 -0400 Original-Received: by mail-qc0-f174.google.com with SMTP id m15so1517365qcq.5 for ; Fri, 05 Jul 2013 22:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=TAAV7fDFZk66paPK61JA+JNCvffo3GvcsTXrKV15xm0=; b=h3adzfwPzjTWO+9MJ5UjlMdLv+fE6nwek4XSTnpnElMvR2/LM5X2U1mT70zPR2fn/r y+xYT5Vytdp3IZTWlk48TaAxGvw5sHxTWTxYkbsyk0ovrH+yLdo7lVvwKczgLIWHf6R7 2xyj3Mu5WX0iLxR2x1B7p4vwz4nJIzFM3o20aLDRLgYcZyPG0IBvf25IwaEvdA6knQmO T/0+0Mk4XYlDfMkCaUhjWDpywcZ297v9D0ATMkNkCF5VC2OcTfVnP7lxg7tex6A5io4/ vIbm1u7HvsLYXWtjwp8Ovgm8+2Q3FcC9ZSq9qwd+MCaHWH1FSFM+mRduGWiahL1Gj64g AvHA== X-Received: by 10.229.242.132 with SMTP id li4mr1833016qcb.3.1373087698880; Fri, 05 Jul 2013 22:14:58 -0700 (PDT) Original-Received: by 10.49.59.13 with HTTP; Fri, 5 Jul 2013 22:14:58 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 9hfxKSzcq8iXuEb8xwUEfxwIwMo X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22e 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:161633 Archived-At: --047d7b676b44898dc404e0d0e4df Content-Type: text/plain; charset=UTF-8 On 6 July 2013 01:35, Stefan Monnier wrote: > > I thought the manual installation instructions were leftovers from the > old > > ruby-mode. I was under the impression that since ruby-mode started using > > SMIE it's not a good idea to distribute it separately, since it might not > > behave appropriately on older Emacsen. Perhaps I'm wrong. > > SMIE comes with Emacs since 23.4 and ruby-mode doesn't use SMIE: > I installed a rough first cut at what could become SMIE support, but > since I don't use Ruby, I probably won't do it myself and it looks like > noone's interested to pick up the work. > I'm interested in working on this, but I'm not sure how soon I'll be able to fit it in my schedule. > > > That's unfortunate. Files with tabs look like Christmas trees for most > > whitespace-mode users. > > If they have nothing better to do than watch the lights of the Xmas > tree, it's their choice. IOW I think the problem is that those users > should get a life. > > >> * make use of `font-lock-negation-char-face` for ! > > Why have a special face for the negation char? What's so special about > this char? > As the face description says it's pretty easy to overlook an ! attached to some identifier(like !ol - you can mistake the this for lol). Unfortunately few major modes have bothered to use the face. > > > Stefan > --047d7b676b44898dc404e0d0e4df Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On 6 July 2013 01:35, Stefan Monnier <monnier@iro.umontrea= l.ca> wrote:
> I thought the manual = installation instructions were leftovers from the old
> ruby-mode. I was under the impression that since ruby-mode started usi= ng
> SMIE it's not a good idea to distribute it separately, since it mi= ght not
> behave appropriately on older Emacsen. Perhaps I'm wrong.

SMIE comes with Emacs since 23.4 and ruby-mode doesn't use SMIE:<= br> I installed a rough first cut at what could become SMIE support, but
since I don't use Ruby, I probably won't do it myself and it looks = like
noone's interested to pick up the work.

=
I'm interested in working on this, but I'm not sure how = soon I'll be able to fit it in my schedule.=C2=A0

> That's unfortunate. =C2=A0Files with tabs look like Christmas tree= s for most
> whitespace-mode users.

If they have nothing better to do than watch the lights of the Xmas tree, it's their choice. =C2=A0IOW I think the problem is that those us= ers
should get a life.

>> * make use of `font-lock-negation-char-face` for !

Why have a special face for the negation char? =C2=A0What's so sp= ecial about
this char?

As the face descriptio= n says it's pretty easy to overlook an ! attached to some identifier(li= ke !ol - you can mistake the this for lol).
Unfortunately f= ew major modes have bothered to use the face. =C2=A0


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--047d7b676b44898dc404e0d0e4df--