# HG changeset patch # User Colin Walters # Date 1022201806 0 # Node ID 177f92e9f497ed2a5548ec9bea27dc08393f1762 # Parent acd9cfbcd177f57056bedc577398d849d1ff5a66 (occur-engine): Include all text properties except mouse-face on the newline at the end of occurences. diff -r acd9cfbcd177 -r 177f92e9f497 lisp/replace.el --- a/lisp/replace.el Fri May 24 00:56:33 2002 +0000 +++ b/lisp/replace.el Fri May 24 00:56:46 2002 +0000 @@ -824,10 +824,11 @@ (unless (= nlines 0) (insert "-------\n")) (add-text-properties - beg (1- end) - `(occur-target ,marker - mouse-face highlight help-echo - "mouse-2: go to this occurrence"))))) + beg end + `(occur-target ,marker help-echo "mouse-2: go to this occurrence")) + ;; We don't put `mouse-face' on the newline, + ;; because that loses. + (add-text-properties beg (1- end) '(mouse-face highlight))))) (goto-char endpt)) (if endpt (progn