emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/term/x-win.el,v


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/lisp/term/x-win.el,v
Date: Thu, 28 Aug 2008 21:16:05 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/08/28 21:16:05

Index: x-win.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/term/x-win.el,v
retrieving revision 1.234
retrieving revision 1.235
diff -u -b -r1.234 -r1.235
--- x-win.el    23 Aug 2008 15:50:06 -0000      1.234
+++ x-win.el    28 Aug 2008 21:16:05 -0000      1.235
@@ -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.")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]