aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 2d79754b4f0..bb72acdf2cf 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1125,15 +1125,22 @@ See also `multi-occur'."
1125 (let* ((out-line 1125 (let* ((out-line
1126 (concat 1126 (concat
1127 ;; Using 7 digits aligns tabs properly. 1127 ;; Using 7 digits aligns tabs properly.
1128 (apply #'propertize (format "%7d:" lines) 1128 (apply #'propertize (format "%7d" lines)
1129 (append 1129 (append
1130 (when prefix-face 1130 (when prefix-face
1131 `(font-lock-face prefix-face)) 1131 `(font-lock-face prefix-face))
1132 '(occur-prefix t))) 1132 `(occur-prefix t mouse-face highlight
1133 occur-target ,marker follow-link t
1134 help-echo "mouse-2: go to this occurrence")))
1135 ":"
1133 ;; We don't put `mouse-face' on the newline, 1136 ;; We don't put `mouse-face' on the newline,
1134 ;; because that loses. And don't put it 1137 ;; because that loses. And don't put it
1135 ;; on context lines to reduce flicker. 1138 ;; on context lines to reduce flicker.
1136 (propertize curstring 'mouse-face 'highlight) 1139 (propertize curstring 'mouse-face 'highlight
1140 'occur-target marker
1141 'follow-link t
1142 'help-echo
1143 "mouse-2: go to this occurrence")
1137 "\n")) 1144 "\n"))
1138 (data 1145 (data
1139 (if (= nlines 0) 1146 (if (= nlines 0)
@@ -1154,11 +1161,7 @@ See also `multi-occur'."
1154 (let ((beg (point)) 1161 (let ((beg (point))
1155 (end (progn (insert data) (point)))) 1162 (end (progn (insert data) (point))))
1156 (unless (= nlines 0) 1163 (unless (= nlines 0)
1157 (insert "-------\n")) 1164 (insert "-------\n")))))
1158 (add-text-properties
1159 beg end
1160 `(occur-target ,marker follow-link t
1161 help-echo "mouse-2: go to this occurrence")))))
1162 (goto-char endpt)) 1165 (goto-char endpt))
1163 (if endpt 1166 (if endpt
1164 (progn 1167 (progn