diff options
| author | Dave Love | 1999-02-05 15:19:54 +0000 |
|---|---|---|
| committer | Dave Love | 1999-02-05 15:19:54 +0000 |
| commit | 41a3354e11e2a16599c192c3e26f12a8ffa1b9bc (patch) | |
| tree | 475029cecd8f47190d138cf18cef59c4c9c7ece5 | |
| parent | f3ac545f7d2d71eaa31f1a56f729a428f94e71d2 (diff) | |
| download | emacs-41a3354e11e2a16599c192c3e26f12a8ffa1b9bc.tar.gz emacs-41a3354e11e2a16599c192c3e26f12a8ffa1b9bc.zip | |
(compile-mouse-goto-error): Don't lose with
null markers.
(compile-goto-error): Likewise.
| -rw-r--r-- | lisp/progmodes/compile.el | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 87f8cfc5d11..138660d3502 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1,6 +1,6 @@ | |||
| 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, 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 86, 87, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Roland McGrath <roland@prep.ai.mit.edu> | 5 | ;; Author: Roland McGrath <roland@prep.ai.mit.edu> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -1295,7 +1295,11 @@ at the end of the line." | |||
| 1295 | ;; we want. | 1295 | ;; we want. |
| 1296 | (setq compilation-error-list compilation-old-error-list) | 1296 | (setq compilation-error-list compilation-old-error-list) |
| 1297 | (while (and compilation-error-list | 1297 | (while (and compilation-error-list |
| 1298 | (> (point) (car (car compilation-error-list)))) | 1298 | ;; The marker can point nowhere if we previously |
| 1299 | ;; failed to find the relevant file. See | ||
| 1300 | ;; compilation-next-error-locus. | ||
| 1301 | (or (null (marker-buffer (caar compilation-error-list))) | ||
| 1302 | (> (point) (caar compilation-error-list)))) | ||
| 1299 | (setq compilation-error-list (cdr compilation-error-list))) | 1303 | (setq compilation-error-list (cdr compilation-error-list))) |
| 1300 | (or compilation-error-list | 1304 | (or compilation-error-list |
| 1301 | (error "No error to go to"))) | 1305 | (error "No error to go to"))) |
| @@ -1322,7 +1326,11 @@ other kinds of prefix arguments are ignored." | |||
| 1322 | ;; we want. | 1326 | ;; we want. |
| 1323 | (setq compilation-error-list compilation-old-error-list) | 1327 | (setq compilation-error-list compilation-old-error-list) |
| 1324 | (while (and compilation-error-list | 1328 | (while (and compilation-error-list |
| 1325 | (> (point) (car (car compilation-error-list)))) | 1329 | ;; The marker can point nowhere if we previously |
| 1330 | ;; failed to find the relevant file. See | ||
| 1331 | ;; compilation-next-error-locus. | ||
| 1332 | (or (null (marker-buffer (caar compilation-error-list))) | ||
| 1333 | (> (point) (caar compilation-error-list)))) | ||
| 1326 | (setq compilation-error-list (cdr compilation-error-list))) | 1334 | (setq compilation-error-list (cdr compilation-error-list))) |
| 1327 | 1335 | ||
| 1328 | (push-mark) | 1336 | (push-mark) |