From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers, improved Date: Sun, 25 Jun 2017 19:02:54 +0300 Message-ID: <8360fkt5qp.fsf@gnu.org> References: <83tw35thxw.fsf@gnu.org> <87y3shcdle.fsf@rosalinde> <83h8z4tb2x.fsf@gnu.org> <87injkxhj7.fsf@rosalinde> <837f00t86l.fsf@gnu.org> <87efu8xefh.fsf@rosalinde> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1498406709 26020 195.159.176.226 (25 Jun 2017 16:05:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Jun 2017 16:05:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 25 18:05:04 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 1dPA1z-00069X-39 for ged-emacs-devel@m.gmane.org; Sun, 25 Jun 2017 18:04:59 +0200 Original-Received: from localhost ([::1]:43081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPA21-0006wS-3c for ged-emacs-devel@m.gmane.org; Sun, 25 Jun 2017 12:05:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPA0H-0006Oe-Dk for emacs-devel@gnu.org; Sun, 25 Jun 2017 12:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPA0C-0001xd-Ih for emacs-devel@gnu.org; Sun, 25 Jun 2017 12:03:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPA0C-0001x8-FJ; Sun, 25 Jun 2017 12:03:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2988 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dPA0B-0002Xo-O5; Sun, 25 Jun 2017 12:03:08 -0400 In-reply-to: <87efu8xefh.fsf@rosalinde> (message from Stephen Berman on Sun, 25 Jun 2017 17:41:38 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:215965 Archived-At: > From: Stephen Berman > Cc: emacs-devel@gnu.org > Date: Sun, 25 Jun 2017 17:41:38 +0200 > > > This shows your face inherits from font-lock-comment-face. It should > > inherit from line-number instead. Or from the default face. When I > > do one of those, the scaling works as you expected. > > Got it, thanks. Is this documented? Probably not. And I'm not really sure how to document this in a way that's useful. In a nutshell, support for face remapping needs to be explicitly coded where we want it, and AFAIK we only coded that in a few places which were reported as bugs. The fact that the face needs to inherit from 'default' is something I know only from personal experience. In particular, Customize somehow tends to break face remapping, unless the inheritance keeps it from doing that. Maybe someone who knows more about faces and their customizations could chime in.