bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37774: 27.0.50; new :extend attribute broke visuals of all themes an


From: Ergus
Subject: bug#37774: 27.0.50; new :extend attribute broke visuals of all themes and other packages
Date: Thu, 17 Oct 2019 14:38:02 +0200
User-agent: NeoMutt/20180716

On Thu, Oct 17, 2019 at 01:36:26PM +0200, Michael Albinus wrote:
Eli Zaretskii <eliz@gnu.org> writes:

Do we have something in defface that we can "recommend" to conditionally
specify this attribute when version >= 27 only (maybe a syntax sugar)?

(if (>= emacs-major-version 27)
    (defface foo...) ; for Emacs 27 and later
  (defface foo...)   ; for Emacs 26 and older

I believe it is more complex. There might be situations foo shall not
extend to EOL, and other situations it should.

The latter case is when foo is used in a "rectangular" context as
explained. You need to introduce a second face foo-extend, and you must
replace all uses of foo by foo-extend where needed.

Best regards, Michael.

Sorry, what do you mean by "rectangular" context?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]