summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/flymake.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 8854d57915c..d137284f795 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -806,11 +806,13 @@ line number outside the file being compiled."
(defun flymake-highlight-err-lines (buffer err-info-list)
"Highlight error lines in BUFFER using info from ERR-INFO-LIST."
(with-current-buffer buffer
+ (save-excursion
(let* ((idx 0)
(count (length err-info-list)))
(while (< idx count)
- (flymake-highlight-line (car (nth idx err-info-list)) (nth 1 (nth idx err-info-list)))
- (setq idx (1+ idx))))))
+ (flymake-highlight-line (car (nth idx err-info-list))
+ (nth 1 (nth idx err-info-list)))
+ (setq idx (1+ idx)))))))
(defun flymake-overlay-p (ov)
"Determine whether overlay OV was created by flymake."