summaryrefslogtreecommitdiff
path: root/lisp/obsolete/rcompile.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/obsolete/rcompile.el')
-rw-r--r--lisp/obsolete/rcompile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/obsolete/rcompile.el b/lisp/obsolete/rcompile.el
index fbfc0c6bbca..ceffb072cb4 100644
--- a/lisp/obsolete/rcompile.el
+++ b/lisp/obsolete/rcompile.el
@@ -167,7 +167,7 @@ See \\[compile]."
(compilation-start compile-command)
;; Set comint-file-name-prefix in the compilation buffer so
;; compilation-parse-errors will find referenced files by Tramp.
- (with-current-buffer compilation-last-buffer
+ (with-current-buffer next-error-last-buffer
(when (fboundp 'tramp-make-tramp-file-name)
(set (make-local-variable 'comint-file-name-prefix)
(funcall