all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

* Re: Exercise 3.12 from Intro to lisp manual
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2006-03-20 17:58 UTC (permalink / raw)


"B. T. Raven" <ecinmn@peoplepc.com> writes:

>     (message "Current fill column width %d is greater than %d."
> fill-column, width)

I don't understand the "," here : is that needed ?

-- 
Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exercise 3.12 from Intro to lisp manual
  2006-03-20 17:58 ` Bastien
@ 2006-03-20 23:02   ` B. T. Raven
  0 siblings, 0 replies; 3+ messages in thread
From: B. T. Raven @ 2006-03-20 23:02 UTC (permalink / raw)



"Bastien" <bastien@xxx.fr> wrote in message
news:87slpdrob5.fsf@tallis.ilo.ucl.ac.uk...
> "B. T. Raven" <ecinmn@peoplepc.com> writes:
>
> >     (message "Current fill column width %d is greater than %d."
> > fill-column, width)
>
> I don't understand the "," here : is that needed ?
>
> --
> Bastien


Thanks, Bastien. I forgot for a short time that the argument separator is
a space. 'fill-column is different from 'fill-column,

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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.