From: Michael Albinus Date: Mon, 7 Jun 2021 11:45:38 +0000 (+0200) Subject: Support remote file names in `browse-url-of-buffer' X-Git-Tag: emacs-28.0.90~2172 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c8d4af863727d25adc71f7bec906fddbd0fa0d58;p=emacs.git 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) --- 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)))