unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Exercise 3.12 from Intro to lisp manual
Date: Mon, 20 Mar 2006 17:53:56 GMT	[thread overview]
Message-ID: <U_BTf.7690$k75.6231@newsread3.news.atl.earthlink.net> (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.

             reply	other threads:[~2006-03-20 17:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 17:53 B. T. Raven [this message]
2006-03-20 17:58 ` Exercise 3.12 from Intro to lisp manual Bastien
2006-03-20 23:02   ` B. T. Raven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='U_BTf.7690$k75.6231@newsread3.news.atl.earthlink.net' \
    --to=ecinmn@peoplepc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).