From 38928c21efc93339273be9ab397e65433381b81d Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sat, 5 Feb 2005 13:22:02 +0000 Subject: [PATCH] * riece.el (riece-exit): Clear riece-window-configuration frame parameter. * riece-commands.el (riece-command-suspend-resume): Don't attempt to restore window-configuration if the cdr of riece-window-configuration frame parameter is nil. --- lisp/ChangeLog | 6 ++++++ lisp/riece-commands.el | 2 +- lisp/riece.el | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 34e7807..7e93b8c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,11 @@ 2005-02-05 Daiki Ueno + * riece.el (riece-exit): Clear riece-window-configuration frame + parameter. + * riece-commands.el (riece-command-suspend-resume): Don't attempt + to restore window-configuration if the cdr of + riece-window-configuration frame parameter is nil. + * riece-filter.el (riece-chomp-string): New function. (riece-filter): Use it. diff --git a/lisp/riece-commands.el b/lisp/riece-commands.el index e65173a..2fd4d8b 100644 --- a/lisp/riece-commands.el +++ b/lisp/riece-commands.el @@ -122,7 +122,7 @@ (modify-frame-parameters (selected-frame) (list (cons 'riece-window-configuration (current-window-configuration)))) - (if entry + (if (cdr entry) (set-window-configuration (cdr entry)) (delete-other-windows)) (message diff --git a/lisp/riece.el b/lisp/riece.el index c736b4b..8b00907 100644 --- a/lisp/riece.el +++ b/lisp/riece.el @@ -375,11 +375,9 @@ If optional argument CONFIRM is non-nil, ask which IRC server to connect." riece-operator-indicator "-" riece-channel-status-indicator "-" riece-freeze-indicator "-") - (let ((window-configuration - (cdr (assq 'riece-window-configuration (frame-parameters))))) - (if window-configuration - (set-window-configuration window-configuration) - (delete-other-windows))) + (modify-frame-parameters (selected-frame) + (list (list 'riece-window-configuration))) + (delete-other-windows) (run-hooks 'riece-exit-hook)) (defun riece-command-mode () -- 2.25.1