From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "A. Soare" Newsgroups: gmane.emacs.devel Subject: Re: New paren matching feature request Date: Thu, 29 Jan 2009 17:04:10 +0100 (CET) Message-ID: <31628377.61031233245050005.JavaMail.www@wwinf4614> Reply-To: alinsoar@voila.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1233246161 12152 80.91.229.12 (29 Jan 2009 16:22:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 16:22:41 +0000 (UTC) Cc: rms@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 29 17:23:53 2009 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.50) id 1LSZgH-0007BT-1Z for ged-emacs-devel@m.gmane.org; Thu, 29 Jan 2009 17:23:53 +0100 Original-Received: from localhost ([127.0.0.1]:34565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSZey-0005Te-Kx for ged-emacs-devel@m.gmane.org; Thu, 29 Jan 2009 11:22:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSZNM-0004Ap-IG for emacs-devel@gnu.org; Thu, 29 Jan 2009 11:04:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSZNI-0004A5-7n for emacs-devel@gnu.org; Thu, 29 Jan 2009 11:04:17 -0500 Original-Received: from [199.232.76.173] (port=45736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSZNH-00049o-HW for emacs-devel@gnu.org; Thu, 29 Jan 2009 11:04:15 -0500 Original-Received: from smtp1.voila.fr ([193.252.22.174]:19981) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSZND-0006L7-7Y; Thu, 29 Jan 2009 11:04:11 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf4009.voila.fr (SMTP Server) with ESMTP id 12F896800106; Thu, 29 Jan 2009 17:04:10 +0100 (CET) Original-Received: from wwinf4614 (wwinf4614 [10.232.13.58]) by mwinf4009.voila.fr (SMTP Server) with ESMTP id 043B96800149; Thu, 29 Jan 2009 17:04:10 +0100 (CET) X-ME-UUID: 20090129160410174.043B96800149@mwinf4009.voila.fr X-Originating-IP: [85.9.55.98] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~| X-WUM-REPLYTO: |~| X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:108362 Archived-At: >=20 > Message: 9 > Date: Thu, 29 Jan 2009 09:31:44 -0500 > From: Richard M Stallman > Subject: New paren matching feature request > To: emacs-devel@gnu.org > Message-ID: > Content-Type: text/plain; charset=3DISO-8859-15 >=20 > Date: Wed, 28 Jan 2009 06:53:31 +0100 (CET) > Subject: Re: Happy Chinese New Year! > From: hf@hongfeng.ch > To: rms@gnu.org >=20 > what I meant is to use different colors for nested parentheses of > Lisp code, indicating the hierarchy or the layers, e.g. the outermost > parentheses displayed in red, while the innermost one is violet. > We can try the solar spectrum for them. >=20 >=20 If you remember, a few months ago I have written an automaton that in one f= or-loop over a sexp; it returned a list of the correct indentation for that= sexp. It also can return a list of the positions and the deep-level of eve= ry sexp. More that that, I have said then that it is identically to the aut= omaton from `parse-partial-sexp`. I have told then that my code can be used= to colorize all the paranthesis into a different color depending of the le= vel. I do not understand why nobody considered my code. Otherwise I could have r= e-writen it in C and included in parse-partial-sexp, and this one could hav= e returned information about indentation too. ____________________________________________________ =C3=89coutez en un clic votre musique pr=C3=A9f=C3=A9r=C3=A9e et d=C3=A9cou= vrez de nouveaux titres en affinit=C3=A9 avec vos go=C3=BBts sur http://mus= iline.voila.fr=20