Thread View: gnu.epoch.misc
1 messages
1 total messages
Started by snicoud
Wed, 13 Mar 1991 07:03
delete-screen & auto-map-event-handler
Author: snicoud
Date: Wed, 13 Mar 1991 07:03
Date: Wed, 13 Mar 1991 07:03
35 lines
2060 bytes
2060 bytes
While experimenting with Kenneth C. Laprade's auto-map-event-handler
(16 Jan 91) I noticed that when a screen is deleted (like when
server-edit is executed (C-xC-#)), a map event is not generated, so
the minibuffer is left mapped. I've mucked up a version of
'delete-screen' from epoch.el which seems to handle this case.
Perhaps there is a "right way" to do it without having to modify an
existing function.
;;; -----------------------------------------------------------------
;;; Deleting a Screen
;;;
;;; 3/12/91 (Stephen L Nicoud)
;;;
;;; Screens deleted do not go through unmapping (like when
;;; 'server-edit' is called), so this is a modified version of
;;; delete-screen (as lifted from epoch.el) which will, if no other
;;; Edit screens are mapped, unmap the minibuffer.
;;;
;;; -----------------------------------------------------------------
(defun delete-screen (&optional scr)
(interactive)
(let ((the-scr (or scr (current-screen))))
(mapcar (symbol-function 'remove-screen-from-buffer) (buffer-list)))
(multiple-value-prog1
(epoch::delete-screen scr)
(when (and (not (eq scr (minibuf-screen)))
(screen-mapped-p (minibuf-screen))
(not (screen-list)))
(unmap-screen (minibuf-screen)))))
Stephen
--
Stephen L Nicoud <snicoud@atc.boeing.com> uw-beaver!bcsaic!snicoud
Boeing Advanced Technology Center for Computer Sciences
Bellevue, Washington USA
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