Function: Info-build-node-completions

Info-build-node-completions is a byte-compiled function defined in info.el.gz.

Signature

(Info-build-node-completions &optional FILENAME)

Source Code

;; Defined in /usr/src/emacs/lisp/info.el.gz
(defun Info-build-node-completions (&optional filename)
  (if filename
      (or (cdr (assoc filename Info-file-completions))
	  (with-temp-buffer
	    (Info-mode)
            (condition-case nil
                (Info-goto-node (format "(%s)Top" filename))
              ;; `Info-goto-node' signals a `user-error' when there
              ;; are no nodes in the file in question (for instance,
              ;; if it's not actually an Info file).
              (user-error nil)
              (:success
	       (Info-build-node-completions-1)
	       (push (cons filename Info-current-file-completions)
                     Info-file-completions)
	       Info-current-file-completions))))
    (or Info-current-file-completions
	(Info-build-node-completions-1))))