emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/server.el,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/server.el,v
Date: Wed, 17 Oct 2007 16:22:49 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        07/10/17 16:22:49

Index: server.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/server.el,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -b -r1.146 -r1.147
--- server.el   17 Oct 2007 08:15:04 -0000      1.146
+++ server.el   17 Oct 2007 16:22:47 -0000      1.147
@@ -325,7 +325,10 @@
 
 (defun server-select-display (display)
   ;; If the current frame is on `display' we're all set.
-  (unless (equal (frame-parameter (selected-frame) 'display) display)
+  ;; Similarly if we are unable to open a frames on other displays, there's
+  ;; nothing more we can do.
+  (unless (or (not (fboundp 'make-frame-on-display))
+              (equal (frame-parameter (selected-frame) 'display) display))
     ;; Otherwise, look for an existing frame there and select it.
     (dolist (frame (frame-list))
       (when (equal (frame-parameter frame 'display) display)
@@ -831,11 +834,7 @@
                 ;; Open X frames on the given display instead of the default.
                 ((and (equal "-display" arg)
                        (string-match "\\([^ ]*\\) " request))
-                 ;; Only set `display' if X is supported. 
-                 ;; Emacsclient cannot know if emacs supports X and
-                 ;; it will send -display anyway.
-                 (when (memq 'x frame-creation-function-alist)
-                   (setq display (match-string 1 request)))
+                  (setq display (match-string 1 request))
                  (setq request (substring request (match-end 0))))
 
                 ;; -window-system:  Open a new X frame.




reply via email to

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