GNU bug report logs -
#26014
25.1; `browse-url-of-buffer' fails on Windows 10 if the path contains spaces
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26014 in the body.
You can then email your comments to 26014 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26014
; Package
emacs
.
(Tue, 07 Mar 2017 15:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Klaus-Dieter Bauer <bauer.klaus.dieter <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 07 Mar 2017 15:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
It seems that w32-shell-execute cannot handle file://-URIs with url-escaped
spaces, causing browse-url-of-file to fail. I observed this issue when
trying to to markdown-export-and-preview from markdown-mode.el, but the
issue also occurs with browse-url-of-buffer.
To reproduce, create a file C-x f c:/tmp/file with spaces.html and execute M-:
(browse-url-of-buffer).
It will generate the backtrace
Debugger entered--Lisp error: (error "ShellExecute failed: Das System
kann die angegebene Datei nicht finden.")
w32-shell-execute("open" "file:///c:/tmp/a%20file%20with%20spaces.html")
browse-url-default-windows-browser("file:///c:/tmp/a%20file%20with%20spaces.html"
nil)
apply(browse-url-default-windows-browser
"file:///c:/tmp/a%20file%20with%20spaces.html" nil)
browse-url-default-browser("file:///c:/tmp/a%20file%20with%20spaces.html" nil)
apply(browse-url-default-browser
"file:///c:/tmp/a%20file%20with%20spaces.html" nil)
browse-url("file:///c:/tmp/a%20file%20with%20spaces.html")
browse-url-of-file("c:/tmp/a file with spaces.html")
browse-url-of-buffer()
For reference, calling
(browse-url "file:///c:/tmp/a file with spaces.html")
works as intended.
------------------------------
In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
of 2016-09-17 built on KAEL
Windowing system distributor 'Microsoft Corp.', version 10.0.14393
Configured using:
'configure --prefix=/tmp/emacs --without-imagemagick 'CFLAGS=-O2
-fomit-frame-pointer -g0''
Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26014
; Package
emacs
.
(Tue, 07 Mar 2017 16:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26014 <at> debbugs.gnu.org (full text, mbox):
> From: Klaus-Dieter Bauer <bauer.klaus.dieter <at> gmail.com>
> Date: Tue, 7 Mar 2017 16:53:41 +0100
>
> It seems that w32-shell-execute cannot handle file://-URIs with url-escaped spaces, causing browse-url-of-file
> to fail. I observed this issue when trying to to markdown-export-and-preview from markdown-mode.el, but the
> issue also occurs with browse-url-of-buffer.
>
> To reproduce, create a file C-x f c:/tmp/file with spaces.html and execute M-: (browse-url-of-buffer).
>
> It will generate the backtrace
Thanks, I think I fixed that now.
bug marked as fixed in version 26.1, send any further explanations to
26014 <at> debbugs.gnu.org and Klaus-Dieter Bauer <bauer.klaus.dieter <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 08 Mar 2017 17:35:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Apr 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.