In WITH-OUTPUT-TO-HELP-DISPLAY, don't change window/buffer arrangement
authorChris Hanson <org/chris-hanson/cph>
Thu, 26 Oct 2000 19:25:18 +0000 (19:25 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 26 Oct 2000 19:25:18 +0000 (19:25 +0000)
until after the argument thunk has been executed.

v7/src/edwin/hlpcom.scm

index eb1076bbec53e31e3c4d30f4d2f668192dee5e4a..ac28ad700563a16772335793818506bf5b8ddd39 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: hlpcom.scm,v 1.120 2000/06/15 00:58:43 cph Exp $
+;;; $Id: hlpcom.scm,v 1.121 2000/10/26 19:25:18 cph Exp $
 ;;;
 ;;; Copyright (c) 1986, 1989-2000 Massachusetts Institute of Technology
 ;;;
@@ -299,7 +299,9 @@ If you want VALUE to be a string, you must surround it with doublequotes."
              (buffer-not-modified! buffer)))))))
 \f
 (define (with-output-to-help-display thunk)
-  (with-output-to-temporary-buffer "*Help*" '(READ-ONLY) thunk))
+  (string->temporary-buffer (with-output-to-string thunk)
+                           "*Help*"
+                           '(READ-ONLY)))
 
 (define (write-description description #!optional port)
   (write-string (substitute-command-keys description)