From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paulo Jorge Matos Newsgroups: gmane.emacs.help Subject: Creating new major mode Date: Tue, 23 Sep 2008 10:28:22 +0100 Message-ID: <48D8B6B6.3020900@soton.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222162050 8915 80.91.229.12 (23 Sep 2008 09:27:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 09:27:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 23 11:28:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ki4By-000734-PI for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 11:28:23 +0200 Original-Received: from localhost ([127.0.0.1]:50293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki4Aw-0000s3-7l for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 05:27:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ki4AS-0000rx-3L for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 05:26:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ki4AQ-0000rY-2S for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 05:26:46 -0400 Original-Received: from [199.232.76.173] (port=38615 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki4AP-0000rV-PV for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 05:26:45 -0400 Original-Received: from ik-out-1112.google.com ([66.249.90.177]:33403) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ki4AP-0003vL-89 for help-gnu-emacs@gnu.org; Tue, 23 Sep 2008 05:26:45 -0400 Original-Received: by ik-out-1112.google.com with SMTP id c21so1217886ika.2 for ; Tue, 23 Sep 2008 02:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding:sender; bh=EN11870oBLV3hBBQvu1wKvAe3U/ZuU1eTo8PrSDKha0=; b=Ca6ZInnu6cNQU0XA2nfhHQ/dG2GJin7spyYxmFJq/vOKxy8iP1iKwAAwV2hR4x0yol zM2/gqkfM10gobuD2JxkXDuLYczBIMEiYMIEXkHd1iaY61k+eLbXWFA56KMlPVNvyWrN S9A4MvDoCGUsH/4OmVayegACT7IYk4jZ+k/KI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:sender; b=MFcti7bzRPLdmTEOEH+TuLde81+2oGrFGH/2JTR63LQ0l/4OaP4fGtbj4KL17nwsYG XvPvkkVfeUCDTYkXpycLouSFAP45LRKVK7POIMPzKcD5iiBMsIMceCECxF8CBn31bZf2 Hwkd0uWHGzrmENtyxkecBwyEMotzAF6Tm2VCY= Original-Received: by 10.210.86.10 with SMTP id j10mr6398533ebb.58.1222162004359; Tue, 23 Sep 2008 02:26:44 -0700 (PDT) Original-Received: from ?152.78.70.70? (pocm06r.ecs.soton.ac.uk [152.78.70.70]) by mx.google.com with ESMTPS id t2sm2663444gve.9.2008.09.23.02.26.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Sep 2008 02:26:43 -0700 (PDT) User-Agent: Thunderbird 2.0.0.16 (X11/20080905) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57940 Archived-At: Hello, I have been working on a new major mode and it is striking me that, for example, lisp-mode doesn't use generic-mode or derived-mode. It seems to define just a couple of functions which set specific parameters. When should generic-modes or derived-modes be created? Any tutorial on creating new major modes around? Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK