unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* :extend t inheritance
@ 2019-10-23 20:34 Ingo Lohmar
  2019-10-24 13:46 ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Ingo Lohmar @ 2019-10-23 20:34 UTC (permalink / raw)
  To: emacs-devel

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?

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?



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-10-29 14:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23 20:34 :extend t inheritance Ingo Lohmar
2019-10-24 13:46 ` Eli Zaretskii
2019-10-24 15:38   ` Kévin Le Gouguec
2019-10-24 17:39     ` Ingo Lohmar
2019-10-24 22:22   ` Ergus
2019-10-26  1:49   ` Ergus
2019-10-26  7:28     ` Eli Zaretskii
2019-10-26 19:21       ` Ergus
2019-10-26 19:45         ` Eli Zaretskii
2019-10-26 23:13           ` Ergus
2019-10-27  5:51             ` Eli Zaretskii
2019-10-27 11:01               ` Ergus
2019-10-29 14:27                 ` Eli Zaretskii
2019-10-28 21:24               ` Ergus
2019-10-29  3:28                 ` Eli Zaretskii
2019-10-26  8:55     ` Ingo Lohmar
2019-10-26 11:41       ` Ergus
2019-10-26 11:49         ` Ingo Lohmar

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).