From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Derived Mode 101 HOWTO Date: Mon, 13 Mar 2006 23:57:30 -0000 Organization: Alaska Internet Solutions Message-ID: References: <87mzg2jgdy.fsf-monnier+gnu.emacs.help@gnu.org> <87oe0hijb7.fsf-monnier+gnu.emacs.help@gnu.org> <87wtf0dhv8.fsf-monnier+gnu.emacs.help@gnu.org> <87zmjvbwp6.fsf-monnier+gnu.emacs.help@gnu.org> Reply-To: tim@johnsons-web.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1142366497 3599 80.91.229.2 (14 Mar 2006 20:01:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2006 20:01:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 14 21:01:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJFhl-0001Mq-W5 for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Mar 2006 21:01:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FJFhl-00049X-Aw for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Mar 2006 15:01:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!193.201.147.67.MISMATCH!feeder2.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.199.65.86.MISMATCH!sn-ams-06!sn-xt-ams-04!sn-post-ams-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.0 (Linux) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 48 Original-Xref: shelby.stanford.edu gnu.emacs.help:138147 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33767 Archived-At: Hi Johan: In gnu.emacs.help, you wrote: > Well, 'font-lock-newlisp-keywords-face is an "expression whose value > is the face name to use", but apparently you shouldn't trust the > documentation. (That's one of the reasons i don't use XEmacs. :) I'm a GNU type of person, but we have identified XEmacs as a possible platform for Windows-using clients, since our clients think that it is more modern-looking (on windows) than GNU emacs. We'll see. "modern-looking" is not so important to me. Additionally, I have found this newsgroup *far* more helpful than the XEmacs newsgroup (no offense meant to the other). > Try replacing the last line above with this: > > 0 'font-lock-newlisp-keywords-face) You have put the finishing nail in this piece of the endeavor! ;; code below. See the addition of a second face (defvar newlisp-font-lock-keywords `(,@scheme-font-lock-keywords (,(concat "\\<\\(" newlisp-keywords "\\)\\>") 0 'font-lock-newlisp-keywords-face) (,(concat "\\<\\(" newlisp-user-keywords"\\)\\>") 0 'font-lock-newlisp-user-keywords-face)) "List of newlisp keywords and faces") I want to add keybinding and a menu - I expect that will go more smoothly. :-) Look for Derived Mode 102 HOWTO in a week or so. After I get the mode where I want it, then I will also provide a (hopefully) easy-follow 'template' to add further derived modes with minimum heartburn. Next step is to read much documentation in depth. Thank you Johan. Thank you Stefan. Cheers Tim -- Tim Johnson http://www.alaska-internet-solutions.com