]> git.eshelyaron.com Git - emacs.git/commitdiff
(remote-compile): Set comint-file-name-prefix in the compilation buffer.
authorRoland McGrath <roland@gnu.org>
Mon, 7 Feb 1994 19:08:31 +0000 (19:08 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 7 Feb 1994 19:08:31 +0000 (19:08 +0000)
lisp/rcompile.el

index 9c0e4f277ccd44fcd712d516a0ff1275ecc5708c..7b72686d590059018c1afa0f3ae60bf06dc92a42 100644 (file)
@@ -1,6 +1,6 @@
 ;;; rcompile.el Run a compilation on a remote machine
 
-;;; Copyright (C) 1993 Free Software Foundation, Inc.
+;;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
 
 ;; Author: Albert    <alon@milcse.rtsg.mot.com>
 ;; Maintainer: FSF
@@ -163,6 +163,11 @@ See \\[compile]."
                   compile-command)))
     (setq remote-compile-host host)
     (save-some-buffers nil nil)
-    (compile-internal compile-command "No more errors")))
+    (compile-internal compile-command "No more errors")
+    ;; Set comint-file-name-prefix in the compilation buffer so
+    ;; compilation-parse-errors will find referenced files by ange-ftp.
+    (save-excursion
+      (set-buffer compilation-last-buffer)
+      (setq comint-file-name-prefix (concat "/" host ":")))))
 
 ;;; rcompile.el ends here