From: Vasily Malahin
Subject: Macros
Date: 
Message-ID: <bfe0e2c1.0305040912.70e95067@posting.google.com>
How can i define read-macros ~ as ; and record it to read table?

From: Pascal Costanza
Subject: Re: Macros
Date: 
Message-ID: <costanza-F7E258.19491004052003@news.netcologne.de>
In article <····························@posting.google.com>,
 ·······@klax.tula.ru (Vasily Malahin) wrote:

> How can i define read-macros ~ as ; and record it to read table?

Chapter 21.1.5 "The Readtable" of CLtL2 contains several examples for 
read macros, including one for ;. See 
http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl
/cltl2.html

Pascal
From: Jeremy Yallop
Subject: Re: Macros
Date: 
Message-ID: <b93kbk$etsb3$1@ID-114079.news.dfncis.de>
Pascal Costanza wrote:
> In article <····························@posting.google.com>,
>  ·······@klax.tula.ru (Vasily Malahin) wrote:
> 
>> How can i define read-macros ~ as ; and record it to read table?

I think you want SET-SYNTAX-FROM-CHAR, as in:

  (set-syntax-from-char #\~ #\;)

> Chapter 21.1.5 "The Readtable" of CLtL2 contains several examples for 
> read macros, including one for ;. 

That's 22.1.5, I think.

Jeremy.
From: Pascal Costanza
Subject: Re: Macros
Date: 
Message-ID: <costanza-2ED3F7.20054404052003@news.netcologne.de>
In article <··············@ID-114079.news.dfncis.de>,
 Jeremy Yallop <······@jdyallop.freeserve.co.uk> wrote:

> > Chapter 21.1.5 "The Readtable" of CLtL2 contains several examples for 
> > read macros, including one for ;. 
> 
> That's 22.1.5, I think.
> 

Yes, you're right - sorry for the typo.


Pascal