[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue with org-persist and Tramp
From: |
Ihor Radchenko |
Subject: |
Re: Issue with org-persist and Tramp |
Date: |
Sat, 11 Nov 2023 11:06:58 +0000 |
Fabio Natali <me@fabionatali.com> writes:
> Sorry for the delay. My results below, after testing a couple of
> different cases.
>
> If the remote file had been saved before losing connection, then the
> patch below will fix the problem. TRAMP will still hang for a while, as
> it tries to reach the server but the buffer will be closed immediately
> when using `tramp-cleanup-all-buffers' (or a variant thereof).
> ...
> (Apologies, the patch is badly formatted and not meant for the
> repository.) The gist is that I replaced an occurrence of `associated'
> with `file' in your latest patch, Ihor. It seems to work, what do you
> think?
I made the same change in my v2 patch.
Applied.
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=866e638c2
> However, if the remote file hadn't been saved, then TRAMP will still
> hang indefinitely. Quitting will reveal the following backtrace:
>
> Debugger entered--Lisp error: (quit "")
> ...
> tramp-file-name-handler(unlock-file "/ssh:192.168.1.100:~/test.org")
> kill-buffer("test.org")
> funcall-interactively(kill-buffer "test.org")
> command-execute(kill-buffer)
>
> This seems to be on the TRAMP side?
Yes.
You may consider customizing `remote-file-name-inhibit-locks'.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: Issue with org-persist and Tramp, (continued)
- Re: Issue with org-persist and Tramp, Ihor Radchenko, 2023/11/08
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/08
- Re: Issue with org-persist and Tramp, Ihor Radchenko, 2023/11/08
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/08
- Re: Issue with org-persist and Tramp, Ihor Radchenko, 2023/11/09
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/09
- Re: Issue with org-persist and Tramp, Ihor Radchenko, 2023/11/10
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/10
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/10
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/11
- Re: Issue with org-persist and Tramp,
Ihor Radchenko <=
- Re: Issue with org-persist and Tramp, Fabio Natali, 2023/11/11