Function: iswitchb-window-buffer-p

iswitchb-window-buffer-p is an interactive and byte-compiled function defined in iswitchb.el.gz.

Signature

(iswitchb-window-buffer-p BUFFER)

Documentation

Return window pointer if BUFFER is visible in another frame.

If BUFFER is visible in the current frame, return nil.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/iswitchb.el.gz
(defun iswitchb-window-buffer-p  (buffer)
  "Return window pointer if BUFFER is visible in another frame.
If BUFFER is visible in the current frame, return nil."
  (interactive)
  (let ((blist (iswitchb-get-buffers-in-frames 'current)))
    ;; If the buffer is visible in current frame, return nil
    (unless (member buffer blist)
      ;; maybe in other frame or icon
      (get-buffer-window buffer 0) ; better than 'visible
      )))