]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/progmodes/gud.el (gud-format-command): Fix last commit
authorEli Zaretskii <eliz@gnu.org>
Tue, 22 Sep 2015 10:16:11 +0000 (13:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 22 Sep 2015 10:16:11 +0000 (13:16 +0300)
* lisp/progmodes/gud.el (gud-format-command): Don't use Tramp internal
functions 'tramp-file-name-localname' and 'tramp-dissect-file-name'.

lisp/progmodes/gud.el

index 8b5d4901b28e5d91a15e1bc7c71bc42c2ddba4a2..1284ef2857add991e01b5cad12cf0f2c857cf7e4 100644 (file)
@@ -2856,10 +2856,9 @@ Obeying it means displaying in another window the specified file and line."
   (let ((insource (not (eq (current-buffer) gud-comint-buffer)))
        (frame (or gud-last-frame gud-last-last-frame))
        (buffer-file-name-localized
-        (if (and (buffer-file-name) (file-remote-p (buffer-file-name)))
-            (tramp-file-name-localname (tramp-dissect-file-name
-                                        (buffer-file-name) t))
-          (buffer-file-name)))
+         (and (buffer-file-name)
+              (or (file-remote-p (buffer-file-name) 'localname)
+                  (buffer-file-name))))
        result)
     (while (and str
                (let ((case-fold-search nil))