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

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

Re: Newbie Conditional Problem


From: Stefan Monnier <address@hidden>
Subject: Re: Newbie Conditional Problem
Date: 17 Jan 2003 12:42:35 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

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

In Lisp, every parenthesis counts.  You can't use (...) as a grouping
mechanism to override some default precedence (after all, there is no
precedence).  If you want to group two statements such as
(goto-line line) and (end-of-line) into a single statement, you
need to use (progn (goto-line line) (end-of-line)).


        Stefan


reply via email to

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