* comint.el (comint-mode): Make directory tracking functions
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 6 Aug 2010 13:53:59 +0000 (15:53 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 6 Aug 2010 13:53:59 +0000 (15:53 +0200)
functional on remote files.  (Bug#6764)

lisp/ChangeLog
lisp/comint.el

index 4e09f85..67ff0d9 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-06  Jürgen Hötzel  <juergen@archlinux.org>
+
+       * comint.el (comint-mode): Make directory tracking functions
+       functional on remote files.  (Bug#6764)
+
 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc/diff-mode.el (diff-mode-shared-map): Bind g to revert-buffer.
index 071537f..128965f 100644 (file)
@@ -674,6 +674,9 @@ Entry to this mode runs the hooks on `comint-mode-hook'."
   (make-local-variable 'comint-process-echoes)
   (make-local-variable 'comint-file-name-chars)
   (make-local-variable 'comint-file-name-quote-list)
+  ;; dir tracking on remote files
+  (set (make-local-variable 'comint-file-name-prefix)
+       (or (file-remote-p default-directory) ""))
   (make-local-variable 'comint-accum-marker)
   (setq comint-accum-marker (make-marker))
   (make-local-variable 'font-lock-defaults)