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: Restricting 'add-hook to a specific file extension Date: Mon, 06 Mar 2006 02:59:10 -0000 Organization: Alaska Internet Solutions Message-ID: References: <87k6b8o9sg.fsf-monnier+gnu.emacs.help@gnu.org> Reply-To: tim@johnsons-web.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1141687169 11478 80.91.229.2 (6 Mar 2006 23:19:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:19:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:19:25 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 1FGOye-0008Q5-UG for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:18:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGOye-0001An-5B for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:18:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!sn-xt-sjc-02!sn-xt-sjc-09!sn-post-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: 39 Original-Xref: shelby.stanford.edu gnu.emacs.help:137952 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:33581 Archived-At: On 2006-03-05, Stefan Monnier wrote: >> One solution is derived-mode, but I've had no luck with it. > > Try harder. No matter how hard it looks, it'll be easier than trying to fix > the problems you'll get with the other approach. Stefan, I'm going to make you an offer, but first FYI: I code for a living, I've got 6 kids, 10 brother and sisters, aged parents and I belong to 2 churches. My R&D time is *very* limited. Your name is all over the place when I google keywords related to this topic, and I'm sure that you are an authority on this topic. So here's the offer: I'd *like* to create a derived-mode for the newlisp language, which is a lisp variant. I want it to be cross-compatible to Xemacs (which doesn't support font-lock-add-keywords). Give me a hand (via this newsgroup) and I will give you full credit for the results. I don't care about the credit. I just want to make it work. If you agree, and should you also think that this subject should expand to a tutorial, howto or wike component I will do the grunt work, documentation, whatever. I moved from vim to emacs a little over a year ago, I have found customizing for programming modes far more difficult than in vim and from my research in newsgroups and googling, I believe that I'm not the only one. We could contribute significantly to the literature, methinks. Thanks tim -- Tim Johnson http://www.alaska-internet-solutions.com