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#17057: 24.3.50; [ruby-mode] Font-locking of special global variables like $$ is broken(missing) Date: Mon, 24 Mar 2014 11:45:01 +0200 Message-ID: <2EF5A812FAC74FBBBB465952FCFFC2D6@gmail.com> References: <87bnwzwqu8.fsf@yandex.ru> <532FF702.7090205@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="532ffe9d_2a155dbc_fda4" X-Trace: ger.gmane.org 1395654367 26823 80.91.229.3 (24 Mar 2014 09:46:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 09:46:07 +0000 (UTC) Cc: 17057-done@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 10:46:16 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 1WS1SR-0001hY-Tx for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 10:46:16 +0100 Original-Received: from localhost ([::1]:35353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS1SR-0003QU-J1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 05:46:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS1SK-0003QM-50 for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 05:46:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS1SF-0002LB-0m for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 05:46:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS1SE-0002L4-TM for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 05:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WS1SE-0003NG-E0 for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 05:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bozhidar Batsov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17057 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17057-done@debbugs.gnu.org id=D17057.139565430812901 (code D ref 17057); Mon, 24 Mar 2014 09:46:02 +0000 Original-Received: (at 17057-done) by debbugs.gnu.org; 24 Mar 2014 09:45:08 +0000 Original-Received: from localhost ([127.0.0.1]:46737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS1RL-0003M0-V7 for submit@debbugs.gnu.org; Mon, 24 Mar 2014 05:45:08 -0400 Original-Received: from mail-ee0-f43.google.com ([74.125.83.43]:58898) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS1RJ-0003Lq-H1 for 17057-done@debbugs.gnu.org; Mon, 24 Mar 2014 05:45:06 -0400 Original-Received: by mail-ee0-f43.google.com with SMTP id e53so4178938eek.16 for <17057-done@debbugs.gnu.org>; Mon, 24 Mar 2014 02:45:04 -0700 (PDT) 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=bcgtdBNJS2441gFXB78vUSwORpaFR2//62RzR+lLyAc=; b=MFukNTdUMKpvqenMknI0w21CzuVkRHF7UQkcLGFlkI/7ZKJhPQz/AjhL2gCyCWP5UQ x/T1GhlRwEhj++zFI1qRoVY/iSV/JYUfaeRJ3qUoIdcEMcQFSs0a1Gf9WH9TyHcP/ECd xK1NDz+x8jA9BAFzaZWesT4k78WOT2wTcBA0c/NinftFYXHpJar5LV/tsFPE/HMK5c/u wZe7jTp2cHS2fpEyTkLiktNAC+G2wIO7w2ZRWeoqDh+Dse6Gv7iqDhM1+j+sJIM3mUyV AE9eDyKFWyvLOB1b2y4fk5KKXaQ9SFPGmnIeA0W2ejgmvChN72Jt/9bih1Rj+iYIjJNV t0eQ== X-Received: by 10.14.108.67 with SMTP id p43mr220078eeg.110.1395654304714; Mon, 24 Mar 2014 02:45:04 -0700 (PDT) Original-Received: from [192.168.1.28] ([95.87.231.111]) by mx.google.com with ESMTPSA id t4sm32117651eeb.29.2014.03.24.02.45.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 02:45:03 -0700 (PDT) In-Reply-To: <532FF702.7090205@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:87293 Archived-At: --532ffe9d_2a155dbc_fda4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday, March 24, 2014 at 11:12 AM, Dmitry Gutov wrote: > Version: 24.4 > =20 > On 21.03.2014 16:53, Bozhidar Batsov wrote: > =20 > > Technically speaking all of those are keywords, not variables. Somewh= at > > odd =5F=5FLINE=5F=5F and friends are > > treated at string literals by the Ruby parser. As all of those evalua= te > > to some value unlike most other keywords I guess it makes some sense = to > > font-lock them as variables, but I=E2=80=99d prefer if we used font-l= ocking that > > makes their special status more apparent. > > =20 > =20 > =20 > Sounds good to me. Does this list look exhaustive to you=3F > =20 > http://www.zenspider.com/Languages/Ruby/QuickRef.html=23pre-defined-var= iables > =20 Yeah, seems that everything important is listed there. Here=E2=80=99s one= a bit more extensive list, though: https://github.com/bbatsov/rubocop/blob/master/lib/rubocop/cop/style/glob= al=5Fvars.rb It features the JRuby-specific global vars in addition to the standard on= es. =20 > =20 > Aside from changing faces, the problems mentioned in this bug should be= =20 > fixed now, emacs-24 r116850. > =20 > =20 Thanks=21 =20 --532ffe9d_2a155dbc_fda4 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On Mo= nday, March 24, 2014 at 11:12 AM, Dmitry Gutov wrote:
Version: 24.4

On 21.03.2014 16:53, Bozhidar Batsov wrote:

Technically speaking all of those a= re keywords, not variables. Somewhat
odd =5F=5FLINE=5F=5F and f= riends are
treated at string literals by the Ruby parser. As al= l of those evaluate
to some value unlike most other keywords I = guess it makes some sense to
font-lock them as variables, but I= =E2=80=99d prefer if we used font-locking that
makes their spec= ial status more apparent.

Sou= nds good to me. Does this list look exhaustive to you=3F
Yeah, seems that e= verything important is listed there. Here=E2=80=99s one a bit more extens= ive list, though:

<= font face=3D=22Trebuchet MS=22>
It features the JRuby-specific global vars in addition to the= standard ones.  
Aside from changing faces, = the problems mentioned in this bug should be
fixed now, emacs-= 24 r116850.

Thanks=21 
=20

--532ffe9d_2a155dbc_fda4--