From: Nick Roberts Date: Sat, 23 Aug 2008 15:46:54 +0000 (+0000) Subject: (gud-common-init): Use absolute file so that X-Git-Tag: emacs-pretest-23.0.90~3341 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7131d2616670d2541e4ea165c98a57038be5da87;p=emacs.git (gud-common-init): Use absolute file so that perldb works with tramp (sudo). --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 7c1970f7aa2..f5e6218a432 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -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))