[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v |
Date: |
Tue, 12 Feb 2008 23:41:33 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 08/02/12 23:41:33
Index: compile.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.453
retrieving revision 1.454
diff -u -b -r1.453 -r1.454
--- compile.el 11 Feb 2008 04:10:49 -0000 1.453
+++ compile.el 12 Feb 2008 23:41:32 -0000 1.454
@@ -762,7 +762,8 @@
(defun compilation-auto-jump (buffer pos)
(with-current-buffer buffer
(goto-char pos)
- (compile-goto-error)))
+ (if compilation-auto-jump-to-first-error
+ (compile-goto-error))))
;; This function is the central driver, called when font-locking to gather
;; all information needed to later jump to corresponding source code.
@@ -1054,8 +1055,13 @@
Setting it causes the Compilation mode commands to put point at the
end of their output window so that the end of the output is always
-visible rather than the beginning."
- :type 'boolean
+visible rather than the beginning.
+
+The value `first-error' stops scrolling at the first error, and leaves
+point on its location in the *compilation* buffer."
+ :type '(choice (const :tag "No scrolling" nil)
+ (const :tag "Scroll compilation output" t)
+ (const :tag "Stop scrolling at the first error" first-error))
:version "20.3"
:group 'compilation)
@@ -1168,7 +1174,8 @@
(if highlight-regexp
(set (make-local-variable 'compilation-highlight-regexp)
highlight-regexp))
- (if compilation-auto-jump-to-first-error
+ (if (or compilation-auto-jump-to-first-error
+ (eq compilation-scroll-output 'first-error))
(set (make-local-variable 'compilation-auto-jump-to-next) t))
;; Output a mode setter, for saving and later reloading this buffer.
(insert "-*- mode: " name-of-mode
@@ -2160,7 +2167,8 @@
;; compilations, to set the beginning of "this compilation", it's a good
;; place to reset compilation-auto-jump-to-next.
(set (make-local-variable 'compilation-auto-jump-to-next)
- compilation-auto-jump-to-first-error))
+ (or compilation-auto-jump-to-first-error
+ (eq compilation-scroll-output 'first-error))))
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.gcov\\'" . compilation-mode))
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Stefan Monnier, 2008/02/09
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Glenn Morris, 2008/02/10
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v,
Juri Linkov <=
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Mark A. Hershberger, 2008/02/13
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Miles Bader, 2008/02/24
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Dan Nicolaescu, 2008/02/24
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Juri Linkov, 2008/02/24
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Jan Djärv, 2008/02/25
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Jan Djärv, 2008/02/26