]> code.delx.au - gnu-emacs/commitdiff
(gud-common-init): Use absolute file so that
authorNick Roberts <nickrob@snap.net.nz>
Sat, 23 Aug 2008 15:46:54 +0000 (15:46 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 23 Aug 2008 15:46:54 +0000 (15:46 +0000)
perldb works with tramp (sudo).

lisp/progmodes/gud.el

index 7c1970f7aa20a78e36e26f546dfc3108e3f3e8c3..f5e6218a432054224c6683ea502cc947b39681f6 100644 (file)
@@ -2502,7 +2502,9 @@ comint mode, which see."
       (if w
          (setcar w
                  (if (file-remote-p default-directory)
-                     (setq file (file-name-nondirectory file))
+                     ;; Tramp has already been loaded if we are here.
+                     (setq file (tramp-file-name-localname
+                                 (tramp-dissect-file-name file)))
                    file))))
     (apply 'make-comint (concat "gud" filepart) program nil
           (if massage-args (funcall massage-args file args) args))