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)
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug