aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/compile.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 034cdaf5fdd..895b97b462a 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1,7 +1,7 @@
1;;; compile.el --- run compiler as inferior of Emacs, parse error messages 1;;; compile.el --- run compiler as inferior of Emacs, parse error messages
2 2
3;; Copyright (C) 1985, 86, 87, 93, 94, 95, 96, 97, 98, 1999, 2001, 03, 2004 3;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; Free Software Foundation, Inc. 4;; 2001, 2003, 2004 Free Software Foundation, Inc.
5 5
6;; Authors: Roland McGrath <roland@gnu.org>, 6;; Authors: Roland McGrath <roland@gnu.org>,
7;; Daniel Pfeiffer <occitan@esperanto.org> 7;; Daniel Pfeiffer <occitan@esperanto.org>
@@ -638,14 +638,14 @@ FILE should be (ABSOLUTE-FILENAME) or (RELATIVE-FILENAME . DIRNAME) or nil."
638 (goto-char (marker-position marker)) 638 (goto-char (marker-position marker))
639 (when (or end-col end-line) 639 (when (or end-col end-line)
640 (beginning-of-line (- (or end-line line) marker-line -1)) 640 (beginning-of-line (- (or end-line line) marker-line -1))
641 (if (< end-col 0) 641 (if (or (null end-col) (< end-col 0))
642 (end-of-line) 642 (end-of-line)
643 (if compilation-error-screen-columns 643 (if compilation-error-screen-columns
644 (move-to-column end-col) 644 (move-to-column end-col)
645 (forward-char end-col))) 645 (forward-char end-col)))
646 (setq end-marker (list (point-marker)))) 646 (setq end-marker (list (point-marker))))
647 (beginning-of-line (if end-line 647 (beginning-of-line (if end-line
648 (- end-line line -1) 648 (- line end-line -1)
649 (- loc marker-line -1))) 649 (- loc marker-line -1)))
650 (if col 650 (if col
651 (if compilation-error-screen-columns 651 (if compilation-error-screen-columns