Function: hpath:url-at-p

hpath:url-at-p is a byte-compiled function defined in hpath.el.

Signature

(hpath:url-at-p)

Documentation

Return a url with an initial protocol that point immediately precedes or nil.

Url is a world-wide-web universal resource locator. See the documentation for hpath:url-regexp for match-string groupings.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hpath.el
(defun hpath:url-at-p ()
  "Return a url with an initial protocol that point immediately precedes or nil.
Url is a world-wide-web universal resource locator.
See the documentation for `hpath:url-regexp' for `match-string' groupings."
  (if (or (looking-at hpath:url-regexp) (looking-at hpath:url-regexp2)
	  (looking-at hpath:url-regexp3))
      (save-excursion
	(goto-char (match-end hpath:url-grpn))
	(skip-chars-backward ".,?#!*()")
	(buffer-substring-no-properties (match-beginning hpath:url-grpn) (point)))))