From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lars J. Aas" Newsgroups: gmane.lisp.guile.user Subject: Re: defining new character names? Date: Wed, 21 Aug 2002 10:12:10 +0200 Sender: guile-user-admin@gnu.org Message-ID: <20020821081209.GB31070@sim.no> References: <20020819100733.GA6177@sim.no> <871y8uxvyd.fsf@zagadka.ping.de> <200208200340.g7K3e7I01435@fcs9.free-comp-shop.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029917535 25797 127.0.0.1 (21 Aug 2002 08:12:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 08:12:15 +0000 (UTC) Cc: mvo@zagadka.ping.de, guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hQb7-0006hW-00 for ; Wed, 21 Aug 2002 10:12:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hQbz-00079l-00; Wed, 21 Aug 2002 04:13:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hQb9-00075W-00 for guile-user@gnu.org; Wed, 21 Aug 2002 04:12:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hQb7-00075J-00 for guile-user@gnu.org; Wed, 21 Aug 2002 04:12:15 -0400 Original-Received: from trh.sim.no ([213.236.166.75] helo=sim.no) by monty-python.gnu.org with smtp (Exim 4.10) id 17hQb7-00075E-00 for guile-user@gnu.org; Wed, 21 Aug 2002 04:12:13 -0400 Original-Received: (qmail 32521 invoked by uid 2000); 21 Aug 2002 08:12:10 -0000 Original-To: Keith Wright Content-Disposition: inline In-Reply-To: <200208200340.g7K3e7I01435@fcs9.free-comp-shop.com> User-Agent: Mutt/1.3.24i Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:821 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:821 Keith Wright wrote: : > Cc: guile-user@gnu.org : > From: Marius Vollmer : > "Lars J. Aas" writes: : > : > > I'd like to be able to do something like this: : > > : > > (define-character "paren-close" #\051) ; 051 is ")" : > > and then later : > > (string-index line #\paren-close) : > : > Not currently, but I think it's a good idea. : : (A) Only in the context of a general mechanism to define constants. Yes, that's what I was looking for. : (B) The double quotes around "paren-close" in the definition : are surely wrong. Yes, I wrote "something like" because I don't know what would be possible for accomplishing this. The most "transparent" solution would be to allow (define #\paren-close #\051) [If the first token looks like a character constant, the second must be one too?] Would that be possible to implement without any overhead on the define implementation? Would it break something? : > > The reason i'd like to do this is that inserting #\) in the : > > scheme file makes the vim "%" command unusable over those : > > blocks : > : > vim should be fixed then, no? ;) Hehe, I sensed there was a generic problem below my concrete problem, hence the mail. If I thought this would only be good for vim-users, I wouldn't have bothered... Lars J _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user