help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Derived Mode 101 HOWTO


From: Tim Johnson
Subject: Re: Derived Mode 101 HOWTO
Date: Mon, 13 Mar 2006 17:57:28 -0000
User-agent: slrn/0.9.8.0 (Linux)

In gnu.emacs.help, you wrote:
> Tim Johnson <address@hidden> writes:
>
>>   Error during redisplay:
>>     (void-variable font-lock-newlisp-keywords-face) [2 times]
>
> I already tried to explain this one in the first part of my earlier
> post (subtly); look closer. Together with the error message you should
> be able to figure it out.

  :-) You're too kind..
      In your post, you provided this below:
;;=======================================================================
 [C-h v font-lock-keywords]

Emacs:

    "FACENAME is an expression whose value is the face name to use."
                    ^^^^^^^^^^^^^^^^^^^^^^
XEmacs:

    "FACE-FORM :== The symbol naming a defined face. | Expression whos
    value is the face name to use. If you want FACE-FORM to be a
    symbol that evaluates to a face, use a form like "(progn sym)"."
;;=======================================================================

 And unfortunately I do not entirely understand. Are you saying that
 XEmacs needs a 'progn form for the face?

 By quoting the face:
(defvar newlisp-font-lock-keywords
   `(,@scheme-font-lock-keywords
     (,(concat "\\<\\(" newlisp-keywords "\\)\\>")
      . 'font-lock-newlisp-keywords-face) ;; quoted here
     )
   "List of newlisp keywords and faces")
Highlighting is now 'enabled' in GNU emacs
   *but*
is now 'disabled' in XEmacs.

Don't know how to resolve ...
thanks
tim

-- 
Tim Johnson <address@hidden>
      http://www.alaska-internet-solutions.com


reply via email to

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