all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Richard Stallman <rms@gnu.org>
Cc: lennart.borgman@gmail.com, emacs-devel@gnu.org
Subject: Re: C Mode: acceleration in brace deserts.
Date: Fri, 4 Dec 2009 11:37:26 +0000	[thread overview]
Message-ID: <20091204113726.GA1456@muc.de> (raw)
In-Reply-To: <E1NGQl4-0001xu-7q@fencepost.gnu.org>

Hi, Richard,

On Fri, Dec 04, 2009 at 12:31:10AM -0500, Richard Stallman wrote:
>     Short brusque answer: no - it[enhancement of c-parse-state]'s ~1300
>     lines of code, much of it arcane.

> Could it be rewritten into a modular facility?

I'm not sure what you mean here.  c-parse-state deals essentially with
the braces and any "lesser" parens in "brace-block" languages, and it's
tightly optimised, as tight as I could make it.  It makes extensive use
of brace/paren syntax (parse-partial-sexp and scan-lists) and plays dirty
tricks with category text properties.

Are you thinking of somehow parametrising it so that it could deal with
"braces" which are, say, keyword tokens like Pascal's BEGIN and END?  I
think this would be possible, but not worthwhile - it would probably be
better to write this from scratch, possibly along similar lines.

-- 
Alan Mackenzie (Nuremberg, Germany).




  reply	other threads:[~2009-12-04 11:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 16:21 C Mode: acceleration in brace deserts Alan Mackenzie
2009-12-03 16:26 ` Lennart Borgman
2009-12-03 16:59   ` Alan Mackenzie
2009-12-03 17:22     ` Lennart Borgman
2009-12-03 19:39       ` Alan Mackenzie
2009-12-03 19:57         ` Lennart Borgman
2009-12-04 10:34           ` Lennart Borgman
2009-12-04 11:03             ` Lennart Borgman
2009-12-04 11:56               ` Alan Mackenzie
2009-12-04 12:03                 ` Lennart Borgman
2009-12-04 12:18                   ` Lennart Borgman
2009-12-04 13:54             ` Alan Mackenzie
2009-12-04 19:03               ` Lennart Borgman
2009-12-05  2:11                 ` Lennart Borgman
2009-12-05  4:49                   ` Stefan Monnier
2009-12-04  5:31     ` Richard Stallman
2009-12-04 11:37       ` Alan Mackenzie [this message]
2009-12-05  6:50         ` Richard Stallman
2009-12-03 17:09 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=20091204113726.GA1456@muc.de \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=rms@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.