]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve thing-at-point-url-at-point docstring
authorRobert Pluim <rpluim@gmail.com>
Tue, 1 Feb 2022 10:59:42 +0000 (11:59 +0100)
committerRobert Pluim <rpluim@gmail.com>
Tue, 8 Feb 2022 16:09:15 +0000 (17:09 +0100)
* lisp/thingatpt.el (thing-at-point-url-at-point): Correct description
of BOUNDS argument.

lisp/thingatpt.el

index 045264528ff77f91f03f1f5a992aeed8f09e9b5f..5f9ccc094aff2e80cfc87c60783fa20547546872 100644 (file)
@@ -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."