all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Štěpán Němec" <stepnem@gmail.com>
To: Thien-Thi Nguyen <ttn@gnuvola.org>
Cc: emacs-devel@gnu.org
Subject: Re: scheme font-locking: (define ((foo ...) bar) ...)
Date: Sat, 10 Jul 2010 11:02:35 +0200	[thread overview]
Message-ID: <87hbk7aevo.fsf@gmail.com> (raw)
In-Reply-To: <87mxu0stj9.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Fri, 09 Jul 2010 14:56:26 +0200")

Thien-Thi Nguyen <ttn@gnuvola.org> writes:

> In Scheme mode, Emacs font locks the form:
>
> (define (in-vicinity-proc dir)
>   (lambda (filename)
>     (in-vicinity dir filename)))
>
> with ‘define’ as a keyword and ‘in-vicinity-proc’ as a function name,
> using font-lock-{keyword,function-name}-face, respectively.  That's fine.
> However, for this form:
>
> (define ((in-vicinity-proc dir) filename)
>   (in-vicinity dir filename))

Out of curiosity -- how standard is this? I've never seen such a
definition before.

> then Emacs font locks only ‘define’.  I have locally modified
> ‘scheme-font-lock-keywords-1’ to change "zero or one parens"
> to "zero or more parens" and that change seems to DTRT.
> Could someone please review the patch below and apply it?

The bug list would have seemed a better place to post the patch.

[patch snipped]

Štěpán



  reply	other threads:[~2010-07-10  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 12:56 scheme font-locking: (define ((foo ...) bar) ...) Thien-Thi Nguyen
2010-07-10  9:02 ` Štěpán Němec [this message]
2010-07-12  7:37   ` Thien-Thi Nguyen
2010-07-12 17:13 ` Glenn Morris
2010-07-12 20:16   ` Thien-Thi Nguyen

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=87hbk7aevo.fsf@gmail.com \
    --to=stepnem@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=ttn@gnuvola.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.