help-octave
[Top][All Lists]
Advanced

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

Re: Octave and Xemacs


From: Stephen Eglen
Subject: Re: Octave and Xemacs
Date: Tue, 7 Mar 2000 19:48:15 +0000 (GMT)

 > I also know nothing about lisp, but I managed the problem without
 > just turning of the errormessages.
 > I did the following:
 >   ;; Fontify all builtin operators.
 >    (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
 >       'font-lock-builtin-face)
 > changed to
 >    (cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
 >       'font-lock-preprocessor-face)
 > 
 > now it works fine.
 > But if one knows how to define the face   font-lock-builtin-face
 > it would be better, maybe.

ah, okay, it seems that whereas Emacs has font-lock-builtin-face
XEmacs has instead the preprocessor version; XEmacs has the lines:

;; #### FSF has font-lock-builtin-face.

(defface font-lock-preprocessor-face
  '((((class color) (background dark)) (:foreground "steelblue1"))
    (((class color) (background light)) (:foreground "blue3"))
    (t (:underline t)))
  "Font Lock Mode face used to highlight preprocessor conditionals."
  :group 'font-lock-faces)


If this is all that's causing the warnings under XEmacs, it is easy to
fix for both versions by just having a little check along the lines
of:

(cons ...
(if (boundp 'font-lock-builtin-face)
    'font-lock-builtin-face
  'font-lock-preprocessor-face) )

I'll test that later under both XEmacs and Emacs; if that works okay
under both, I'll update the Emacs files at gnu.org and send John the
patch.

Stephen



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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