Function: archive-goto-file

archive-goto-file is a byte-compiled function defined in arc-mode.el.gz.

Signature

(archive-goto-file FILE)

Documentation

Go to FILE in the current buffer.

FILE should be a relative file name. If FILE can't be found, return nil. Otherwise point is returned.

Source Code

;; Defined in /usr/src/emacs/lisp/arc-mode.el.gz
(defun archive-goto-file (file)
  "Go to FILE in the current buffer.
FILE should be a relative file name.  If FILE can't be found,
return nil.  Otherwise point is returned."
  (let ((start (point))
        found)
    (goto-char (point-min))
    (while (and (not found)
                (not (eobp)))
      (forward-line 1)
      (when-let ((descr (archive-get-descr t)))
        (when (equal (archive--file-desc-ext-file-name descr) file)
          (setq found t))))
    (if (not found)
        (progn
          (goto-char start)
          nil)
      (point))))