Article View: gnu.epoch.misc
Article #264Opening a temp screen rather than a temp window
From: hofmann
Date: Wed, 19 Aug 1992 09:25
Date: Wed, 19 Aug 1992 09:25
43 lines
1759 bytes
1759 bytes
I got this from Doug Bogia, who works in my lab (hi doug!):
(defun show-temp-buffer (target-buffer)
(if
(or
;; List of buffers that should get their own screen.
(equal (buffer-name target-buffer) "*compilation*")
(equal (buffer-name target-buffer) "*Help*")
)
(progn
(let
(
(scr
(car (epoch::screens-of-buffer target-buffer))
)
(xname (concat (buffer-name target-buffer) (sys-name)))
)
(when (null scr)
(setq scr
(create-screen
target-buffer
(list (cons 'title xname) (cons 'icon-name xname))
)
)
)
(mapraised-screen scr)
)
)
;; else
(display-buffer target-buffer nil)
)
)
(setq temp-buffer-show-hook 'show-temp-buffer)
I put it in my .epoch file. It opens a new screen rather than a new window
for the *Help* and *compilation* buffers.
scott
-------------------------------------------------------------------------------
J. Scott Hofmann | "R2D2, you know better than
hofmann@cs.uiuc.edu (NeXTmail accepted) | to trust a strange computer!"
Epoch development team, UIUC | -C3PO, _The Empire Strikes Back_
Technical Details
Message-ID:
<9208191925.AA24172@a.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.uiuc.edu!hofmannShow Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.uiuc.edu!hofmann From: hofmann@cs.uiuc.edu Subject: Opening a temp screen rather than a temp window Message-ID: <9208191925.AA24172@a.cs.uiuc.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 19 Aug 1992 09:25:40 GMT Lines: 43