# HG changeset patch # User Chong Yidong # Date 1219958165 0 # Node ID e826c0ef09ff70c2f20bd8df24a4775c121ff14e # Parent eab3f989cdd290a5716b5a5396275895ffd27d80 (x-win-suspend-error): Don't signal error if there are no X frames active. diff -r eab3f989cdd2 -r e826c0ef09ff lisp/term/x-win.el --- a/lisp/term/x-win.el Thu Aug 28 21:15:57 2008 +0000 +++ b/lisp/term/x-win.el Thu Aug 28 21:16:05 2008 +0000 @@ -1441,7 +1441,9 @@ ;;; Window system initialization. (defun x-win-suspend-error () - (error "Suspending an Emacs running under X makes no sense")) + ;; Don't allow suspending if any of the frames are X frames. + (if (memq 'x (mapcar 'window-system (frame-list))) + (error "Cannot suspend Emacs while running under X"))) (defvar x-initialized nil "Non-nil if the X window system has been initialized.")