File: thingatpt.el.html
This file provides routines for getting the "thing" at the location of point, whatever that "thing" happens to be. The "thing" is defined by its beginning and end positions in the buffer.
The function bounds-of-thing-at-point finds the beginning and end positions by moving first forward to the end of the "thing", and then backwards to the beginning. By default, it uses the corresponding forward-"thing" operator (e.g. forward-word, forward-line).
Special cases are allowed for using properties associated with the named
"thing":
forward-op Function to call to skip forward over a "thing" (or
with a negative argument, backward).
beginning-op Function to call to skip to the beginning of a "thing".
end-op Function to call to skip to the end of a "thing".
For simple things, defined as sequences of specific kinds of characters, use macro define-thing-chars.
Reliance on existing operators means that many things can be accessed
without further code: eg.
(thing-at-point 'line)
(thing-at-point 'page)
Defined variables (16)
bounds-of-thing-at-point-provider-alist | Alist of providers to return the bounds of a "thing" at point. |
forward-thing-provider-alist | Alist of providers for moving forward to the end of the next "thing". |
thing-at-point-beginning-of-url-regexp | Regexp matching the beginning of a well-formed URI. |
thing-at-point-decimal-regexp | A regexp matching a decimal number. |
thing-at-point-default-mail-uri-scheme | Default scheme for ill-formed URIs that look like <foo@example.com>. |
thing-at-point-email-regexp | A regular expression probably matching an email address. |
thing-at-point-file-name-chars | Characters allowable in filenames. |
thing-at-point-hexadecimal-regexp | A regexp matching a hexadecimal number. |
thing-at-point-markedup-url-regexp | Regexp matching a URL marked up per RFC1738. |
thing-at-point-newsgroup-heads | Used by ‘thing-at-point-newsgroup-p’ if gnus is not running. |
thing-at-point-newsgroup-regexp | Regexp matching a newsgroup name. |
thing-at-point-provider-alist | Alist of providers for returning a "thing" at point. |
thing-at-point-short-url-regexp | Regexp matching a URI without a scheme component. |
thing-at-point-uri-schemes | List of URI schemes recognized by ‘thing-at-point-url-at-point’. |
thing-at-point-url-path-regexp | Regexp matching the host and filename or e-mail part of a URL. |
thing-at-point-uuid-regexp | A regular expression matching a UUID. |