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)
This commit is contained in:
Michael Albinus
2021-06-07 13:45:38 +02:00
parent 82ccc3afcf
commit c8d4af8637

View File

@@ -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)))