From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: :extend t inheritance Date: Thu, 24 Oct 2019 16:46:08 +0300 Message-ID: <83o8y6xnmn.fsf@gnu.org> References: <87zhhrmcaq.fsf@kenko.localhost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="245492"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Ingo Lohmar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 24 15:50:23 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNdVO-0011hv-HS for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2019 15:50:22 +0200 Original-Received: from localhost ([::1]:43108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNdVM-0004zH-Hy for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2019 09:50:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNdRY-00055w-8T for emacs-devel@gnu.org; Thu, 24 Oct 2019 09:46:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iNdRX-0007JI-Ff; Thu, 24 Oct 2019 09:46:23 -0400 Original-Received: from [176.228.60.248] (port=3392 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iNdRW-0004HT-RC; Thu, 24 Oct 2019 09:46:23 -0400 In-reply-to: <87zhhrmcaq.fsf@kenko.localhost.com> (message from Ingo Lohmar on Wed, 23 Oct 2019 22:34:05 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:241385 Archived-At: > From: Ingo Lohmar > Date: Wed, 23 Oct 2019 22:34:05 +0200 > > I am messing around with the face :extend attribute and I am wondering > about sth. The elisp manual says > > The value should be ‘t’ to display the empty space between end of > line and edge of the window using this face, or ‘nil’ to not use > this face for the space between the end of the line and the edge of > the window. When Emacs merges several faces for displaying the > empty space beyond end of line, only those faces with ‘:extend’ > non-‘nil’ will be merged. > > I briefly read the original discussion of this feature, but did not find > a reason for this peculiar behavior when it comes to inheritance; if > there was a reason given, could someone point me to it? I don't think I understand what you are saying or asking. The text that you cite doesn't mention inheritance at all. Could you clarify the issue? > Background: I manage all faces without themes on my own, and I rely > heavily on inheritance. As it stands now, IIUC (and according to some > tests), I have to specify :extend t on ~30 faces (mostly diff, ediff, > smerge, magit-ediff and -blame etc) that all derive from 3 or 4 base > faces. It seems to me that this renders the whole point of inheritance > moot. > > My natural reaction would have been to specify :extend t on some base > faces, and for faces that inherit from them, explicitly say :extend nil > only for those faces for which I do not want that extension. Isn't that > at least as flexible, and more in the spirit of inheriting attributes? Are you saying that the :extend attribute isn't inherited via :inherit? Or are you saying something else? In any case, could you please show a recipe or an example of what you tried and how the results didn't match your expectations? Thanks.