From 57df45749259e2b6fd5f629107a868f0df9725cb Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Tue, 1 Feb 2022 11:59:42 +0100 Subject: [PATCH] Improve thing-at-point-url-at-point docstring * lisp/thingatpt.el (thing-at-point-url-at-point): Correct description of BOUNDS argument. --- lisp/thingatpt.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 045264528ff..5f9ccc094af 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -508,14 +508,14 @@ If no URL is found, return nil. If optional argument LAX is non-nil, look for URLs that are not well-formed, such as foo@bar or . -If optional arguments BOUNDS are non-nil, it should be a cons +If optional argument BOUNDS is non-nil, it should be a cons cell of the form (START . END), containing the beginning and end positions of the URI. Otherwise, these positions are detected automatically from the text around point. If the scheme component is absent, either because a URI delimited with lacks one, or because an ill-formed URI was found -with LAX or BEG and END, try to add a scheme in the returned URI. +with LAX or BOUNDS, try to add a scheme in the returned URI. The scheme is chosen heuristically: \"mailto:\" if the address looks like an email address, \"ftp://\" if it starts with \"ftp\", etc." -- 2.39.5