From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Add ruby-mode.el configuration for font-face customization Date: Fri, 28 Apr 2017 12:12:33 +0300 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1493370767 10504 195.159.176.226 (28 Apr 2017 09:12:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Apr 2017 09:12:47 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Thunderbird/53.0 To: Justin Smestad , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 28 11:12:41 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d41xA-0002Zn-Oh for ged-emacs-devel@m.gmane.org; Fri, 28 Apr 2017 11:12:40 +0200 Original-Received: from localhost ([::1]:35966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d41xG-0001yJ-4J for ged-emacs-devel@m.gmane.org; Fri, 28 Apr 2017 05:12:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d41x9-0001yD-Ji for emacs-devel@gnu.org; Fri, 28 Apr 2017 05:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d41x6-0001aU-AY for emacs-devel@gnu.org; Fri, 28 Apr 2017 05:12:39 -0400 Original-Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:34082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d41x6-0001aN-3l for emacs-devel@gnu.org; Fri, 28 Apr 2017 05:12:36 -0400 Original-Received: by mail-wr0-x234.google.com with SMTP id l9so30206342wre.1 for ; Fri, 28 Apr 2017 02:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wMxYeuXL4/XmzcZxfplSX2hjpvopMFyR6am8vSz/BsQ=; b=JaIM+TVsfh5JeoEFV3R4Yqi1ZXtjkQ/0aIIjcIrnsgdXOCQ3v0DcNauQNhZc3rb900 ES3E2fX+uom5ath/O6RoJbR5/crbdZ0OkZkbXGJvHg/QhOuX0ULvQinMz1QlMilVEcXF 1PFiGyaK3hp4Pa8j4nHz0HImvXT+ffb4Q+5D3oTpU7vTeOw2lXREmW++nJOBDIHZA8y0 GiQG5gzAOroiNM+0BS221SR/JkuwNbLNwodrE8wlQidE8YAXidsO99XnWmavoqlq/3jg W1C3vus+p3IG7ShRgFfnzauuSZYGdZdI9B48/Q15QR5aYtg8zpnBmwOex1t7JIXT4IXO RNYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wMxYeuXL4/XmzcZxfplSX2hjpvopMFyR6am8vSz/BsQ=; b=LU5dfr5gohFPhTLNOM0E5/9yowDDpQ+ITmktw0qW8vuOnBxTqwFR+6ziMNah2fW9Dy yk0ap477Ts6T+sNX/F22dn0oyCOgU7zPpmlOO3bMCNM12byOVC2HiG7Lo3OyRt3HDjKB YdAmVIEtHY2rsPamb/V5ktrWbwqRst6YUq6aJOcvU0Otog3Pc6q5bY10aPqFtDFgbo6Y hHUfuzbQXNyLsVgMBMHgn2HcJehyBsHY/sL+edYVb/NG5I/kAgjAJdeQmQmHHZbVQbmC lchpOjzpDpFx0uKdW5kTqxAoQbY1rKOZroT5zEAYu/XaacRpD+3LfGknCxAh6RAZAeXJ piPQ== X-Gm-Message-State: AN3rC/60VbDjCkEkg4gpCHnxmWqwkYfyp/K+U6g7wZiFZLA3Refb0H8a pm2hLewsTWDOSQ== X-Received: by 10.223.171.68 with SMTP id r4mr6733645wrc.67.1493370755010; Fri, 28 Apr 2017 02:12:35 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.156]) by smtp.googlemail.com with ESMTPSA id v8sm4014321wrd.42.2017.04.28.02.12.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Apr 2017 02:12:34 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:214378 Archived-At: Hello Justin, On 24.04.2017 4:55, Justin Smestad wrote: > I've been in the process of switching over to emacs and noticed the > syntax highlighter for `ruby-mode.el` is much less customizable than say > `python.el`. Is that right? I don't see any python-...-face variables in lisp/progmodes/python.el. > In an effort to make it more customizable, I created this > patch - > https://gist.github.com/jsmestad/d4ab36c94c5d22bb68a72d8d403b4cb7#file-ruby-mode-revised-patch > > > A few things: > > * Is this the right mailing list to discuss ruby-mode.el changes? It is. Though a bug report probably would have worked better. The emacs-devel threads that are not replied to immediately tend to get lost in time. > * Are there better ways to do this? I'm not sure what you are trying to do. How does this make highlighting "more vim-like"? > * What do you all think of the idea of font-face customizations for > the mode? Not a huge fan, to be honest. Ideally, we'd have a rich common set of font-lock faces that are consistently applied across all programming modes. And thus consistently signal syntactic elements in a language-agnostic way (where possible). The users can then customize the font-lock faces, if they so wish.