[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: move-end-of-line vs just search for newline char?
From: |
Alan Mackenzie |
Subject: |
Re: move-end-of-line vs just search for newline char? |
Date: |
Tue, 04 May 2010 15:42:08 -0000 |
User-agent: |
tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) |
In gnu.emacs.help Xah Lee <xahlee@gmail.com> wrote:
> There's the move-end-of-line function. The source code and doc seems a
> bit complicated.
> my question is, what's the difference if i just call
> (search-forward "\n")
> (backward-char 1)
They'll do different things if point is already at the end of a line.
They'll do different things if a line of text wraps onto two lines on the
screen.
> Thanks.
> Xah
--
Alan Mackenzie (Nuremberg, Germany).