Re: latest auctex CVS fails to load under xemacs 21.5.19

Ralf Angeli <[email protected]> Tue, 15 Mar 2005 21:59:17 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Artemio Gonzalez Lopez (2005-03-15) writes:

> Visiting a tex file in the latest CVS auctex under xemacs 21.5.19 
> (CVS-20050227) fails to load auctex, and produces the following backtrace:
>
> (1) (file-mode-spec/warning) Error in File mode specification: Wrong 
> type argument: stringp, 12
>
> Backtrace follows:
>
>    string-match("^[0-9]+" 12)
>    # bind (base-size-string face-name num --dotimes-temp--50522 i)
>    font-latex-make-title-faces()

Oh great.  `font-size' can return a string _and_ a number?  The
function unfortunately is not documented.  But looking at
`x-font-create-object' it seems that it may return a number if the
font name includes the size in points and a string if this is not the
case but the size in pixels is given.  And to make it even more
interesting it can return nil if no size is specified.

I checked a fix into CVS.  Thanks for the report.

-- 
Ralf