Variable: server-window

server-window is a customizable variable defined in server.el.gz.

Value

nil

Documentation

Specification of the window to use for selecting Emacs server buffers.

If nil, use the selected window. If it is a function, it should take one argument (a buffer) and display and select it. A common value is pop-to-buffer. If it is a window, use that. If it is a frame, use the frame's selected window.

It is not meaningful to set this to a specific frame or window with Custom. Only programs can do so.

This variable was added, or its default value changed, in Emacs 22.1.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/server.el.gz
(defcustom server-window nil
  "Specification of the window to use for selecting Emacs server buffers.
If nil, use the selected window.
If it is a function, it should take one argument (a buffer) and
display and select it.  A common value is `pop-to-buffer'.
If it is a window, use that.
If it is a frame, use the frame's selected window.

It is not meaningful to set this to a specific frame or window with Custom.
Only programs can do so."
  :version "22.1"
  :type '(choice (const :tag "Use selected window"
			:match (lambda (widget value)
				 (not (functionp value)))
			nil)
		 (function-item :tag "Display in new frame" switch-to-buffer-other-frame)
		 (function-item :tag "Use pop-to-buffer" pop-to-buffer)
		 (function :tag "Other function")))