diff options
| author | Ihor Radchenko <yantar92@posteo.net> | 2023-12-15 13:46:42 +0100 |
|---|---|---|
| committer | Ihor Radchenko <yantar92@posteo.net> | 2023-12-15 13:46:42 +0100 |
| commit | 5c543cd9d92a85879742f88e5a9bd3184c761e5f (patch) | |
| tree | 37685dcb9c604a04a82b89a87b42741d28e9a80d | |
| parent | 89164e60541b1d57efe3541b59836e14b1e070da (diff) | |
| download | org-mode-5c543cd9d.tar.gz | |
lisp/ol.el (org-link-search): Clarify that narrowing is respected
| -rw-r--r-- | lisp/ol.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)) |
