From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Request for changing regexp for `&' lambda list keywords Date: Tue, 24 Jan 2006 12:44:04 -0700 Message-ID: References: <87hd7vghae.fsf@GNUlot.localnet> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138142239 8839 80.91.229.2 (24 Jan 2006 22:37:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 22:37:19 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 24 23:37:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F1Wmj-0006Re-Vm for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2006 23:37:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1Wai-0001zh-Sy for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2006 17:24:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1WYx-0001Xe-Ha for emacs-devel@gnu.org; Tue, 24 Jan 2006 17:22:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1WYp-0001Td-Gu for emacs-devel@gnu.org; Tue, 24 Jan 2006 17:22:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1WYo-0001SI-Mk for emacs-devel@gnu.org; Tue, 24 Jan 2006 17:22:46 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1F1UEz-0004YV-WD for emacs-devel@gnu.org; Tue, 24 Jan 2006 14:54:10 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F1U5h-0003Vo-0d for emacs-devel@gnu.org; Tue, 24 Jan 2006 20:44:33 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 20:44:33 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Jan 2006 20:44:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <87hd7vghae.fsf@GNUlot.localnet> 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:49497 Archived-At: Tobias C. Rittweiler wrote: > Hi Emacs-hackers, > > the regexp responsible for recognizing lambda list keywords looks > currently like this: > > ;; ELisp and CLisp `&' keywords as types. > ("\\&\\sw+\\>" . font-lock-type-face) > > (part of LISP-FONT-LOCK-KEYWORDS-2 in `font-lock.el') > > I'd like to propose changing the regexp to "\\<\\&\sw+\\>" such that > symbols like, for instance, the symbol `FROB-&KEY-PARAMETERS' that > surely names a function, don't get fontified just right after the > ampersand in FONT-LOCK-TYPE-FACE. Either way, why does the ampersand need to be escaped with a backslash? -- Kevin Rodgers