[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: custom-set-faces overridden?
From: |
Drew Adams |
Subject: |
RE: custom-set-faces overridden? |
Date: |
Sun, 1 Jan 2006 13:56:43 -0800 |
What should also work, I believe, is to put:
(put 'foo-face 'face-alias 'foo)
for all these faces _before_ the custom-set-faces.
That might be better if you want your code to work with
Emacs versions before 22.
Thanks. Received this after I already applied. Shouldn't this
also be done in the Emacs code? Isn't that common practice for
name changes, especially for names of user-visible (and
customizable!) thingies?
Well, I should have looked at the June snapshot code first. Emacs does do
the face aliasing, but the corresponding variables still have `-face' in
their names. Makes sense.
;; backward-compatibility alias
(put 'diff-index-face 'face-alias 'diff-index)
(defvar diff-index-face 'diff-index)