Re: Migrating font faces from xemacs to emacs

Stefan Monnier via Users list for the GNU Emacs text editor <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
> I wonder if it is possible to get the lisp code for the default font
> faces of xemacs so that we could add them to .emacs.d for users who
> want to keep the old ones. I can list the faces with
> "list-faces-display" in xemacs which will show
> Face/Foreground/Background/Fontspec for all the faces.

I think The Right Way to do that would be to create a new `xemacs-theme`
(it could even include non-face settings to try and mimic other aspects
of XEmacs' defaults, since Emacs themes aren't limited to setting up
faces).

It could be a useful package for others as well.

> But is there a way to get this output in lisp format in which xemacs
> stores them when I change sth. from the default, e.g.
>   '(custom-comment-face ((((class grayscale color) (background light))
> (:foreground "green" :background "gray85")))))

I think I'd start by collecting all the `(defface` in XEmacs' source
code which should give you the faces' settings in the right format (tho
it may be necessary to post-process that a bit to account for
differences between the way `defface` worked in XEmacs compared to
current Emacs).


=== Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.