From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.devel Subject: Re: scheme font-locking: (define ((foo ...) bar) ...) Date: Sat, 10 Jul 2010 11:02:35 +0200 Message-ID: <87hbk7aevo.fsf@gmail.com> References: <87mxu0stj9.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278752622 1840 80.91.229.12 (10 Jul 2010 09:03:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Jul 2010 09:03:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 10 11:03:40 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OXVyF-0001Ll-OW for ged-emacs-devel@m.gmane.org; Sat, 10 Jul 2010 11:03:40 +0200 Original-Received: from localhost ([127.0.0.1]:35311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXVyF-0006dJ-9J for ged-emacs-devel@m.gmane.org; Sat, 10 Jul 2010 05:03:39 -0400 Original-Received: from [140.186.70.92] (port=57219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXVy8-0006bo-HB for emacs-devel@gnu.org; Sat, 10 Jul 2010 05:03:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXVy7-0000vc-9g for emacs-devel@gnu.org; Sat, 10 Jul 2010 05:03:32 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:38087) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXVy7-0000vP-5C for emacs-devel@gnu.org; Sat, 10 Jul 2010 05:03:31 -0400 Original-Received: by fxm20 with SMTP id 20so1712371fxm.0 for ; Sat, 10 Jul 2010 02:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=8clRtUyLuZQDwF+IWdJBf8jSOAIuv8hMM/2p2doY1iU=; b=LqtJCLCcueML6KCfG8D7q76gfV03sFYVI2d0Z5CxgsYoJjA2eTRpK2cLvIhgaDwT3Z ZEn+1v0mJV8iDgLVdftrvfxDydBA8wHX/VCIotI1rgNzZh2FfsqbUXtD2MeLH7hIJToi la66g3BoOEUCFhiGv8PmJCiTmg8QNDRnurQFs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=gDdiuqew+B59Q4HxDlhGNKnqHe5pdfcnaOokULJy/ZCjhDwAURgWA9mjDBFdA6uVI8 DWuI0/gUFnYdkjx+6+wUGJVs7mWQ/IJ/5S+X4gCn8gISeizz0DlTN/302Yx9GPunWkYR Wa+uam8LrAfp0xwR9xxL5tWvA8dht8BlNXqKE= Original-Received: by 10.223.123.211 with SMTP id q19mr9273273far.63.1278752609411; Sat, 10 Jul 2010 02:03:29 -0700 (PDT) Original-Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id q24sm3854357faa.42.2010.07.10.02.03.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Jul 2010 02:03:28 -0700 (PDT) In-Reply-To: <87mxu0stj9.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Fri, 09 Jul 2010 14:56:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126984 Archived-At: Thien-Thi Nguyen writes: > In Scheme mode, Emacs font locks the form: > > (define (in-vicinity-proc dir) > (lambda (filename) > (in-vicinity dir filename))) > > with =E2=80=98define=E2=80=99 as a keyword and =E2=80=98in-vicinity-proc= =E2=80=99 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 =E2=80=98define=E2=80=99. I have locally modi= fied > =E2=80=98scheme-font-lock-keywords-1=E2=80=99 to change "zero or one pare= ns" > 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] =C5=A0t=C4=9Bp=C3=A1n