|
From: | Max Nikulin |
Subject: | Re: [BUG] Partially broken Org mode when remote setupfile is unavailable |
Date: | Wed, 27 Mar 2024 21:33:55 +0700 |
User-agent: | Mozilla Thunderbird |
On 20/03/2024 19:15, Ihor Radchenko wrote:
Max Nikulin writes:#+setupfile: /dav:localhost#8000:/setup-dav-123.org
[...]
Package ‘tramp-gvfs’ not supported File mode specification error: (user-error Package `tramp-gvfs' not supported)
[...]
- When point is on any non-empty line, RET is brokensave-excursion: Wrong type argument: stringp, nil
[...]
This is because `file-remote-p' throws an error. [...] See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68976
Thanks for the link. I would consider a workaround: (defun org-file-remote-p (file &rest args) (condition-case err (apply #'file-remote-p file args) ('user-error (let ((file (apply #'tramp-file-name-for-operation #'file-remote-p file args))) (and (tramp-tramp-file-p file) (tramp-handle-file-remote-p file))))))
[Prev in Thread] | Current Thread | [Next in Thread] |