On Wed, Apr 27 2005, Ralf Angeli wrote:
> * Reiner Steib (2005-04-27) writes:
>> On Wed, Apr 27 2005, Ralf Angeli wrote:
>>
>>> We should define aliases if possible. I don't want to exasperate all
>>> the people who customized `font-latex-title-*-face'. This should
>>> work:
>>> (put 'font-latex-title-*-face 'face-alias 'font-latex-sectioning-*-face)
>>
>> As we have additional -0 and -5 faces, is it worth to pretend full
>> compatibility?
>
> IMO it is better to make changes as little disruptive as possible;
> taking into account the effort one has to invest of course.
It doesn't work for me: I've customized (and saved)
font-latex-title-3-face (background pink), but
font-latex-sectioning-3-face doesn't have this property (tested with
Emacs CVS, Emacs 21.3, XEmacs 21.4.17). What am I doing wrong?
--8<---------------cut here---------------start------------->8---
(font-latex-make-sectioning-faces font-latex-sectioning-max)
;; These aliases should be removed after the next release:
;; Provide face aliases for version 11.50-11.55:
(dolist (num '(1 2 3 4))
(let ((old (intern (format "font-latex-title-%s-face" num)))
(new (intern (format "font-latex-sectioning-%s-face" num))))
;; Does this work at all?
(when t; (get old 'saved-face)
(put old 'face-alias new))))
--8<---------------cut here---------------end--------------->8---
If desired, we could also check for a saved-value (see the comment)
here in order not to clutter `M-x customize-face RET font-latex- TAB'
too much.
> I don't think we can do much about the -0 and -5 faces, though. But
> we might alias `font-latex-title-fontify' to
> `font-latex-fontify-sectioning' as well. We can remove this again
> right after the next release which should be accompanied by a
> description of the changes and that compatibility will go away.
I have committed font-latex.el and will change auctex.texi and
changes.texi accordingly.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel