auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Re: Renaming font-latex-title-fontify and font-latex-titl


From: Reiner Steib
Subject: [AUCTeX-devel] Re: Renaming font-latex-title-fontify and font-latex-title-N-face
Date: Thu, 28 Apr 2005 15:11:06 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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/





reply via email to

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