# HG changeset patch # User Nick Roberts # Date 1219506414 0 # Node ID 7f22f71742f06ad7662ee3c8093f36caa97337e2 # Parent e8a6bae972012ba71e5608de9a05f95c74255cc8 (gud-common-init): Use absolute file so that perldb works with tramp (sudo). diff -r e8a6bae97201 -r 7f22f71742f0 lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Sat Aug 23 15:45:27 2008 +0000 +++ b/lisp/progmodes/gud.el Sat Aug 23 15:46:54 2008 +0000 @@ -2502,7 +2502,9 @@ (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))