From xemacs-m  Wed Jan  8 22:56:38 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id WAA14704 for <xemacs-beta@xemacs.org>; Wed, 8 Jan 1997 22:56:36 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id VAA11889; Wed, 8 Jan 1997 21:06:39 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: Minimal help window
References: <199701050254.VAA07053@spacely.icd.teradyne.com>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
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>
In-Reply-To: Vinnie Shelton's message of Sat, 04 Jan 1997 21:54:49 -0500
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 08 Jan 1997 21:06:36 -0800
Message-ID: <m24tgrzbc3.fsf@altair.xemacs.org>
Lines: 42
X-Mailer: Red Gnus v0.79/XEmacs 20.0

>>>>> "Vinnie" == Vinnie Shelton <shelton@icd.teradyne.com> writes:

Vinnie> ...  But... now the help
Vinnie> window gets put at the top of the buffer stack rather than at
Vinnie> the bottom, so if I:

Vinnie> 1) edit buffer a
Vinnie> 2) edit buffer b
Vinnie> 3) get help of some sort....q returns to buffer b
Vinnie> 4) C-x b now returns me to the help buffer.  I expect to go
Vinnie>    back to buffer a.

Try this patch (should apply to 19.15 too) and see if there are other
undesirable side-effects.

Index: help.el
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/lisp/prim/help.el,v
retrieving revision 1.2
diff -u -r1.2 help.el
--- help.el	1996/12/28 21:03:04	1.2
+++ help.el	1997/01/09 05:01:21
@@ -181,11 +181,12 @@
 (define-key help-mode-map "q" 'help-mode-quit)
 
 (defun help-mode-quit ()
-  "Exits from help mode, possiblely restoring the previous window configuration."
+  "Exits from help mode, possibly restoring the previous window configuration."
   (interactive)
   (cond ((local-variable-p 'help-window-config (current-buffer))
          (let ((config help-window-config))
 	   (kill-local-variable 'help-window-config)
+	   (bury-buffer)
 	   (set-window-configuration config)))
         ((one-window-p)
 	 (bury-buffer))

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"That Bill Clinton.  He probably doesn't know how to log on to the
Internet."  -- Rush Limbaugh, noted Computer Expert

