Function: browse-url-emacs-display
browse-url-emacs-display is a byte-compiled function defined in
browse-url.el.gz.
Signature
(browse-url-emacs-display)
Documentation
Return the X display Emacs is running on.
This is nil if the display is the same as the DISPLAY environment variable.
Actually Emacs could be using several displays; this just returns the one showing the selected frame.
Source Code
;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
(defun browse-url-emacs-display ()
"Return the X display Emacs is running on.
This is nil if the display is the same as the DISPLAY environment variable.
Actually Emacs could be using several displays; this just returns the
one showing the selected frame."
(let ((display (cdr-safe (assq 'display (frame-parameters)))))
(and (not (equal display (getenv "DISPLAY")))
display)))