From: Michael Albinus <michael.albinus@gmx.de>
To: Rajeev Narang <rajeev@sivalik.com>
Cc: 30324@debbugs.gnu.org
Subject: bug#30324: 26.0.91; cd-absolute to tramp directory fails
Date: Fri, 02 Feb 2018 23:24:30 +0100 [thread overview]
Message-ID: <87d11nxc69.fsf@gmx.de> (raw)
In-Reply-To: <87o9l7mp3s.fsf@hm.sivalik.com> (Rajeev Narang's message of "Fri, 02 Feb 2018 09:40:39 -0500")
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
Rajeev Narang <rajeev@sivalik.com> writes:
Hi Rajeev,
> When rlogin-directory-tracking-mode is set to t, rlogin directory tracking fails.
>
> This is because (cd-absolute "/USER@HOST:") fails in emacs-26. The same call succeeds in emacs-25.
rlogin.el still speaks about FTP access. This has worked until Emacs 25,
because ange-ftp.el and tramp.el have used the same file name
syntax. While ange.ftp.el uses ftp to access, Tramp has a variety of
connection methods. In case of absence, the default connection method is
used, often "ssh".
With Emacs 26, Tramp's file name syntax has changed. A method name is
mandatory now, at least "-" as indicator for the default method. The
obvious simple fix is
[-- Attachment #2: Type: text/plain, Size: 1039 bytes --]
diff --git a/lisp/net/rlogin.el b/lisp/net/rlogin.el
index 646adef2f0..3bfc4d7f35 100644
--- a/lisp/net/rlogin.el
+++ b/lisp/net/rlogin.el
@@ -219,7 +219,7 @@ rlogin
;; function, to avoid a gratuitous resync check; the default
;; should be the user's home directory, be it local or remote.
(setq comint-file-name-prefix
- (concat "/" rlogin-remote-user "@" rlogin-host ":"))
+ (concat "/-:" rlogin-remote-user "@" rlogin-host ":"))
(cd-absolute comint-file-name-prefix))
((null rlogin-directory-tracking-mode))
(t
@@ -253,7 +253,7 @@ rlogin-directory-tracking-mode
(setq rlogin-directory-tracking-mode t)
(setq shell-dirtrackp t)
(setq comint-file-name-prefix
- (concat "/" rlogin-remote-user "@" rlogin-host ":")))
+ (concat "/-:" rlogin-remote-user "@" rlogin-host ":")))
((< prefix 0)
(setq rlogin-directory-tracking-mode nil)
(setq shell-dirtrackp nil))
[-- Attachment #3: Type: text/plain, Size: 225 bytes --]
Could you pls test it? If it works, I propose to push it to the emacs-26
branch, because the patch is very simple (we know what we're doing,
don't we?), and it cures a regression from Emacs 25.
Eli?
Best regards, Michael.
next prev parent reply other threads:[~2018-02-02 22:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 14:40 bug#30324: 26.0.91; cd-absolute to tramp directory fails Rajeev Narang
2018-02-02 22:24 ` Michael Albinus [this message]
2018-02-02 22:45 ` Rajeev Narang
2018-02-03 8:36 ` Eli Zaretskii
2018-02-03 10:12 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d11nxc69.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=30324@debbugs.gnu.org \
--cc=rajeev@sivalik.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.