[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-exists-p can return t when file doesn't exist
From: |
Michael Albinus |
Subject: |
Re: file-exists-p can return t when file doesn't exist |
Date: |
Thu, 05 Aug 2010 10:24:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Leo <address@hidden> 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.
- file-exists-p can return t when file doesn't exist, Leo, 2010/08/01
- Re: file-exists-p can return t when file doesn't exist, Michael Albinus, 2010/08/02
- Re: file-exists-p can return t when file doesn't exist, Leo, 2010/08/02
- Re: file-exists-p can return t when file doesn't exist, Michael Albinus, 2010/08/02
- Re: file-exists-p can return t when file doesn't exist, Leo, 2010/08/04
- Re: file-exists-p can return t when file doesn't exist,
Michael Albinus <=
- Re: file-exists-p can return t when file doesn't exist, Leo, 2010/08/05
- Re: file-exists-p can return t when file doesn't exist, Michael Albinus, 2010/08/05
- Re: file-exists-p can return t when file doesn't exist, Leo, 2010/08/06