From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: move-end-of-line vs just search for newline char? Date: Thu, 11 Mar 2010 08:37:39 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <9be093f9-908c-4759-9c2c-8fad57ad80d2@u19g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1272991902 12370 80.91.229.12 (4 May 2010 16:51:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 16:51:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 18:51:40 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9LLP-0004CW-UV for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:51:40 +0200 Original-Received: from localhost ([127.0.0.1]:44986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9LLP-00018h-AM for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 12:51:39 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.velia.net!news.tu-darmstadt.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 20 Original-NNTP-Posting-Host: marvin.muc.de Original-X-Trace: colin2.muc.de 1268296659 52777 2001:608:1000::2 (11 Mar 2010 08:37:39 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Thu, 11 Mar 2010 08:37:39 +0000 (UTC) User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Original-Xref: usenet.stanford.edu gnu.emacs.help:177430 comp.emacs:99663 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72950 Archived-At: In gnu.emacs.help Xah Lee 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).