🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.lisp
Article #592

Re: Changing syntax of characters in Franz

#592
From: Anthony Albert
Date: Fri, 13 Jun 1986 21:51
18 lines
1647 bytes
In article <1126@ellie.UUCP> colonel@ellie.UUCP (Col. G. L. Sicherman) writes:
>> (3) Assuming a character's syntax has been reset as a "vmacro," how can you 
>> find out exactly what function the character has been set to (short of typing 
>> it and observing what Lisp does)?  Is there a way for a program to find out?
>
>I've done it, but I've forgotten how.  You may need to consult the oblist.
>-- 
>Col. G. L. Sicherman

You can use getsyntax (e.g. (getsyntax '\X)) to find out what class the
character is in. If it is in a "macro" class (e.g. vmacro, vsplicing-macro),
the value of the function it is set to is assigned to the property which
is the value of "readtable". Therefore, to get the name of the function, you
can use (get '\X readtable). Of course, if the function has been compiled,
you still won't know what it does.
				Anthony Albert
				..!ucbvax!kim!albert
				albert@kim.Berkeley.EDU
Technical Details
Message-ID: <14352@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!kim.Berkeley.EDU!albert
References: <555@bcsaic.UUCP> <1126@ellie.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!ucbvax!kim.Berkeley.EDU!albert
From: albert@kim.Berkeley.EDU (Anthony Albert)
Newsgroups: net.lang.lisp
Subject: Re: Changing syntax of characters in Franz
Message-ID: <14352@ucbvax.BERKELEY.EDU>
Date: Fri, 13-Jun-86 17:51:18 EDT
Article-I.D.: ucbvax.14352
Posted: Fri Jun 13 17:51:18 1986
Date-Received: Tue, 17-Jun-86 19:29:16 EDT
References: <555@bcsaic.UUCP> <1126@ellie.UUCP>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: albert@kim.Berkeley.EDU.UUCP (Anthony Albert)
Organization: University of California, Berkeley
Lines: 18