aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd2021-07-31 22:37:03 +0200
committerMattias EngdegÄrd2021-07-31 22:46:24 +0200
commit6413f08887ccb4fa8049f4665bba4f77368f15c6 (patch)
treecfc55fe07b8e3bbce95eef6248c8b9e8c9be4e66 /lisp/replace.el
parentff16bea7f478be80f37c4870e69d43825d4f8cd6 (diff)
downloademacs-6413f08887ccb4fa8049f4665bba4f77368f15c6.tar.gz
emacs-6413f08887ccb4fa8049f4665bba4f77368f15c6.zip
Occur-mode multi-line match property gap filling
When an occur-mode regexp matches across multiple lines, the spacing prefixes inserted between each did not have the `occur-target` property which is essential for jumping to the corresponding place in the target buffer. This prevented next-error and previous-error from working. * lisp/replace.el (occur-engine): Put the `occur-target` property on the continuation prefix to avoid the gap.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index d0c63669159..148b7ce48b1 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2089,8 +2089,10 @@ See also `multi-occur'."
2089 "\n" 2089 "\n"
2090 (if prefix-face 2090 (if prefix-face
2091 (propertize 2091 (propertize
2092 "\n :" 'font-lock-face prefix-face) 2092 "\n :" 'font-lock-face prefix-face
2093 "\n :") 2093 'occur-target markers)
2094 (propertize
2095 "\n :" 'occur-target markers))
2094 ;; Add mouse face in one section to 2096 ;; Add mouse face in one section to
2095 ;; ensure the prefix and the string 2097 ;; ensure the prefix and the string
2096 ;; get a contiguous highlight. 2098 ;; get a contiguous highlight.