From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.help Subject: Re: Simple lisp question Date: 11 Apr 2003 18:42:34 +0200 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050079618 17444 80.91.224.249 (11 Apr 2003 16:46:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2003 16:46:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 18:46:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1941fB-0004RB-00 for ; Fri, 11 Apr 2003 18:46:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1941ek-0002Nh-01 for gnu-help-gnu-emacs@m.gmane.org; Fri, 11 Apr 2003 12:45:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!news.supernews.com!cicero.benny.turtle-trading.net!nobody Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 24 Original-Xref: shelby.stanford.edu gnu.emacs.help:111883 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8384 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8384 Hi Sebastian, Sebastian Tennant writes: > What is wrong with this simple code, (taken directly from O'Reilly's > Learning Gnu Emacs)? > > (defun count-words-buffer () > [...] > (count-words-buffer)* > > [...] > > With point at * (above), C-j to evaluate achieves nothing. Below is > the backtrace buffer output. > > Debugger entered--Lisp error: (void-function > count-words-buffer) Well, you have two Lisp expressions here, the defun and the actual function call. Did you evaluate the defun expression first? C-j only evaluates one expression, the last one before the point. so long, benny