Function: idlwave-help-display-help-window

idlwave-help-display-help-window is a byte-compiled function defined in idlw-help.el.gz.

Signature

(idlwave-help-display-help-window &optional POS-OR-FUNC)

Documentation

Display the help window.

Move window start to POS-OR-FUNC, if passed as a position, or call it if passed as a function. See idlwave-help-use-dedicated-frame.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/idlw-help.el.gz
(defun idlwave-help-display-help-window (&optional pos-or-func)
  "Display the help window.
Move window start to POS-OR-FUNC, if passed as a position, or call it
if passed as a function.  See `idlwave-help-use-dedicated-frame'."
  (let ((cw (selected-window))
	(buf (idlwave-help-get-help-buffer)))
    (if (and window-system idlwave-help-use-dedicated-frame)
	(progn
	  (idlwave-help-show-help-frame)
	  (switch-to-buffer buf))
      ;; Do it in this frame and save the window configuration
      (if (not (get-buffer-window buf nil))
	  (setq idlwave-help-window-configuration
		(current-window-configuration)))
      (display-buffer buf nil (selected-frame))
      (select-window (get-buffer-window buf)))
    (raise-frame)
    (if pos-or-func
	(if (functionp pos-or-func)
	    (funcall pos-or-func)
	  (goto-char pos-or-func)
	  (recenter 0)))
    (select-window cw)))