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: Wed, 10 Jul 2013 22:09:42 +0400 Message-ID: <51DDA366.9020700@yandex.ru> References: <2A6700DEDCA640EF92B326002717596D@gmail.com> <51D1F98D.3060900@yandex.ru> <51D31E12.7060002@yandex.ru> <51D4476A.40107@yandex.ru> <51D6A02C.2020207@yandex.ru> <51D6D500.7080306@yandex.ru> <51DB6516.1090708@yandex.ru> <51DC43CE.3090206@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 1373480678 24963 80.91.229.3 (10 Jul 2013 18:24:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2013 18:24:38 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 10 20:24:39 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 1Uwz49-0000Sl-Hs for ged-emacs-devel@m.gmane.org; Wed, 10 Jul 2013 20:24:37 +0200 Original-Received: from localhost ([::1]:32820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwz49-0006PR-1m for ged-emacs-devel@m.gmane.org; Wed, 10 Jul 2013 14:24:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwz41-0006Or-43 for emacs-devel@gnu.org; Wed, 10 Jul 2013 14:24:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uwypm-00029x-Hy for emacs-devel@gnu.org; Wed, 10 Jul 2013 14:10:22 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:62700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwypm-00029f-5e for emacs-devel@gnu.org; Wed, 10 Jul 2013 14:09:46 -0400 Original-Received: by mail-la0-f46.google.com with SMTP id eg20so6073567lab.19 for ; Wed, 10 Jul 2013 11:09:44 -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=KKXXUoovHCK+foySBG3MxLjUvnFde/dq0PGztmpWq1Q=; b=NdgrGiyf7aV4rFtJ2p5tOC84PML4tpwKgJIn3g13AKpaap2weKZ/KKeoqHOmSJtXyW Ab9nAPX/wqHaEyed7J+hELkIKSBoxBRr4oTnlwZhTpdNStkfkllJx0mhl7NtbvVzIHYY me8QDEBa0SMFRYEFY3LAgwiYulX/8YzOYO9cCCoiSdL1cyKuShIjgtPctgYwiq8PJExO oMbYQFBz1P2tEox41wBw2SkXB3Eg2/AHUv4LWRhU0bsE1nxadcmXVSAm7MGD0Em8m6hH Wn4Eh6OidTnTOfiQj9BRlPeNOHFqnClE4q3BowpXwGcEvy5A03URWrLSpKi1JhnviRHM WHrg== X-Received: by 10.152.42.171 with SMTP id p11mr15415377lal.79.1373479784797; Wed, 10 Jul 2013 11:09:44 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id g7sm11457680lae.6.2013.07.10.11.09.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Jul 2013 11:09:43 -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 130710-0, 10.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:c03::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:161815 Archived-At: On 10.07.2013 10:09, Bozhidar Batsov wrote: > Normally I'd have been doing that from the start, but I'm not extremely > fond of Emacs's "issue tracker". Me neither. It's better that no tracker at all, though. > While class names are actually constants, the reverse is obviously > not the same - therefore my desire to separate them. Still, that's likely the original reason why they're highlighted with the same face. Class names are closer to constants than constants are to symbols. > Since in a typical Ruby program class and module names are used much > more than "regular" constants I don't think the change would be > particularly disruptive. > classes and modules continue to use the type face, constants start > using the constant face, symbols continue to use the constant face > (and optionally there is the ability to customize it). In the long > run such a change would surely be beneficial. I meant that we would preserve the equality between module name and constants' faces. So, if they both switch to font-lock-constant-face, this will be noticeable, as, like you said, module names are used a lot. Symbols can then use type-face, or preprocessor-face, the latter would be a smidgen less inappropriate. If you do want class names and constants to have different faces, there is an obvious question of ambiguity. Is "C" a class or a constant? I don't like the idea of it changing color after I type the second letter. ST2 doesn't seem to highlight either, at all. RubyMine, from what I can tell from a Youtube video, either doesn't highlight them, or, depending on the context, highlights them with the same color (and symbols, too): http://www.youtube.com/watch?v=LnN-JIxDRCg#t=1464s