* Exercise 3.12 from Intro to lisp manual
@ 2006-03-20 17:53 B. T. Raven
2006-03-20 17:58 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: B. T. Raven @ 2006-03-20 17:53 UTC (permalink / raw)
This is my first take on an answer to this problem. The interpreter says
that 'fill-column is void. It seems to me that that the tutorial hasn't
shown how to make 'fill-column visible to the inside of the function.
Dynamic scoping has been mentioned but nothing spelled out, if I am not
mistaken.
(defun chkfc (width)
"Compare current fill column width with arbitrary value."
(interactive "p")
(if (> fill-column width)
(message "Current fill column width %d is greater than %d."
fill-column, width)
(message "Current fill column width %d is less than %d." fill-column,
width)))
What else is needed here?
Thanks,
Ed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-20 23:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-20 17:53 Exercise 3.12 from Intro to lisp manual B. T. Raven
2006-03-20 17:58 ` Bastien
2006-03-20 23:02 ` B. T. Raven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).