From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Exercise 3.12 from Intro to lisp manual Date: Mon, 20 Mar 2006 17:53:56 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143489695 27856 80.91.229.2 (27 Mar 2006 20:01:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 20:01:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 27 22:01:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FNxtu-0004VJ-Tm for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Mar 2006 22:01:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNxtu-0005ey-GD for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Mar 2006 15:01:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.167.105 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread3.news.atl.earthlink.net 1142877236 4.159.167.105 (Mon, 20 Mar 2006 09:53:56 PST) Original-NNTP-Posting-Date: Mon, 20 Mar 2006 09:53:56 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:138289 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34021 Archived-At: 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.