aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-07-28 20:02:04 +0000
committerChong Yidong2008-07-28 20:02:04 +0000
commit2f9e82278e047db15bc487bbd07356f808c10b7a (patch)
tree54f1be8d38a8823ec576748384670ba2de535b33
parentcf711abf492da7dc5da6a089578043669176ebe0 (diff)
downloademacs-2f9e82278e047db15bc487bbd07356f808c10b7a.tar.gz
emacs-2f9e82278e047db15bc487bbd07356f808c10b7a.zip
(next-error): Do a redisplay to prevent incorrect
recentering (workaround for bug#197).
-rw-r--r--lisp/simple.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index c6acebbb83d..75d23fe1c17 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -306,7 +306,10 @@ See variables `compilation-parse-errors-function' and
306 ;; we know here that next-error-function is a valid symbol we can funcall 306 ;; we know here that next-error-function is a valid symbol we can funcall
307 (with-current-buffer next-error-last-buffer 307 (with-current-buffer next-error-last-buffer
308 (funcall next-error-function (prefix-numeric-value arg) reset) 308 (funcall next-error-function (prefix-numeric-value arg) reset)
309 (run-hooks 'next-error-hook)))) 309 (run-hooks 'next-error-hook)))
310 ;; This is a workaround for a redisplay bug (bug#197). The proper
311 ;; fix is in the trunk: see the 2008-07-28 change to xdisp.c by cyd.
312 (redisplay))
310 313
311(defun next-error-internal () 314(defun next-error-internal ()
312 "Visit the source code corresponding to the `next-error' message at point." 315 "Visit the source code corresponding to the `next-error' message at point."