diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-11-07 00:49:17 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-11-07 00:49:17 +0000 |
commit | 8dfb3e16101f355f731da5272cac6266aec06af3 (patch) | |
tree | e074823b0201f50354e6f2968ea5aa7430fd4fe4 | |
parent | 9514fb7f5ebf40e7e1d2565cda4e8ffca99b15da (diff) | |
download | emacs-8dfb3e16101f355f731da5272cac6266aec06af3.tar.gz emacs-8dfb3e16101f355f731da5272cac6266aec06af3.tar.bz2 emacs-8dfb3e16101f355f731da5272cac6266aec06af3.zip |
(compilation-internal-error-properties):
save-excursion around the computation of MARKER.
-rw-r--r-- | lisp/progmodes/compile.el | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d041fa366c8..a158ad3f4e0 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -707,24 +707,25 @@ FMTS is a list of format specs for transforming the file name. (setq marker (nth 3 (cadr marker-line)) marker-line (or (car marker-line) 1)) (with-current-buffer (marker-buffer marker) - (save-restriction - (widen) - (goto-char (marker-position marker)) - (when (or end-col end-line) - (beginning-of-line (- (or end-line line) marker-line -1)) - (if (or (null end-col) (< end-col 0)) - (end-of-line) - (compilation-move-to-column - end-col compilation-error-screen-columns)) - (setq end-marker (list (point-marker)))) - (beginning-of-line (if end-line - (- line end-line -1) - (- loc marker-line -1))) - (if col - (compilation-move-to-column - col compilation-error-screen-columns) - (forward-to-indentation 0)) - (setq marker (list (point-marker)))))) + (save-excursion + (save-restriction + (widen) + (goto-char (marker-position marker)) + (when (or end-col end-line) + (beginning-of-line (- (or end-line line) marker-line -1)) + (if (or (null end-col) (< end-col 0)) + (end-of-line) + (compilation-move-to-column + end-col compilation-error-screen-columns)) + (setq end-marker (list (point-marker)))) + (beginning-of-line (if end-line + (- line end-line -1) + (- loc marker-line -1))) + (if col + (compilation-move-to-column + col compilation-error-screen-columns) + (forward-to-indentation 0)) + (setq marker (list (point-marker))))))) (setq loc (compilation-assq line (cdr file-struct))) (if end-line |