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

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

Re: face-alias issues


From: Miles Bader
Subject: Re: face-alias issues
Date: Fri, 24 Jun 2005 16:35:09 +0900

On 6/24/05, Luc Teirlinck <address@hidden> wrote:
>    Alternatively, if we use a function deffacealias instead of the
>    current method, it could simply check if the old face had been
>    modified and transfer the mods to the new face.
> 
> Then you would have to autoload the deffacealias.  For what I want to
> do, the alias has to be known to Custom when the `custom-set-faces'
> form is evaluated in .emacs.

I don't think so: if the deffacealias doesn't get loaded, then the old
face customization remains in place, and harms nothing (because it
isn't used).  If the file containing the deffacealias is later loaded,
it can fix up the info for its particular face, which is a simple job.

So old face customizations would gradually get cleaned up, except
those for packages that the user doesn't use anyway (and those don't
matter).

I think adding deffacealias is a good idea in general anyway -- we
could initially define it to simply do exactly what the existing `put'
forms do.

-Miles
-- 
Do not taunt Happy Fun Ball.




reply via email to

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