Article View: gnu.epoch.misc
Article #1309set-window-configuration problem in Epoch 4.0p2
From: Jim H. Berry
Date: Wed, 08 Jul 1992 19:00
Date: Wed, 08 Jul 1992 19:00
42 lines
1964 bytes
1964 bytes
Epoch 4.0 Patchlevel 2, sparc, sunos-4.1
Epoch-4.0p2 will abort (sometimes) if set-window-configuration attempts to
restore an emacs window whose buffer has been killed. The code below
is an example. Several users at my site managed to lose their epoch
session while trying to quit out of the mh-e MH mail handler front end;
they had innocently killed the buffer from which mh-rmail had been
invoked. I suspect that other packages would be vulnerable as well.
Is there an easy fix for this? Thanks for any help.
--
Jim Berry
Federal Reserve Board
jhb@fed.frb.gov
-----------------------------------------------------------------------------
;;; This function will cause epoch-4.0p2 to crash.
;;; These are the sequence of events:
;;;
;;; Split window vertically.
;;; Save window configuration.
;;; Kill the original buffer.
;;; Try to restore the original window configuration.
;;;
;;; Epoch 3.2 and Emacs essentially ignore the request.
;;; Epoch 4.0 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....")
))
Technical Details
Message-ID:
<M1JHB00.92Jul8150046@arcss9.fed.frb.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!fed!arccs1!m1jhb00Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,6cc1bd2860a5780e,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-07-08 08:41:32 PST Path: arc1-ca.pugleaf.net!sparky!uunet!fed!arccs1!m1jhb00 From: m1jhb00@fed.frb.gov (Jim H. Berry) Newsgroups: gnu.epoch.misc Subject: set-window-configuration problem in Epoch 4.0p2 Message-ID: <M1JHB00.92Jul8150046@arcss9.fed.frb.gov> Date: 8 Jul 92 19:00:46 GMT Sender: usenet@fed.FRB.GOV Distribution: gnu Organization: Federal Reserve Board Lines: 42