Function: ffap-menu

ffap-menu is an autoloaded, interactive and byte-compiled function defined in ffap.el.gz.

Signature

(ffap-menu &optional RESCAN)

Documentation

Put up a menu of files and URLs mentioned in this buffer.

Then set mark, jump to choice, and try to fetch it. The menu is cached in ffap-menu-alist, and rebuilt by ffap-menu-rescan. The optional RESCAN argument (a prefix, interactively) forces a rebuild. Searches with ffap-menu-regexp.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ffap.el.gz
;;;###autoload
(defun ffap-menu (&optional rescan)
  "Put up a menu of files and URLs mentioned in this buffer.
Then set mark, jump to choice, and try to fetch it.  The menu is
cached in `ffap-menu-alist', and rebuilt by `ffap-menu-rescan'.
The optional RESCAN argument (a prefix, interactively) forces
a rebuild.  Searches with `ffap-menu-regexp'."
  (interactive "P")
  ;; (require 'imenu) -- no longer used, but roughly emulated
  (if (or (not ffap-menu-alist) rescan
	  ;; or if the first entry is wrong:
	  (and ffap-menu-alist
	       (let ((first (car ffap-menu-alist)))
		 (save-excursion
		   (goto-char (cdr first))
		   (not (equal (car first) (ffap-guesser)))))))
      (ffap-menu-rescan))
  ;; Tail recursive:
  (ffap-menu-ask
   (if ffap-url-regexp "Find file or URL" "Find file")
   (cons (cons "*Rescan Buffer*" -1) ffap-menu-alist)
   'ffap-menu-cont))