Function: info-setup

info-setup is a byte-compiled function defined in info.el.gz.

This function is obsolete since 30.1; use info-pop-to-buffer instead

Signature

(info-setup FILE-OR-NODE BUFFER)

Documentation

Display Info node FILE-OR-NODE in BUFFER.

Source Code

;; Defined in /usr/src/emacs/lisp/info.el.gz
(defun info-setup (file-or-node buffer)
  "Display Info node FILE-OR-NODE in BUFFER."
  (if (and buffer (not (derived-mode-p 'Info-mode)))
      (Info-mode))
  (if file-or-node
      ;; If argument already contains parentheses, don't add another set
      ;; since the argument will then be parsed improperly.  This also
      ;; has the added benefit of allowing node names to be included
      ;; following the parenthesized filename.
      (Info-goto-node
       (if (and (stringp file-or-node) (string-match "(.*)" file-or-node))
           file-or-node
         (concat "(" file-or-node ")")))
    (if (and (zerop (buffer-size))
	     (null Info-history))
	;; If we just created the Info buffer, go to the directory.
	(Info-directory))))