From: Karl Heuer Date: Fri, 15 Dec 1995 21:16:34 +0000 (+0000) Subject: (mail-bury): Use window-dedicated-p. X-Git-Tag: emacs-19.34~2122 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c7608a53b0919fd7d55a29d1198f77fb3bbe3a59;p=emacs.git (mail-bury): Use window-dedicated-p. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index f7b1d82e61a..809bbfb4b98 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -405,8 +405,7 @@ Prefix arg means don't delete this window." "Bury this mail buffer." (let ((newbuf (other-buffer (current-buffer)))) (bury-buffer (current-buffer)) - (if (and (fboundp 'frame-parameters) - (cdr (assq 'dedicated (frame-parameters))) + (if (and (window-dedicated-p (frame-selected-window)) (not (null (delq (selected-frame) (visible-frame-list))))) (delete-frame (selected-frame)) (let (rmail-flag summary-buffer)