]> git.eshelyaron.com Git - emacs.git/commitdiff
Support remote file names in `browse-url-of-buffer'
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 7 Jun 2021 11:45:38 +0000 (13:45 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 7 Jun 2021 11:45:38 +0000 (13:45 +0200)
* 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

index 8157422d6f020dcc1e2a2db9a5b0651d741cca72..0220c7adf6efed1c88bfc8897669e16d238e6377 100644 (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)))