aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-05-01 05:22:08 +0000
committerColin Walters2002-05-01 05:22:08 +0000
commit52ab062c9673805dd6f66f32a02cfa7544d7805e (patch)
tree9077ca084d1e31f9370a32f4931d52416c557674
parent085917a552aa29dff38ebe83aec868f70c86280e (diff)
downloademacs-52ab062c9673805dd6f66f32a02cfa7544d7805e.tar.gz
emacs-52ab062c9673805dd6f66f32a02cfa7544d7805e.zip
(tex-validate-buffer): Use `occur-revert-arguments' instead of setting
`occur-nlines' and `occur-buffer'. Don't test for `input-pending-p' in loop. Set text property `occur-target' instead of `occur'.
-rw-r--r--lisp/textmodes/tex-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 81a36ac58d0..4d4a7d9302e 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -977,11 +977,12 @@ on the line for the invalidity you want to see."
977 (save-excursion 977 (save-excursion
978 (set-buffer standard-output) 978 (set-buffer standard-output)
979 (occur-mode) 979 (occur-mode)
980 (setq occur-buffer buffer) 980 ;; This won't actually work...Really, this whole thing should
981 (setq occur-nlines 0)) 981 ;; be rewritten instead of being a hack on top of occur.
982 (setq occur-revert-arguments (list nil 0 (list buffer))))
982 (save-excursion 983 (save-excursion
983 (goto-char (point-max)) 984 (goto-char (point-max))
984 (while (and (not (input-pending-p)) (not (bobp))) 985 (while (and (not (bobp)))
985 (let ((end (point)) 986 (let ((end (point))
986 prev-end) 987 prev-end)
987 ;; Scan the previous paragraph for invalidities. 988 ;; Scan the previous paragraph for invalidities.
@@ -1022,7 +1023,7 @@ on the line for the invalidity you want to see."
1022 '(mouse-face highlight 1023 '(mouse-face highlight
1023 help-echo "mouse-2: go to this invalidity")) 1024 help-echo "mouse-2: go to this invalidity"))
1024 (put-text-property text-beg (- text-end 1) 1025 (put-text-property text-beg (- text-end 1)
1025 'occur tem))))) 1026 'occur-target tem)))))
1026 (goto-char prev-end)))) 1027 (goto-char prev-end))))
1027 (with-current-buffer standard-output 1028 (with-current-buffer standard-output
1028 (if (eq num-matches 0) 1029 (if (eq num-matches 0)