[Top][All Lists]
[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. ---
- defining new character names?, Lars J. Aas, 2002/08/19
- Re: defining new character names?, Marius Vollmer, 2002/08/19
- Re: defining new character names?,
Keith Wright <=
- Re: defining new character names?, Keith Wright, 2002/08/21
- Re: defining new character names?, Lars J. Aas, 2002/08/21
- Re: defining new character names?, rm, 2002/08/21
- Re: defining new character names?, Matthias Koeppe, 2002/08/21
- Re: defining new character names?, Lars J. Aas, 2002/08/21
- Re: defining new character names?, rm, 2002/08/21
- Re: defining new character names?, Matthias Koeppe, 2002/08/27
Re: defining new character names?, Matthias Koeppe, 2002/08/20