Mercurial > hg > xemacs-beta
diff lisp/gnuserv.el @ 286:57709be46d1b r21-0b41
Import from CVS: tag r21-0b41
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:35:03 +0200 |
parents | 6330739388db |
children | 8e84bee8ddd0 |
line wrap: on
line diff
--- a/lisp/gnuserv.el Mon Aug 13 10:34:15 2007 +0200 +++ b/lisp/gnuserv.el Mon Aug 13 10:35:03 2007 +0200 @@ -270,7 +270,8 @@ (defun gnuserv-main-frame-function (type) "Return a sensible value for the main Emacs frame." - (if (eq type 'x) + (if (or (eq type 'x) + (eq type 'mswindows)) (car (frame-list)) nil)) @@ -278,7 +279,8 @@ "Return a frame if there is a frame that is truly visible, nil otherwise. This is meant in the X sense, so it will not return frames that are on another visual screen. Totally visible frames are preferred. If none found, return nil." - (if (eq type 'x) + (if (or (eq type 'x) + (eq type 'mswindows)) (cond ((car (filtered-frame-list 'frame-totally-visible-p (selected-device)))) ((car (filtered-frame-list (lambda (frame) @@ -424,6 +426,7 @@ (case (car type) (tty (apply 'make-tty-device (cdr type))) (x (make-x-device (cadr type))) + (mswindows (make-mswindows-device)) (t (error "Invalid device type")))) (t (selected-device))))