From xemacs-m  Thu Jun  5 16:55:25 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 QAA17957
	for <xemacs-beta@xemacs.org>; Thu, 5 Jun 1997 16:55:24 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id OAA15880;
	Thu, 5 Jun 1997 14:55:47 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: scroll-up defadvice now fails
References: <bci4tbcivpf.fsf@corp.Sun.COM>
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@xemacs.org>
In-Reply-To: Gary.Foster@Corp.Sun.COM's message of "05 Jun 1997 14:30:36 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 05 Jun 1997 14:55:46 -0700
Message-ID: <m2iuzs7lzx.fsf@altair.xemacs.org>
Lines: 32
X-Mailer: Gnus v5.4.56/XEmacs 20.3(beta4)

Gary D Foster <Gary.Foster@Corp.Sun.COM> writes:

> Noticed this in b3.
> This bit of code worked fine in 20.2:

Note that this behavior is now built-in to `scroll-up' and the other
movement functions by doing
(setq signal-error-on-buffer-boundary nil)
in .emacs.

> (defadvice scroll-up (around scroll-up freeze)
>   (interactive "_P")
>   (let ((zmacs-region-stays t))
>     (if (interactive-p)
>      	(condition-case nil
>      	    ad-do-it
>      	  (end-of-buffer (goto-char (point-max))))
>       ad-do-it)))

> However, in b3 I get the following error signalled when invoking this
> advised scroll-up function:

> Signaling: (wrong-number-of-arguments #<subr scroll-up (interactive)> 3)
 ...
> Now, I realize that the problem might be in my advice... if so, I'll
> gladly fix it, but it *does* work just fine in 20.2.

I just tried it via `xemacs -q -no-site-file' and it worked as
expected.  Does it still fail for you when beta3 is invoked with -q?
-- 
steve@calag.com baur
Unsolicited commercial e-mail will be billed at $250/message.

