unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Simon South <ssouth@simonsouth.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Delphi, Pascal, delphi-mode, pascal-mode, and free software
Date: Mon, 13 Sep 2010 17:49:39 +0200	[thread overview]
Message-ID: <jwvlj75tzwk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1284375705.2262.4.camel@hamlet.localdomain> (Simon South's message of "Mon, 13 Sep 2010 07:01:45 -0400")

>> 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



      reply	other threads:[~2010-09-13 15:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12 16:03 Delphi, Pascal, delphi-mode, pascal-mode, and free software Stefan Monnier
2010-09-10 11:05 ` Stefan Monnier
2010-09-10 11:36   ` Simon South
2010-09-10 12:48     ` Stefan Monnier
2010-09-10 13:25       ` Simon South
2010-09-11  9:56         ` Stefan Monnier
2010-09-13 10:50           ` Simon South
2010-09-11  5:30       ` Richard Stallman
2010-09-11  9:28         ` Simon South
2010-09-11 10:52           ` Stefan Monnier
2010-09-13 11:01             ` Simon South
2010-09-13 15:49               ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlj75tzwk.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ssouth@simonsouth.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).