[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0101e86: ; Fix recently installed documentation
From: |
Eli Zaretskii |
Subject: |
master 0101e86: ; Fix recently installed documentation |
Date: |
Thu, 23 Sep 2021 14:09:24 -0400 (EDT) |
branch: master
commit 0101e86df2378cbe4eff1814fe86cd3760ca6d99
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; 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'.
---
etc/NEWS | 3 +++
lisp/thingatpt.el | 6 ++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index e9b60e9..1b67ef9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
+++
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index 09a86d2..efe3398 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 0101e86: ; Fix recently installed documentation,
Eli Zaretskii <=