emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Issue with org-persist and Tramp


From: Fabio Natali
Subject: Re: Issue with org-persist and Tramp
Date: Wed, 08 Nov 2023 17:40:57 +0000

On 2023-11-08, 09:25 +0000, Ihor Radchenko <yantar92@posteo.net> 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 share the backtrace with you.

This is how the issue can be reproduced on my system.

- Enable debug, `toggle-debug-on-quit'
- Open a remote file, `(find-file "/ssh:<remote-machine>:~/test.org")'
- Bring the remote machine offline
- Try to close the remote file, `kill-buffer'
- The system hangs for a while as it tries to reach the remote machine
- Quitting (`keyboard-quit') produces the following backtrace

#+begin_export ascii
Debugger entered--Lisp error: (quit "")
  signal(quit (""))
  tramp-error(nil quit "")
  tramp-signal-hook-function(quit (""))
  signal(quit (""))
  tramp-maybe-open-connection((tramp-file-name "ssh" nil nil "<remote-machine>" 
nil "/home/user/test.org" nil))
  tramp-send-command((tramp-file-name "ssh" nil nil "<remote-machine>" nil 
"/home/user/test.org" nil) "echo \\\"`getconf PATH 2>/dev/null`\\\" 
2>/dev/null; e...")
  tramp-send-command-and-check((tramp-file-name "ssh" nil nil 
"<remote-machine>" nil "/home/user/test.org" nil) "echo \\\"`getconf PATH 
2>/dev/null`\\\"")
  tramp-send-command-and-read((tramp-file-name "ssh" nil nil "<remote-machine>" 
nil "/home/user/test.org" nil) "echo \\\"`getconf PATH 2>/dev/null`\\\"" 
noerror)
  tramp-get-remote-path((tramp-file-name "ssh" nil nil "<remote-machine>" nil 
"/home/user/test.org" nil))
  tramp-get-remote-stat((tramp-file-name "ssh" nil nil "<remote-machine>" nil 
"/home/user/test.org" nil))
  tramp-sh-handle-file-attributes("/ssh:<remote-machine>:/home/user/test.org")
  tramp-sh-file-name-handler(file-attributes 
"/ssh:<remote-machine>:/home/user/test.org")
  apply(tramp-sh-file-name-handler file-attributes 
"/ssh:<remote-machine>:/home/user/test.org")
  tramp-file-name-handler(file-attributes 
"/ssh:<remote-machine>:/home/user/test.org")
  org-persist--normalize-associated(#<buffer test.org>)
  org-persist-write-all(#<buffer test.org>)
  org-persist-write-all-buffer()
  kill-buffer("test.org")
  funcall-interactively(kill-buffer "test.org")
  command-execute(kill-buffer)
#+end_export

Glad to share other info if helpful.

Thanks, cheers, Fabio.



reply via email to

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