emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6413f08 2/2: Occur-mode multi-line match property gap filling


From: Mattias Engdegård
Subject: master 6413f08 2/2: Occur-mode multi-line match property gap filling
Date: Sat, 31 Jul 2021 16:47:48 -0400 (EDT)

branch: master
commit 6413f08887ccb4fa8049f4665bba4f77368f15c6
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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.
---
 lisp/replace.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/replace.el b/lisp/replace.el
index d0c6366..148b7ce 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2089,8 +2089,10 @@ See also `multi-occur'."
                                "\n"
                                (if prefix-face
                                    (propertize
-                                    "\n       :" 'font-lock-face prefix-face)
-                                 "\n       :")
+                                    "\n       :" 'font-lock-face prefix-face
+                                     'occur-target markers)
+                                  (propertize
+                                  "\n       :" 'occur-target markers))
                                 ;; Add mouse face in one section to
                                 ;; ensure the prefix and the string
                                 ;; get a contiguous highlight.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]