diff options
| author | Romain Francoise | 2005-10-24 06:19:32 +0000 |
|---|---|---|
| committer | Romain Francoise | 2005-10-24 06:19:32 +0000 |
| commit | c7cad90c7ee1e65fdffdf9141b1b3abb418604bc (patch) | |
| tree | 1acad7fb6b183673b9548bf247a84490e1a0cfcc | |
| parent | 97c60a3863192eba826284fa85a83ef97e726e21 (diff) | |
| download | emacs-c7cad90c7ee1e65fdffdf9141b1b3abb418604bc.tar.gz emacs-c7cad90c7ee1e65fdffdf9141b1b3abb418604bc.zip | |
(occur-engine): Rearrange text properties.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/replace.el | 19 |
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a76397a03da..9c8cf2aece5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2005-10-24 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * replace.el (occur-engine): Rearrange text properties. | ||
| 4 | |||
| 1 | 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * emacs-lisp/debug.el (debugger-make-xrefs): Don't assume | 7 | * emacs-lisp/debug.el (debugger-make-xrefs): Don't assume |
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 |