diff options
| author | Nick Roberts | 2008-08-23 15:46:54 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-08-23 15:46:54 +0000 |
| commit | 7131d2616670d2541e4ea165c98a57038be5da87 (patch) | |
| tree | 3c1547620d9185319b67e5c90339412e74122151 | |
| parent | 631582299ff6ae2d42faf8d3ce7968679729b421 (diff) | |
| download | emacs-7131d2616670d2541e4ea165c98a57038be5da87.tar.gz emacs-7131d2616670d2541e4ea165c98a57038be5da87.zip | |
(gud-common-init): Use absolute file so that
perldb works with tramp (sudo).
| -rw-r--r-- | lisp/progmodes/gud.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 2502 | (if w | 2502 | (if w |
| 2503 | (setcar w | 2503 | (setcar w |
| 2504 | (if (file-remote-p default-directory) | 2504 | (if (file-remote-p default-directory) |
| 2505 | (setq file (file-name-nondirectory file)) | 2505 | ;; Tramp has already been loaded if we are here. |
| 2506 | (setq file (tramp-file-name-localname | ||
| 2507 | (tramp-dissect-file-name file))) | ||
| 2506 | file)))) | 2508 | file)))) |
| 2507 | (apply 'make-comint (concat "gud" filepart) program nil | 2509 | (apply 'make-comint (concat "gud" filepart) program nil |
| 2508 | (if massage-args (funcall massage-args file args) args)) | 2510 | (if massage-args (funcall massage-args file args) args)) |