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: defining new character names? Date: Mon, 19 Aug 2002 12:07:33 +0200 Sender: guile-user-admin@gnu.org Message-ID: <20020819100733.GA6177@sim.no> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029751656 18703 127.0.0.1 (19 Aug 2002 10:07:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2002 10:07:36 +0000 (UTC) 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 17gjRe-0004rM-00 for ; Mon, 19 Aug 2002 12:07:34 +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 17gjSN-00068b-00; Mon, 19 Aug 2002 06:08:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17gjRi-00064N-00 for guile-user@gnu.org; Mon, 19 Aug 2002 06:07:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17gjRg-000646-00 for guile-user@gnu.org; Mon, 19 Aug 2002 06:07:38 -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 17gjRg-000640-00 for guile-user@gnu.org; Mon, 19 Aug 2002 06:07:36 -0400 Original-Received: (qmail 6270 invoked by uid 2000); 19 Aug 2002 10:07:33 -0000 Original-To: guile-user@gnu.org Content-Disposition: inline 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:811 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:811 Hi folks, 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) I can of course define a normal variable for this, but then it won't shine from the usage that it is a character in the way the above does. I've looked in libguile/chars.{c,h} and the guile docs, but didn't find any obvious way to do this. Is it possible? The reason i'd like to do this is that inserting #\) in the scheme file makes the vim "%" command unusable over those blocks (and it's not as easy on the eye either), and there was no alternate name for that char other than using the octal ascii value. Cheers, Lars J _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user