branch: elpa
commit ff1f544645c7b0f334b097bb8a9b1441fbf61b3e
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Fix encoding file:// uri.
* tex.el (TeX-evince-sync-view): Encode URI with `url-encode-url'.
---
ChangeLog | 4 ++++
tex.el | 8 +++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 402416e..5bf02de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-20 Tassilo Horn <[email protected]>
+
+ * tex.el (TeX-evince-sync-view): Encode URI with `url-encode-url'.
+
2014-12-19 Tassilo Horn <[email protected]>
* style/minted.el: New style.
diff --git a/tex.el b/tex.el
index af02663..0ef5399 100644
--- a/tex.el
+++ b/tex.el
@@ -1104,11 +1104,9 @@ of point in emacs by using Evince's DBUS API. Used by
default
for the Evince viewer entry in `TeX-view-program-list-builtin' if
the requirements are met."
(require 'url-util)
- (let* ((uri (concat "file://" (let ((url-unreserved-chars
- (cons ?, (cons ?/
url-unreserved-chars))))
- (url-hexify-string
- (expand-file-name
- (concat file "."
(TeX-output-extension)))))))
+ (let* ((uri (concat "file://" (url-encode-url
+ (expand-file-name
+ (concat file "." (TeX-output-extension))))))
(owner (dbus-call-method
:session "org.gnome.evince.Daemon"
"/org/gnome/evince/Daemon"