From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: new *Help* argument highlighting Date: Wed, 12 May 2004 15:43:44 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040512153459.FB6C.JMBARRANQUERO@wke.es> References: <20040512143721.FB63.JMBARRANQUERO@wke.es> <200405121322.WAA11366@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1084377765 32223 80.91.224.253 (12 May 2004 16:02:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 May 2004 16:02:45 +0000 (UTC) Cc: Kenichi Handa Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 12 18:02:38 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNwBq-0006QP-00 for ; Wed, 12 May 2004 18:02:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNwBq-0001fC-00 for ; Wed, 12 May 2004 18:02:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNvqE-0002YU-0b for emacs-devel@quimby.gnus.org; Wed, 12 May 2004 11:40:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNvpL-0002XU-Pg for emacs-devel@gnu.org; Wed, 12 May 2004 11:39:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNuPk-0002FQ-Fv for emacs-devel@gnu.org; Wed, 12 May 2004 10:09:24 -0400 Original-Received: from [62.22.181.117] (helo=idefix.laley.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNu1T-000652-3o for emacs-devel@gnu.org; Wed, 12 May 2004 09:43:47 -0400 Original-Received: from [172.17.221.23] (jsredondo.wk.org [172.17.221.23]) by idefix.laley.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id K4TS1RP0; Wed, 12 May 2004 15:43:39 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: <200405121322.WAA11366@etlken.m17n.org> X-Mailer: Becky! ver. 2.08.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23256 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23256 On Wed, 12 May 2004 22:22:26 +0900 (JST) Kenichi Handa wrote: > Even with $NAME, it seems > (replace-regexp "\\$\\([A-Z]\\(-*[A-Z]\\)*\\)" "{\\1}") > can correctly find parts to be highlighted I'm not converting ARG1-XXX to {ARG1}-{XXX} or {ARG1-XXX} because there can be functions which have YYY as an argument, and YYY-XXX as a non-related "variable" in the docstring (because UPPERCASE words are often used as additional "docstring variables" in functions which accept complex combinations of keywords and/or structured args). But in fact, yes, I'm sure it can be made to work. Choosing $var{NAME} or $NAME or $NAME$ is not very important. Whatever people feels more comfortable with. Juanma