From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Delphi, Pascal, delphi-mode, pascal-mode, and free software Date: Mon, 13 Sep 2010 17:49:39 +0200 Message-ID: References: <1284118567.2190.29.camel@hamlet.localdomain> <1284197299.2190.95.camel@hamlet.localdomain> <1284375705.2262.4.camel@hamlet.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284393019 6183 80.91.229.12 (13 Sep 2010 15:50:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Sep 2010 15:50:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Simon South Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 13 17:50:17 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OvBIK-0004Og-Pp for ged-emacs-devel@m.gmane.org; Mon, 13 Sep 2010 17:50:13 +0200 Original-Received: from localhost ([127.0.0.1]:60284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvBIK-0004RS-As for ged-emacs-devel@m.gmane.org; Mon, 13 Sep 2010 11:50:12 -0400 Original-Received: from [140.186.70.92] (port=47136 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvBIC-0004Qa-3f for emacs-devel@gnu.org; Mon, 13 Sep 2010 11:50:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvBIB-0000Ya-07 for emacs-devel@gnu.org; Mon, 13 Sep 2010 11:50:04 -0400 Original-Received: from impaqm2.telefonica.net ([213.4.138.2]:32835) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvBIA-0000Y4-RB for emacs-devel@gnu.org; Mon, 13 Sep 2010 11:50:02 -0400 Original-Received: from IMPmailhost1.adm.correo ([10.20.102.38]) by IMPaqm2.telefonica.net with bizsmtp id 6FJ61f00Q0piX6q3MFq0B8; Mon, 13 Sep 2010 17:50:00 +0200 Original-Received: from ceviche.home ([88.12.131.221]) by IMPmailhost1.adm.correo with BIZ IMP id 6Fpz1f00G4mlLJY1hFq0t2; Mon, 13 Sep 2010 17:50:00 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id ABC496637B; Mon, 13 Sep 2010 17:49:39 +0200 (CEST) In-Reply-To: <1284375705.2262.4.camel@hamlet.localdomain> (Simon South's message of "Mon, 13 Sep 2010 07:01:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130059 Archived-At: >> One thing I'd like to see with delphi.el (other than renaming it) is to >> use "standard" facilities like the syntax-table, rather than do all the >> parsing by hand. >> Do you have any idea what that would take? > No, this is all still pretty new to me. Is there a guide to best > practices for major modes anywhere, or could you suggest a "good" mode I > could use as an example? I've been working on octave-mod.el to make it use generic facilities (some of them brand new), so you could use it as a guide. I don't vouch for the whole octave-mod.el file, but at least the syntax-table, buffer-navigation, and indentation should be a reasonably good example. You can try it on test/indent/octave.m. If you have a good Object Pascal file to use, we could add it as test/indent/opascal.pas which could also be used for regression tests (e.g. of the indentation code). Stefan