Re: Issue with org-persist and Tramp

2023-11-11 Thread Fabio Natali
On 2023-11-11, 11:06 +, Ihor Radchenko wrote: > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=866e638c2 Super, thanks for helping with this, Ihor. 🙏 > You may consider customizing `remote-file-name-inhibit-locks'. Ah! Good to know, thanks. Cheers, F.

Re: Issue with org-persist and Tramp

2023-11-11 Thread Ihor Radchenko
Fabio Natali 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 buff

Re: Issue with org-persist and Tramp

2023-11-11 Thread Fabio Natali
On 2023-11-10, 11:26 +, Fabio Natali wrote: > On 2023-11-10, 11:13 +, Fabio Natali wrote: >> Brilliant. I think the second branch should read `(not (file-remote-p >> file))', i.e. `file' instead of `associated'? It seems to work with that >> micro amendment. > > Hm, I stand corrected, I r

Re: Issue with org-persist and Tramp

2023-11-10 Thread Fabio Natali
On 2023-11-10, 11:13 +, Fabio Natali wrote: > Brilliant. I think the second branch should read `(not (file-remote-p > file))', i.e. `file' instead of `associated'? It seems to work with that > micro amendment. Hm, I stand corrected, I retested it end-to-end and no, it doesn't seem to work. I'

Re: Issue with org-persist and Tramp

2023-11-10 Thread Fabio Natali
On 2023-11-10, 09:26 +, Ihor Radchenko wrote: > What about the attached patch? Hi Ihor, Brilliant. I think the second branch should read `(not (file-remote-p file))', i.e. `file' instead of `associated'? It seems to work with that micro amendment. Anything else I should be testing or does t

Re: Issue with org-persist and Tramp

2023-11-10 Thread Ihor Radchenko
Fabio Natali writes: > On 2023-11-09, 12:17 +, Ihor Radchenko wrote: >> May I know what >>(file-remote-p "/ssh::/home/user/test.org") >> (with appropriate ) returns on your side? > > Hi Ihor, > > Sure, no particular reason to obfuscate the remote address, it's > actually a LAN IP. The ab

Re: Issue with org-persist and Tramp

2023-11-09 Thread Fabio Natali
On 2023-11-09, 12:17 +, Ihor Radchenko wrote: > May I know what >(file-remote-p "/ssh::/home/user/test.org") > (with appropriate ) returns on your side? Hi Ihor, Sure, no particular reason to obfuscate the remote address, it's actually a LAN IP. The above function returns "/ssh:192.168.1

Re: Issue with org-persist and Tramp

2023-11-09 Thread Ihor Radchenko
Fabio Natali writes: > On 2023-11-08, 18:01 +, Ihor Radchenko wrote: >> I see the problem now. >> Does the attached patch solve the "freeze"? > > Hey, thanks for sending this, really appreciate it. > > Unfortunately that didn't seem to fix it though. Here's what I did. > > - Added `(not (fil

Re: Issue with org-persist and Tramp

2023-11-08 Thread Fabio Natali
On 2023-11-08, 18:01 +, Ihor Radchenko wrote: > I see the problem now. > Does the attached patch solve the "freeze"? Hey, thanks for sending this, really appreciate it. Unfortunately that didn't seem to fix it though. Here's what I did. - Added `(not (file-remote-p associated))' to the righ

Re: Issue with org-persist and Tramp

2023-11-08 Thread Ihor Radchenko
Fabio Natali writes: > Thanks for your email. Sure, glad to share the backtrace with you. > ... > tramp-file-name-handler(file-attributes > "/ssh::/home/user/test.org") > org-persist--normalize-associated(#) I see the problem now. Does the attached patch solve the "freeze"? >From ac571f965

Re: Issue with org-persist and Tramp

2023-11-08 Thread Fabio Natali
On 2023-11-08, 09:25 +, Ihor Radchenko wrote: > May you please share the backtrace? > In particular, may you (1) M-x toggle-debug-on-quit (2) try to close the > problematic file; observe Emacs "freeze" (3) C-g and post the obtained > backtrace. Hi Ihor, Thanks for your email. Sure, glad to s

Re: Issue with org-persist and Tramp

2023-11-08 Thread Ihor Radchenko
Fabio Natali writes: > I seem to be having an issue with org-persist and Tramp which is close > to what discussed in this thread: > > https://lists.gnu.org/archive/html//emacs-orgmode/2022-05/msg00720.html After that thread, Org should not (by default) examine remote files. > - I open a Org fil

Re: Issue with org-persist and Tramp

2023-11-08 Thread Fabio Natali
On 2023-11-07, 22:08 +0100, Antonio Carlos Padoan Junior wrote: > My workaround is to save the buffer locally (perhaps in /tmp). This > action releases the buffer. Hi Antonio, Thanks for getting back to me. Unfortunately your work-around doesn't seem to work in my case. Just to make sure I'm n

Re: Issue with org-persist and Tramp

2023-11-07 Thread Antonio Carlos Padoan Junior
Hello Fabio, Fabio Natali writes: > Hi, > > I seem to be having an issue with org-persist and Tramp which is close > to what discussed in this thread: > > https://lists.gnu.org/archive/html//emacs-orgmode/2022-05/msg00720.html > > - I open a Org file on a remote machine, via Tramp. > - The SSH c