From c8d4af863727d25adc71f7bec906fddbd0fa0d58 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 7 Jun 2021 13:45:38 +0200 Subject: [PATCH] Support remote file names in `browse-url-of-buffer' * lisp/net/browse-url.el (browse-url-of-buffer): Use temporary file in case of remote `file-name'. (Bug#48397) --- lisp/net/browse-url.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 8157422d6f0..0220c7adf6e 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -806,6 +806,7 @@ narrowed." (or buffer-file-name (and (boundp 'dired-directory) dired-directory))))) (when (or (not file-name) + (file-remote-p file-name) ;; This can happen when we're looking at a file from a ;; zip file buffer, for instance. (not (file-exists-p file-name))) -- 2.39.5