help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Conditional Problem


From: Brendan Halpin
Subject: Re: Newbie Conditional Problem
Date: 17 Jan 2003 16:19:31 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

"CarlC" <address@hidden> writes:

> Hi.
> 
> I have written my first elisp function. (pause for roar of crowd). I am
> getting an error while trying to process my first conditional and debug is
> not helping me. This is for emacs 21.2.1.
> 
>           (let ((line (current-line)))
>             (forward-word 1)
>             (if (> (current-line) line) ((goto-line line) (end-of-line))))
                           Extra paren:   ^^

             (if (> (current-line) line) (goto-line line) (end-of-line))))

> When the if statement is true, I get an error:  Invalid function: (goto-line
> line)

i.e. it should say "Invalid function: no-such-defun" without the
leading "(".

Brendan
-- 
Brendan Halpin,  Department of Sociology,   University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-390476;  Room F2-025 x 3147
<mailto:address@hidden>        <http://wivenhoe.staff8.ul.ie/~brendan>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]