From xemacs-m  Fri Apr  4 18:26:08 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id SAA06865
	for <xemacs-beta@xemacs.org>; Fri, 4 Apr 1997 18:26:07 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id QAA28954;
	Fri, 4 Apr 1997 16:39:06 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: save-excursion sometimes doesn't
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 04 Apr 1997 16:39:06 -0800
Message-ID: <m24tdmqp5h.fsf@altair.xemacs.org>
Lines: 21
X-Mailer: Gnus v5.4.40/XEmacs 20.1(beta11)

The following example behaves the same way in Emacs 19.34 which leads
me to believe I'm probably missing something, or we copied a bug.

Put the following expression in *scratch* and hit C-x C-e at the end
of it.  Point moves down 4 lines despite the save-excursion.

(save-excursion
  (insert-before-markers "\n\n\n\n"))

I expect it to work like this.
(let ((opoint (point)))
  (save-excursion
    (insert-before-markers "\n\n\n\n"))
  (goto-char opoint))


The doc string to save-excursion doesn't say anything about exceptions 
to the rule, so if this is a feature it needs to be updated.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

