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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user