🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by James H. Berry Fri, 28 Aug 1992 05:26
Problem with set-window-configuration
#181
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads