]> git.eshelyaron.com Git - emacs.git/commitdiff
(next-error): Do a redisplay to prevent incorrect
authorChong Yidong <cyd@stupidchicken.com>
Mon, 28 Jul 2008 20:02:04 +0000 (20:02 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 28 Jul 2008 20:02:04 +0000 (20:02 +0000)
recentering (workaround for bug#197).

lisp/simple.el

index c6acebbb83d2a65298c5187e167339522e156121..75d23fe1c173a447a2c53a05b3918f5f2d87788c 100644 (file)
@@ -306,7 +306,10 @@ See variables `compilation-parse-errors-function' and
     ;; we know here that next-error-function is a valid symbol we can funcall
     (with-current-buffer next-error-last-buffer
       (funcall next-error-function (prefix-numeric-value arg) reset)
-      (run-hooks 'next-error-hook))))
+      (run-hooks 'next-error-hook)))
+  ;; This is a workaround for a redisplay bug (bug#197).  The proper
+  ;; fix is in the trunk: see the 2008-07-28 change to xdisp.c by cyd.
+  (redisplay))
 
 (defun next-error-internal ()
   "Visit the source code corresponding to the `next-error' message at point."