tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I debug this?


From: Michael Albinus
Subject: Re: How do I debug this?
Date: Wed, 06 Sep 2017 18:24:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Mark Geary <address@hidden> writes:

Hi Mark,

>> Tramp doesn't trust (remote) login shells to be POSIX compatible. So it
>> uses /bin/sh remotely.
>
> Which, in practice, isn't always POSIX compatible, either.

Right. But at least csh-like shells are banned by this :-)

>    (add-to-list 'tramp-connection-properties
>               (list (regexp-quote "\(scp\|ssh\):sfmg1[0-4]:")
>                     "remote-shell" "/usr/bin/bash"))
>
> doesn't work.

(regexp-quote "\(scp\|ssh\):sfmg1[0-4]:") => "(scp|ssh):sfmg1\\[0-4]:"

This is not what you want. You want

   (add-to-list 'tramp-connection-properties
                (list "\\(scp\\|ssh\\):sfmg1[0-4]:"
                      "remote-shell" "/usr/bin/bash"))

> I gues there is another thing which isn't exactly a problem, but is an
> annoyance. When I'm editing a file on the FreeBSD machine. I fequently
> get messages [falsely] warning me that the file has changed on the
> remote host. This happened with both Emacs 23.1.1 and now with 25.2. I
> don't think I see this when connecting to any other machine.  How does
> Tramp check this, and do you have any ideas why it might be reporting
> false positives?

Hard to say, needs to debug. Emacs checks permanently, whether the
associated file of a buffer has been modified from external. This is
done by verify-visited-file-modtime, one needs to follow this
function.

If you have time, on a rainy Friday afternoon, you might want to might
call "M-x trace-function RET verify-visited-file-modtime RET" and follow
what happens. Likely, you need also to trace other related functions as
well.

> Mark Geary

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]