diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-04 10:35:53 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-04 10:35:53 +0200 |
commit | b8c43b594e4e8bf27b1b1c1693d48f07799a1aaf (patch) | |
tree | 9ed7d710332bcc8642a762efb08876a88817b321 /doc/lispref/text.texi | |
parent | b41f31d2b60269bd0e7addd1081f3738f91e76bc (diff) | |
download | emacs-b8c43b594e4e8bf27b1b1c1693d48f07799a1aaf.tar.gz |
Add a new thing-at-point type: existing-filename
* doc/lispref/text.texi (Buffer Contents): Mention it.
* lisp/thingatpt.el (thing-at-point-file-at-point): New function.
(existing-filename): Register it.
Diffstat (limited to 'doc/lispref/text.texi')
-rw-r--r-- | doc/lispref/text.texi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index e18ba472822..9e0401fffb9 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -315,10 +315,11 @@ word on the same line is acceptable. @defun thing-at-point thing &optional no-properties Return the @var{thing} around or next to point, as a string. -The argument @var{thing} is a symbol which specifies a kind of syntactic -entity. Possibilities include @code{symbol}, @code{list}, @code{sexp}, -@code{defun}, @code{filename}, @code{url}, @code{word}, @code{sentence}, -@code{whitespace}, @code{line}, @code{page}, and others. +The argument @var{thing} is a symbol which specifies a kind of +syntactic entity. Possibilities include @code{symbol}, @code{list}, +@code{sexp}, @code{defun}, @code{filename}, @code{existing-filename}, +@code{url}, @code{word}, @code{sentence}, @code{whitespace}, +@code{line}, @code{page}, and others. When the optional argument @var{no-properties} is non-@code{nil}, this function strips text properties from the return value. |