summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-07-29 11:25:29 +0300
committerEli Zaretskii <eliz@gnu.org>2017-07-29 11:25:29 +0300
commitd3fcb9241339357869969547924e02bed6f661cd (patch)
tree8beb425cbe94dd5b00c9f2f599ef1808d8bddf46 /lisp/replace.el
parenta00083cedec8151ec5c27e6cb41e1ec5572356f5 (diff)
downloademacs-d3fcb9241339357869969547924e02bed6f661cd.tar.gz
emacs-d3fcb9241339357869969547924e02bed6f661cd.tar.bz2
emacs-d3fcb9241339357869969547924e02bed6f661cd.zip
Improve documentation of 'occur'
* doc/emacs/search.texi (Other Repeating Search): * lisp/replace.el (occur): Make the documentation of 'occur' be more accurate when matches overlap. (Bug#27818)
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 64dfe7da22d..a5024943e64 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1395,6 +1395,11 @@ invoke `occur'."
"Show all lines in the current buffer containing a match for REGEXP.
If a match spreads across multiple lines, all those lines are shown.
+Each match is extended to include complete lines. Only non-overlapping
+matches are considered. (Note that extending matches to complete
+lines could cause some of the matches to overlap; if so, they will not
+be shown as separate matches.)
+
Each line is displayed with NLINES lines before and after, or -NLINES
before if NLINES is negative.
NLINES defaults to `list-matching-lines-default-context-lines'.