[Top][All Lists]

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

Re: Newbie Conditional Problem

From: Christopher J. White
Subject: Re: Newbie Conditional Problem
Date: Sat, 18 Jan 2003 08:48:05 -0500
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (powerpc-apple-darwin)

>>>>> "fd" == Friedrich Dominicus <address@hidden> writes:

fd> let us try to understand your code

fd> (let ((line (current-line)))  ;; this give you a simple number with my
fd> current-line (if that is what you want)
fd>         (forward-word 1) moves forward onw word from point
fd>         (if (> (current-line) line) ;; if we moved one line down
fd>            ;; assuming you meant
fd>         (progn (goto-line line) (end-of-line))))
fd>         ;; this means go back one line (back to the line you started from

fd> But what does it give you? It makes no sense. The code just moves you
fd> to the end of the current line that is simply to call (end-of-line)
fd> not more

As I understand it, it's a forward-word function that keeps the
cursor on the current line.  If forward-word would move the cursor
beyond the current line, just go to the end of the (current) line.  
Could be useful I suppose.

 Christopher J. White                                    address@hidden

reply via email to

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