[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
Re: Newbie Conditional Problem, Brendan Halpin, 2003/01/17
Re: Newbie Conditional Problem, David Kastrup, 2003/01/17
Re: Newbie Conditional Problem,
Stefan Monnier <address@hidden> <=
Re: Newbie Conditional Problem, Kai Großjohann, 2003/01/18