Leo <[email protected]> writes:

>> As workaround, one could add the following lines in `magit-process-sentinel',
>> inside the `with-current-buffer' form (untested):
>>
>>   (with-parsed-tramp-file-name default-directory nil
>>     (tramp-flush-directory-property v (file-name-directory localname)))
>>
>> But this would be a crude hack.
>
> I can't think of a better way to handle this so I am using this hack for
> now. Thank you very much.

A more generic solution is to add at the same place in `magit-process-sentinel'

  (dired-uncache default-directory)

A small patch in tramp.el, which supports this, is just committed to the
Emacs and Tramp repositories.

This solution could also go into the official magit sources.

> BTW, do you see a general way to improve remote editing support in
> emacs, not necessarily within the tramp framework?

I haven't thought about.

> Best wishes,
> Leo

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to