Function: url-probe-protocols

url-probe-protocols is a byte-compiled function defined in url-about.el.gz.

Signature

(url-probe-protocols)

Documentation

Return a list of all potential URL schemes.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/url-about.el.gz
(defun url-probe-protocols ()
  "Return a list of all potential URL schemes."
  (or (get 'url-extension-protocols 'probed)
      (mapc (lambda (s) (url-scheme-get-property s 'name))
	    (or (get 'url-extension-protocols 'schemes)
                (let ((schemes '("info" "man" "telnet"
				 "tn3270" "data" "snews")))
		  (mapc (lambda (d)
			  (mapc (lambda (f)
				  (if (string-match "url-\\(.*\\).el$" f)
				      (push (match-string 1 f) schemes)))
				(directory-files d nil "\\`url-.*\\.el\\'")))
                        (seq-filter #'file-exists-p load-path))
		  (put 'url-extension-protocols 'schemes schemes)
		  schemes)))))