guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defining new character names?


From: Keith Wright
Subject: Re: defining new character names?
Date: Mon, 19 Aug 2002 23:40:07 -0400

> Cc: address@hidden
> From: Marius Vollmer <address@hidden>
> 
> "Lars J. Aas" <address@hidden> 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.
(B) The double quotes around "paren-close" in the definition
     are surely wrong.

> > 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? ;)

Maybe so.  Not my job.

In the meantime, why not say
  (define close-char #\( ) % define )
  (string-index line close-char)

-- 
     -- Keith Wright  <address@hidden>

Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com>
         ---  Food, Shelter, Source code.  ---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]