(compilation-auto-jump): Set window point to `pos' explicitly.
authorJuri Linkov <juri@jurta.org>
Thu, 1 May 2008 23:56:52 +0000 (23:56 +0000)
committerJuri Linkov <juri@jurta.org>
Thu, 1 May 2008 23:56:52 +0000 (23:56 +0000)
lisp/ChangeLog
lisp/progmodes/compile.el

index 275e6db..769f389 100644 (file)
@@ -1,3 +1,15 @@
+2008-05-01  Juri Linkov  <juri@jurta.org>
+
+       * replace.el (occur-read-primary-args): Set default to the car of
+       regexp-history and display it in the prompt, but don't add to the
+       list of minibuffer defaults.  Bind history-add-new-input to nil to
+       not add automatically `default'.  For empty input return `default'.
+       Otherwise, add `input' to regexp-history and return it.
+       (occur-1): Signal an error for the empty regexp.
+
+       * progmodes/compile.el (compilation-auto-jump):
+       Set window point to `pos' explicitly.
+
 2008-05-01  Eric S. Raymond  <esr@snark.thyrsus.com>
 
        * vc-bzr.el (vc-bzr-state): Allow this to return 'ignored
index 2f5f329..89e9ded 100644 (file)
@@ -772,6 +772,8 @@ from a different message."
 (defun compilation-auto-jump (buffer pos)
   (with-current-buffer buffer
     (goto-char pos)
+    (let ((win (get-buffer-window buffer 0)))
+      (if win (set-window-point win pos)))
     (if compilation-auto-jump-to-first-error
        (compile-goto-error))))