From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Arjan Bos Newsgroups: gmane.emacs.help Subject: Re: Fill-paragraph for javadoc in netrexx mode Date: Tue, 23 Sep 2003 23:38:02 +0200 Organization: Wanadoo Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3f70bd37$0$34888$1b62eedf@news.wanadoo.nl> References: <3f6f5004$0$428$1b62eedf@news.wanadoo.nl> Reply-To: Arjan.Bos@icu.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064353636 2438 80.91.224.253 (23 Sep 2003 21:47:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 21:47:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 23 23:47:13 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1v05-0007gZ-00 for ; Tue, 23 Sep 2003 23:47:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1uyV-0004ba-AQ for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Sep 2003 17:45:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsgate.cistron.nl!news2.euro.net!postnews1.euro.net!news.wanadoo.nl!not-for-mail User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 35 Original-NNTP-Posting-Date: 23 Sep 2003 21:38:00 GMT Original-NNTP-Posting-Host: i0372.vwa.wanadoo.nl Original-X-Trace: 1064353080 willi.euronet.nl 34888 194.134.205.116:28729 Original-X-Complaints-To: abuse@wanadoo.nl Original-Xref: shelby.stanford.edu gnu.emacs.help:116819 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12745 Stefan Monnier wrote: > >>>Do I need to copy the relevant elisp-code to my own mode? >> >>I think borrowing would be best in this case as jde is kinda heavy to >>include, although its great for java development. > > > I'd say, make a derived-mode: > > (define-derived-mode netrexx-mode java-mode "NetRexx" > "A mode to edit NetRexx files." > ...) > > and in the `...' part, just change whatever needs to behave differently. > You can derive from jde-mode if you prefer, of course. > > > Stefan "The derived-mode guy" Derived Sir, Is there a kind of tutorial or example I can shamelessly steal from that shows how to do a derived-mode? By the way, I already rolled some 1100 lines of elisp and doc-strings, so I guess I'm a bit passed the derived-mode station. So I'll figure out the requirements for fill-paragraph for javadoc and build my own. That way I might learn a bit more about lisp. And yes, I used the Source, Luke ;-) TIA, Arjan