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: need double save-excursion -- why? Date: Sun, 28 Dec 2003 13:41:20 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072616406 1208 80.91.224.253 (28 Dec 2003 13:00:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2003 13:00:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 28 14:00:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AaaWZ-0004og-00 for ; Sun, 28 Dec 2003 14:00:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AabTw-0001AW-3t for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Dec 2003 09:01:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15612 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15612 Joe Corneli writes: > I don't get good results: the outermost save-excursion is ignored, > and the cursor winds up near the bottom of the document. You problem could be: > (beginning-of-buffer) ;; start at the beginning ,----[ C-h f beginning-of-buffer RET ] | Don't use this command in Lisp programs! | (goto-char (point-min)) is faster and avoids clobbering the mark. `---- > (end-of-buffer)))))) ,----[ C-h f end-of-buffer RET ] | Don't use this command in Lisp programs! | (goto-char (point-max)) is faster and avoids clobbering the mark. `----