aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRoland McGrath1994-03-04 06:11:51 +0000
committerRoland McGrath1994-03-04 06:11:51 +0000
commit31efa7c9f6a228e55c62f37b7bbec8bf884f2398 (patch)
tree5c340f4255cac59790ac264ed82aa02e65ea3769 /lisp
parent9239c6c1ee1034cbc8e9c7e02837a6b158334733 (diff)
downloademacs-31efa7c9f6a228e55c62f37b7bbec8bf884f2398.tar.gz
emacs-31efa7c9f6a228e55c62f37b7bbec8bf884f2398.zip
(compile-goto-error): Push the mark before calling next-error.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/compile.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 0e3b30e5691..f72b0b6eb07 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -679,7 +679,7 @@ Does NOT find the source line like \\[next-error]."
679 679
680(defun compile-goto-error (&optional argp) 680(defun compile-goto-error (&optional argp)
681 "Visit the source for the error message point is on. 681 "Visit the source for the error message point is on.
682Use this command in a compilation log buffer. 682Use this command in a compilation log buffer. Sets the mark at point there.
683\\[universal-argument] as a prefix arg means to reparse the buffer's error messages first; 683\\[universal-argument] as a prefix arg means to reparse the buffer's error messages first;
684other kinds of prefix arguments are ignored." 684other kinds of prefix arguments are ignored."
685 (interactive "P") 685 (interactive "P")
@@ -707,6 +707,7 @@ other kinds of prefix arguments are ignored."
707 ;; but we didn't want to do that. 707 ;; but we didn't want to do that.
708 (set-buffer compilation-last-buffer))) 708 (set-buffer compilation-last-buffer)))
709 709
710 (push-mark)
710 (next-error 1)) 711 (next-error 1))
711 712
712;; Return a compilation buffer. 713;; Return a compilation buffer.