From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: :extend t inheritance Date: Fri, 25 Oct 2019 00:22:31 +0200 Message-ID: <20191024222229.5v6z3rlwjzcvqp7i@Ergus> References: <87zhhrmcaq.fsf@kenko.localhost.com> <83o8y6xnmn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207197"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: NeoMutt/20180716 Cc: Ingo Lohmar , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 25 00:23:13 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 1iNlVf-000rh5-D3 for ged-emacs-devel@m.gmane.org; Fri, 25 Oct 2019 00:23:11 +0200 Original-Received: from localhost ([::1]:52160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNlVe-0006aC-96 for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2019 18:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46468) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNlVY-0006a4-9O for emacs-devel@gnu.org; Thu, 24 Oct 2019 18:23:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNlVW-0000ai-8j for emacs-devel@gnu.org; Thu, 24 Oct 2019 18:23:03 -0400 Original-Received: from sonic303-21.consmr.mail.ir2.yahoo.com ([77.238.178.202]:45785) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNlVW-0000aE-2Q for emacs-devel@gnu.org; Thu, 24 Oct 2019 18:23:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1571955779; bh=hBctziqthmR6+ujHfZ4AM8mdvqbYSLH7bU9SzPYYv8o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=CtYQUhhTpRyH4rc3dn3vor1hXsAWV9v8Yf/NLMwni0nDkFUWxuFCLrrnmtp8/+6bg+LXL1uZafAjpbfRqeHF9DRDl17LmVTRi0x5BnL8sO85kO2oik95HKGcuZZBEQX4+KAAiLpMBuGJxy3NYpZ9xvycjBnZIueAgiApYcKs4ThnyPAansLCVBTBYgOJPeHI8JWgJYmse6a26DooETb0VDisyoxiFDqOiLaIQGKNHwAhAROi+tDRyB4LIs1omcG9to50U+VRZfRjcTRNPVB8rOYKi6Obvl1E50YcLNc4hVm8buNzzF4krz4EXUxOx86tRsMpOmVd9m0+Mpw2uvRP0Q== X-YMail-OSG: fwsHzCIVM1kKc8ERtSbDUK1CIUy_SHX6jkOstdAFP9Rn9703e8zi7ye78yaEjLC w6KidxTSvOcKrTZRSdm4q0BIGdFIkPG1m3T82qPKHzkT2kKYSh.FFfMaiZ3FqdegT9IHGCbhlG9L V23xsgResI.wk1u3bVVRnX9aWpE6R7ivw6ZRdx64SETzHznIfiV4yVijxUNIJ9SF9CPV1.cKccoZ 4Z11srnoNiFjFjtlLCtOGRy7GME8x22EQ.qZ.bLZdDCKCVLOzMI1XAjWmfJInvP.qHSHMQN76L5_ yiCEHLV_SNMMYHN2lI85EWL4gYW1xAWm0BRf6rTsE5vJBe.xh8VHVhdXzGJI8QCKiAAltXz6VR4k Q7gDaX248VlqEkdVGmfXFzc6D8ZcCdztAqmtLfGxmp4iZHEKR.QjeFaigi4RLf.GRfZMjCro_mx3 mQz7taYNAjhLxMgmaBwGyLe9jrIIRlTgy3.UHNqofKKdUdykaDBoqfBdsG38Wbli.RvxrtkOdTKm KilOvKVTvTK4vkXMIFKoqbg3NTFnPOI4FKRtw0hv7JobLFRvEeipwfR5ub8F7zKVIiqVAprZN7Va HEiw.EfyIuXGJi.g2tHqZoLPdEX__UxdOyscsw0iR9X6942LH3lhZcXg3rW3OfsfYuHyZaZPyyJ. jrSFPLCVZizG7WmYZJGg_FD4AFBV1wIehsuJOC7i0oOD4a3fQf7jMCy_Iv4JYaB_5_sEHnynFKVy cdeM4Vx62wyWBstyfpKFIAFedUlpQYWhKQmU8hCyVoaPe9AV1wAWKGeQS9l5a4CpgVzApfELgwGb nEeJ4ghJe9V6zzVC_IZAZ6U33unrlBp.p3IHSHtLK7 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Thu, 24 Oct 2019 22:22:59 +0000 Original-Received: by smtp408.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bc7aee4d399a56a3f779d44b3c03725b; Thu, 24 Oct 2019 22:22:56 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83o8y6xnmn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 77.238.178.202 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:241397 Archived-At: On Thu, Oct 24, 2019 at 04:46:08PM +0300, Eli Zaretskii wrote: >> 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? > Hi: I just fount that it is not actually. Lets say when calling merge_face_ref there is a detail missing for the inherit case. I am looking into it. >Thanks. >