From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ingo Lohmar Newsgroups: gmane.emacs.devel Subject: Re: :extend t inheritance Date: Thu, 24 Oct 2019 19:39:20 +0200 Message-ID: <87v9sem4af.fsf@kenko.localhost.com> References: <87zhhrmcaq.fsf@kenko.localhost.com> <83o8y6xnmn.fsf@gnu.org> <87v9serw5g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="11511"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 24 20:14: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 1iNhcj-0002n4-69 for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2019 20:14:13 +0200 Original-Received: from localhost ([::1]:49904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNhch-0001Pc-Pc for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2019 14:14:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNh55-0008KT-4L for emacs-devel@gnu.org; Thu, 24 Oct 2019 13:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNh53-00010A-1F for emacs-devel@gnu.org; Thu, 24 Oct 2019 13:39:26 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:55922) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNh52-0000zn-Hn for emacs-devel@gnu.org; Thu, 24 Oct 2019 13:39:24 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 296F4160063 for ; Thu, 24 Oct 2019 19:39:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1571938762; bh=ml5BgYQuX6BBktSTWQNuWxapDrrT+/Ugl+TYTXY+3gQ=; h=From:To:Cc:Subject:Date:From; b=NQDNja2GHGcwJ/T5HeYuy9jEOxEhCfHQSixO1QxYf32BQffQEaC9vtuFoIYF9Lp5h kRKWZvbV7kqjKpw7LPxhCg6e47JSOxVddvN/lTBkfBcREYvNcz2Z54yW6ymekM3F7Q EuenyAykWtV7BMr/UImLjcvRfHkaLctB2zdFJwnFI5u7DISAc4/c0TLAkzSc2k31Xa 0NYpa6p2mDU64RZVsXXqPi0FZQ/s/3VIlT8NZdCvsmvHbF+N1CnsnP7U8Alup0eW1H PHqtezB7HCpaxT8MMD1XMzV+i7GhkOO0XKL7pzUQgbIq7Wmhi3L8XyceikAgYU4mc7 k9oEWlaqfctJA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 46zZHX4rbhz6tmJ; Thu, 24 Oct 2019 19:39:20 +0200 (CEST) In-Reply-To: <87v9serw5g.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.65 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:241394 Archived-At: On Thu, Oct 24 2019 16:46 (+0300), Eli Zaretskii wrote: > 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? Sorry, my mistake: I forgot a) that I had known about face merging before, and b) the behavior described in the text seemed to fit what I was seeing with inheritance of the :extend attribute. On Thu, Oct 24 2019 17:38 (+0200), K=C3=A9vin Le Gouguec wrote: > From emacs -Q: > > Add and remove a bunch of lines in a version-controlled file, and open a > *vc-diff* buffer with C-x v =3D. Both diff-added and diff-removed faces > extend beyond EOL since by default their :extend attribute is set to t. > > Then evaluate: > > (set-face-extend 'diff-added 'unspecified) > (set-face-extend 'diff-removed 'unspecified) > (set-face-extend 'diff-changed t) > > Intended effect: none, since diff-added and diff-removed inherit > diff-changed. > > Actual effect: diff-added and diff-removed no longer extend beyond EOL. Thanks a lot for this recipe!