From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Return to Marker Date: Thu, 30 Jan 2003 19:23:42 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043951534 4510 80.91.224.249 (30 Jan 2003 18:32:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 18:32:14 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eJTT-00017W-00 for ; Thu, 30 Jan 2003 19:31:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eJSm-0000TH-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2003 13:31:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!news-fra1.dfn.de!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6111 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6111 "CarlC" writes: > (beginning-of-buffer) Don't use `beginning-of-buffer' in Lisp code, it'll cause the type of problem you describe. Use (goto-char (point-min)) instead. The same applies to `end-of-buffer'. > (previous-line 1) You usually don't want `previous-line' in Lisp programs -- use (forward-line -1) instead. Ditto for `next-line'.