summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2023-12-15 13:46:42 +0100
committerIhor Radchenko <yantar92@posteo.net>2023-12-15 13:46:42 +0100
commit5c543cd9d92a85879742f88e5a9bd3184c761e5f (patch)
tree37685dcb9c604a04a82b89a87b42741d28e9a80d
parent89164e60541b1d57efe3541b59836e14b1e070da (diff)
downloadorg-mode-5c543cd9d.tar.gz
lisp/ol.el (org-link-search): Clarify that narrowing is respected
-rw-r--r--lisp/ol.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ol.el b/lisp/ol.el
index e62e953..6480b78 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -1164,7 +1164,7 @@ Optional argument ARG is passed to `org-open-file' when S is a
(link (org-link-open link arg))))
(defun org-link-search (s &optional avoid-pos stealth)
- "Search for a search string S.
+ "Search for a search string S in the accessible part of the buffer.
If S starts with \"#\", it triggers a custom ID search.
@@ -1184,7 +1184,8 @@ visibility around point, thus ignoring `org-show-context-detail'
variable.
Search is case-insensitive and ignores white spaces. Return type
-of matched result, which is either `dedicated' or `fuzzy'."
+of matched result, which is either `dedicated' or `fuzzy'. Search
+respects buffer narrowing."
(unless (org-string-nw-p s) (error "Invalid search string \"%s\"" s))
(let* ((case-fold-search t)
(origin (point))