Re: latest auctex CVS fails to load under xemacs 21.5.19
David Kastrup <[email protected]> Tue, 15 Mar 2005 22:50:01 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Ralf Angeli <[email protected]> writes: > * 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 suppose this is one of those cases Stephen was referring to when he said that XEmacs chose not to follow Emacs' deficient APIs in all cases. Sorry, could not resist. I tried. Wouldn't do. I almost think this might be worth filing a bug report: if the function is not documented and returns inconsistent stuff, chances are that it is the completely wrong interface to use and people on the xemacs-beta list might tell you what to do instead. We _do_ have font size calculating code in preview/prv-xemacs.el. It might be worth taking a look there: AFAIR, this worked pretty well consistently. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum