Mercurial > emacs
changeset 97641:7f22f71742f0
(gud-common-init): Use absolute file so that
perldb works with tramp (sudo).
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Sat, 23 Aug 2008 15:46:54 +0000 |
parents | e8a6bae97201 |
children | 4332a13750d7 |
files | lisp/progmodes/gud.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))