summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pluim <rpluim@gmail.com>2022-02-01 11:59:42 +0100
committerRobert Pluim <rpluim@gmail.com>2022-02-08 17:09:15 +0100
commit57df45749259e2b6fd5f629107a868f0df9725cb (patch)
treea1cab4b472ce2713a159657322cf226bc6c328f1
parent6058d3ebb4170fb70ebb78b42c0bc1e12fb96134 (diff)
downloademacs-57df45749259e2b6fd5f629107a868f0df9725cb.tar.gz
Improve thing-at-point-url-at-point docstring
* lisp/thingatpt.el (thing-at-point-url-at-point): Correct description of BOUNDS argument.
-rw-r--r--lisp/thingatpt.el4
1 files 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 <nobody>.
-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 <url:...> 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."