1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-15 04:11:53 -08:00

; Fix recently installed documentation

* etc/NEWS:
* lisp/thingatpt.el
(thing-at-point-bounds-of-list-or-string-at-point): Clarify
wording of the documentation of 'list-or-string'.
This commit is contained in:
Eli Zaretskii 2021-09-23 21:08:19 +03:00
parent 90a7233199
commit 0101e86df2
2 changed files with 7 additions and 2 deletions

View file

@ -2587,6 +2587,9 @@ This is like 'filename', but is a full path, and is nil if the file
doesn't exist.
*** New 'thing-at-point' target: 'list-or-string'.
This is like 'list, but if point is inside a string that's enclosed in
the list, it returns the enclosed string and not the enclosing list.
This is like 'list', but also prefers to find of any enclosing string.
+++

View file

@ -301,8 +301,10 @@ Prefer the enclosing list with fallback on sexp at point.
(defun thing-at-point-bounds-of-list-or-string-at-point ()
"Return the bounds of the list or string at point.
Like `thing-at-point-bounds-of-list-at-point', but also
prefer to find of any enclosing string."
Like `thing-at-point-bounds-of-list-at-point', but if
point is inside a string that's enclosed in the list, this
function will return the enclosed string and not the
enclosing list."
(thing-at-point-bounds-of-list-at-point t t))
;; Defuns