From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: More font-lock keywords for tcl.el Date: Thu, 31 Mar 2005 15:36:56 -0500 Message-ID: References: <87oed1f725.fsf-monnier+emacs@gnu.org> <8vsm2drqcy.fsf@xpc14.ast.cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112301629 31920 80.91.229.2 (31 Mar 2005 20:40:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 20:40:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 22:40:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DH6Qv-0007KG-TZ for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 22:38:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH6hh-0006BH-88 for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 15:55:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DH6fF-0005Aa-JD for emacs-devel@gnu.org; Thu, 31 Mar 2005 15:53:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DH6fB-00059I-Tr for emacs-devel@gnu.org; Thu, 31 Mar 2005 15:53:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DH6fB-000596-Oj for emacs-devel@gnu.org; Thu, 31 Mar 2005 15:53:13 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DH6PX-0006PF-Ie for emacs-devel@gnu.org; Thu, 31 Mar 2005 15:37:03 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id DDC5D340017; Thu, 31 Mar 2005 15:37:01 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id A19944AC231; Thu, 31 Mar 2005 15:36:56 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 90947E6C15; Thu, 31 Mar 2005 15:36:56 -0500 (EST) Original-To: emacs-devel@gnu.org In-Reply-To: (Glenn Morris's message of "Thu, 31 Mar 2005 20:32:51 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.826, requis 5, autolearn=not spam, AWL 0.07, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:35443 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35443 >> Well, your patch distinguishes between tcl-keyword-list and >> tcl-builtin-list, so is `namespace' more like `append' or more like >> `if'? To me it feels more like an `if', in that it seems to be part >> of the syntax rather than one of a set of builtin functions. > It seems it can be used in a similar fashion to "proc", eg > namespace eval foo { > ... do stuff ... > } > or like a simple command: > namespace import foo::* > so IMO it could be either a builtin or keyword. I slightly prefer the > former, but don't have an especially strong opinion. I have no opinion at all, I was just asking because it seemed odd. As mentioned originally, feel free to install whatever you feel is right. > ii) be highlighted in some other face. keyword or builtin (?) seem to be > the only non-obviously-wrong faces left. There's no reason to restrict oneself to font-lock*-face faces. It might be better to use `defface' to create a new face (which could just inherit from font-lock-warning-face) so users who feel that \ shouldn't be so "in your face" can change it without changing font-lock-warning-face. Stefan