From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Newbie Conditional Problem Date: 17 Jan 2003 17:52:57 +0100 Organization: T-Online 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 1042822565 16147 80.91.224.249 (17 Jan 2003 16:56:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 16:56:05 +0000 (UTC) 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 18ZZmk-0004C7-00 for ; Fri, 17 Jan 2003 17:56:02 +0100 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 18ZZmA-0004bc-07 for gnu-help-gnu-emacs@m.gmane.org; Fri, 17 Jan 2003 11:55:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-X-Trace: news.t-online.com 1042822377 03 29244 dnuHE4rXTSAV+r 030117 16:52:57 Original-X-Complaints-To: abuse@t-online.com X-Sender: 520018396234-0001@t-dialin.net X-Face: 2FEFf>]>q>2iw=B6,xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN;i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:109085 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:5612 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5612 "CarlC" writes: > "David Kastrup" wrote in message > news:x54r87zrdo.fsf@lola.goethe.zz... > > Well, what do you expect? (goto-line line) is no function, and you > > use it in the place of one, namely immediately after an opening > > C-f h goto-line RET shows: > > goto-line is an interactive compiled Lisp function in `simple'. See? goto-line is a function. (goto-line line) is a function call. > (goto-line ARG) This is supposed to illustrate how goto-line is called. A function call is not the same as a function. > Goto line ARG, counting from line 1 at beginning of buffer. > > I am new to this. Is it technically a command or function? Can it be > used immediatly after an opening parenthesis? goto-line is a function. It can be "used" immediately after an opening parenthesis. This is not what Emacs complained about. Emacs complained about using (goto-line line) after an opening parenthesis. (goto-line line) is not a function, it is a function call. > It seems to work fine outside of this conditional. No, it doesn't. (goto-line line) will work fine. ((goto-line line) ...) will not. > I can put other commands in the conditional and they fail, also. You don't put them in the conditional. You put them in the function call place of a function that you want to have as the body of the conditional. > > parenthesis of a non-special form. I recommend that you instead use > > progn after the opening parenthesis. Look it up with > > > > C-h f progn RET > > progn is a special form. > (progn BODY ...) > > Eval BODY forms sequentially and return value of last one. > > This doesn't tell me a whole lot. I get an invalid function using progn, > also. Is it a function? (progn (goto-line line) (goto-line line)) would be a valid form. ((goto-line line) (goto-line line)) isn't, and because of the first function call in it which is used as if it were a function. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum