Function: gnus-frame-or-window-display-name
gnus-frame-or-window-display-name is a byte-compiled function defined
in gnus-util.el.gz.
Signature
(gnus-frame-or-window-display-name OBJECT)
Documentation
Given a frame or window, return the associated display name.
Return nil otherwise.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-util.el.gz
(defun gnus-frame-or-window-display-name (object)
"Given a frame or window, return the associated display name.
Return nil otherwise."
(if (or (framep object)
(and (windowp object)
(setq object (window-frame object))))
(let ((display (frame-parameter object 'display)))
(if (and (stringp display)
;; Exclude invalid display names.
(string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'"
display))
display))))