changeset 5827:982503548902

(remote-compile): Set comint-file-name-prefix in the compilation buffer.
author Roland McGrath <roland@gnu.org>
date Mon, 07 Feb 1994 19:08:31 +0000
parents 2de9426a38bf
children 0c2b604b0385
files lisp/rcompile.el
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/rcompile.el	Mon Feb 07 18:40:13 1994 +0000
+++ b/lisp/rcompile.el	Mon Feb 07 19:08:31 1994 +0000
@@ -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 @@
                   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