unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Newbie Conditional Problem
@ 2003-01-17 15:19 CarlC
  2003-01-17 15:36 ` Friedrich Dominicus
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: CarlC @ 2003-01-17 15:19 UTC (permalink / raw)


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))))
...
(defun current-line ()
  "Return the vertical position of point..."
  (+ (count-lines (window-start) (point))
     (if (= (current-column) 0) 1 0)
     -1))

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

Anybody? Thanks in advance.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-01-18 17:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-17 15:19 Newbie Conditional Problem CarlC
2003-01-17 15:36 ` Friedrich Dominicus
2003-01-17 16:09   ` CarlC
2003-01-18  6:27     ` Friedrich Dominicus
2003-01-18 13:35       ` Johan Bockgård
2003-01-18 16:59         ` Friedrich Dominicus
2003-01-18 13:48       ` Christopher J. White
2003-01-18 17:03         ` Friedrich Dominicus
2003-01-17 16:19 ` Brendan Halpin
     [not found] ` <x54r87zrdo.fsf@lola.goethe.zz>
2003-01-17 16:46   ` CarlC
2003-01-17 16:52     ` David Kastrup
2003-01-17 17:24       ` CarlC
2003-01-17 17:42 ` Stefan Monnier <foo@acm.com>
2003-01-18 17:36 ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).