# HG changeset patch # User Romain Francoise # Date 1130134772 0 # Node ID abd51aa4052e20c1739f5bd30186e36304c64fc0 # Parent adc5009cfc2a78292e8f8db0a708761897972b5f (occur-engine): Rearrange text properties. diff -r adc5009cfc2a -r abd51aa4052e lisp/ChangeLog --- a/lisp/ChangeLog Mon Oct 24 06:00:50 2005 +0000 +++ b/lisp/ChangeLog Mon Oct 24 06:19:32 2005 +0000 @@ -1,3 +1,7 @@ +2005-10-24 Romain Francoise + + * replace.el (occur-engine): Rearrange text properties. + 2005-10-23 Stefan Monnier * emacs-lisp/debug.el (debugger-make-xrefs): Don't assume diff -r adc5009cfc2a -r abd51aa4052e lisp/replace.el --- a/lisp/replace.el Mon Oct 24 06:00:50 2005 +0000 +++ b/lisp/replace.el Mon Oct 24 06:19:32 2005 +0000 @@ -1125,15 +1125,22 @@ (let* ((out-line (concat ;; Using 7 digits aligns tabs properly. - (apply #'propertize (format "%7d:" lines) + (apply #'propertize (format "%7d" lines) (append (when prefix-face `(font-lock-face prefix-face)) - '(occur-prefix t))) + `(occur-prefix t mouse-face highlight + occur-target ,marker follow-link t + help-echo "mouse-2: go to this occurrence"))) + ":" ;; We don't put `mouse-face' on the newline, ;; because that loses. And don't put it ;; on context lines to reduce flicker. - (propertize curstring 'mouse-face 'highlight) + (propertize curstring 'mouse-face 'highlight + 'occur-target marker + 'follow-link t + 'help-echo + "mouse-2: go to this occurrence") "\n")) (data (if (= nlines 0) @@ -1154,11 +1161,7 @@ (let ((beg (point)) (end (progn (insert data) (point)))) (unless (= nlines 0) - (insert "-------\n")) - (add-text-properties - beg end - `(occur-target ,marker follow-link t - help-echo "mouse-2: go to this occurrence"))))) + (insert "-------\n"))))) (goto-char endpt)) (if endpt (progn