🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #181

Problem with set-window-configuration

#181
From: James H. Berry
Date: Fri, 28 Aug 1992 05:26
43 lines
1723 bytes
[ I thought that I posted this several weeks ago, but perhaps not. ]

Epoch version: Epoch-4.0p2 and Epoch-4.1.1
Platform:      sparc   SunOS4.0 and SunOS4.1.1
Compiler:      Suns's cc

If set-window-configuration tries to select a window whose buffer has
been killed, then bad things might happen.  At our site this occurs
when using the front end to the mh mailer (mh-e.el).  I would think
that other packages would be vulnerable too if they try to restore an
earlier configuration.  Here is a simple function which triggers the
problem.


;;;  These are the sequence of events below:
;;;     Display 1 emacs window.
;;;     Split screen vertically.
;;;     Save window configuration.
;;;     Kill the original buffer.
;;;     Try to restore the original window configuration.
;;;    
;;;   Epoch 3.2 and Emacs quietly ignore the request.
;;;   Epoch 4.0 will abort.
;;;   Epoch 4.1 will abort.

(defun crash ()
  (interactive)
  (let ((junk (get-buffer-create "*junk*"))
	config)
    (delete-other-windows)
    (switch-to-buffer junk)
    (split-window-vertically)
    (setq config (current-window-configuration))  
    (kill-buffer junk)
    (delete-other-windows)
    (message "About to abort")
    (sit-for 5)
    (set-window-configuration config) 
    (message "Crashing....")
    ))
--
Jim Berry
jberry@fed.frb.gov
Technical Details
Message-ID: <9208281326.AA22324@arcss9.FRB.GOV>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!fed.UUCP!m1jhb00

Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!fed.UUCP!m1jhb00
From: m1jhb00@fed.UUCP (James H. Berry)
Subject: Problem with set-window-configuration
Message-ID: <9208281326.AA22324@arcss9.FRB.GOV>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 28 Aug 1992 05:26:01 GMT
Lines: 43