Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

removing #'s

2 views
Skip to first unread message

Kamal Nazar

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

Can anyone lend a hand .....

I have a program that formats its input to produce output lists.
However, the output contains #'s - I will explain ...
REQUIRED OUTPUT ( ((00) (01) (01)) ( (00) (11) (...)))
ACTUAL OUTPUT ( ( #1=(00) (01) (01) ) ( #1# (01) (...))))

i.e. Lisp uses these hashes as a shorthand label,
I want the ouput expressed without using this notation -
can anyone tell me what I'm doing wrong, or how to turn off
this behavior ??

Thanks in advance

Kamal Nazar

Erik Naggum

unread,
Dec 2, 1997, 3:00:00 AM12/2/97
to

* Kamal Nazar

your Lisp is trying to produce output that can be read back and produce a
result that is as close to the object written out as possible. a number of
printer variables control this behavior, but in your case, *print-circle*,
if non-nil, causes the Lisp printer to remember which objects it has
previously printed and label them. (setq *print-circle* nil) will cause
the printer to output the objects without any such attempts. (it's called
*print-circle* because the labels are mostly useful when printing circular
structures.)

#\Erik
--
if you think this year is "97", _you_ are not "year 2000 compliant".

see http://sourcery.naggum.no/emacs/ for GNU Emacs 20-related material.

0 new messages