[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: |
Wed, 8 Mar 2000 10:30:30 +0000 (GMT) |
>
> (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.
This simple patch allows font-lock to work for me under both XEmacs
and Emacs, although I've not tested it extensively yet.
2000-03-08 Stephen Eglen <address@hidden>
* octave-mod.el (octave-font-lock-keywords): To font-lock the
builtin operators, use `font-lock-builtin-face' for Emacs
and `font-lock-preprocessor-face' for XEmacs.
*** /tmp/octave-mod.el.~1.1~ Wed Mar 8 10:27:48 2000
--- /tmp/octave-mod.el Wed Mar 8 10:27:48 2000
***************
*** 176,182 ****
'font-lock-keyword-face)
;; Fontify all builtin operators.
(cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
! 'font-lock-builtin-face)
;; Fontify all builtin variables.
(cons (concat "\\<\\("
(mapconcat 'identity octave-variables "\\|")
--- 176,184 ----
'font-lock-keyword-face)
;; Fontify all builtin operators.
(cons "\\(&\\||\\|<=\\|>=\\|==\\|<\\|>\\|!=\\|!\\)"
! (if (boundp 'font-lock-builtin-face)
! 'font-lock-builtin-face
! 'font-lock-preprocessor-face))
;; Fontify all builtin variables.
(cons (concat "\\<\\("
(mapconcat 'identity octave-variables "\\|")
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------