unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Miles Bader <miles@gnu.org>
Subject: Re: parens matching not matching all matching parens
Date: Sat, 18 Sep 2004 09:25:48 +0900	[thread overview]
Message-ID: <87vfec778z.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: jwvekl0zrqb.fsf-monnier+gnu.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The generic-mode stuff is fine for very very simple stuff, but nothing else.
> And sadly it doesn't naturally extend from one step to the other.

Oh, I don't know, define-generic-mode lets you specify a list of "mode
init functions" which you can use to set stuff like syntax-tables.  The
one generic mode I've made adds a syntax table that way, and I plan to
add a simple indentation engine in a similar way.

The main benefit of using generic-mode AFAICS is that it offers a pretty
painless way to avoid the baroqueness of font-lock -- you just give it a
simple list of "language keywords" and set up your syntax table
correctly and it does everything else.

-Miles
-- 
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over.  --Ian Wolff

  reply	other threads:[~2004-09-18  0:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 19:19 parens matching not matching all matching parens Arjan Bos
2004-09-16 19:42 ` J. David Boyd
     [not found] ` <mailman.3032.1095364141.1998.help-gnu-emacs@gnu.org>
2004-09-16 20:19   ` Arjan Bos
2004-09-16 21:45     ` Miles Bader
2004-09-17 17:25       ` Arjan Bos
2004-09-17 18:17         ` Stefan Monnier
2004-09-18  0:25           ` Miles Bader [this message]
2004-09-17 18:22         ` Stefan Monnier
2004-09-17 18:36           ` Arjan Bos
2004-09-17  2:18 ` Greg Hill
     [not found] ` <mailman.3063.1095387904.1998.help-gnu-emacs@gnu.org>
2004-09-17 17:29   ` Arjan Bos
2004-09-17 20:43     ` Greg Hill

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=87vfec778z.fsf@tc-1-100.kawasaki.gol.ne.jp \
    --to=miles@gnu.org \
    /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.
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).