[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scheme font-locking: (define ((foo ...) bar) ...)
From: |
Štěpán Němec |
Subject: |
Re: scheme font-locking: (define ((foo ...) bar) ...) |
Date: |
Sat, 10 Jul 2010 11:02:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Thien-Thi Nguyen <address@hidden> 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