1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

(next-error): Do a redisplay to prevent incorrect

recentering (workaround for bug#197).
This commit is contained in:
Chong Yidong 2008-07-28 20:02:04 +00:00
parent cf711abf49
commit 2f9e82278e

View 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."