aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-05-01 23:56:52 +0000
committerJuri Linkov2008-05-01 23:56:52 +0000
commit93c0985f4cfd8ff502cc314c6a836e55b38458ac (patch)
treede0bd06f03082be4c961911818846357c180a26d
parent360289a661cb8a72d83683ed5d636eb8d80160a4 (diff)
downloademacs-93c0985f4cfd8ff502cc314c6a836e55b38458ac.tar.gz
emacs-93c0985f4cfd8ff502cc314c6a836e55b38458ac.zip
(compilation-auto-jump): Set window point to `pos' explicitly.
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/progmodes/compile.el2
2 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 275e6dbeb0b..769f3898ac9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12008-05-01 Juri Linkov <juri@jurta.org>
2
3 * replace.el (occur-read-primary-args): Set default to the car of
4 regexp-history and display it in the prompt, but don't add to the
5 list of minibuffer defaults. Bind history-add-new-input to nil to
6 not add automatically `default'. For empty input return `default'.
7 Otherwise, add `input' to regexp-history and return it.
8 (occur-1): Signal an error for the empty regexp.
9
10 * progmodes/compile.el (compilation-auto-jump):
11 Set window point to `pos' explicitly.
12
12008-05-01 Eric S. Raymond <esr@snark.thyrsus.com> 132008-05-01 Eric S. Raymond <esr@snark.thyrsus.com>
2 14
3 * vc-bzr.el (vc-bzr-state): Allow this to return 'ignored 15 * vc-bzr.el (vc-bzr-state): Allow this to return 'ignored
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 2f5f329d0b1..89e9dedb69d 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -772,6 +772,8 @@ from a different message."
772(defun compilation-auto-jump (buffer pos) 772(defun compilation-auto-jump (buffer pos)
773 (with-current-buffer buffer 773 (with-current-buffer buffer
774 (goto-char pos) 774 (goto-char pos)
775 (let ((win (get-buffer-window buffer 0)))
776 (if win (set-window-point win pos)))
775 (if compilation-auto-jump-to-first-error 777 (if compilation-auto-jump-to-first-error
776 (compile-goto-error)))) 778 (compile-goto-error))))
777 779