monnier pushed a commit to branch externals/auctex in repository elpa. commit 8a59c58d47ba5140c285eebe913a8bf1a0df3e2a Author: Tassilo Horn <t...@gnu.org> Date: Wed Apr 10 16:10:47 2013 +0200
Fix bug in TeX-evince-sync-view. * tex.el (TeX-evince-sync-view): URL-escape pdf file path when calling evince via DBUS. --- ChangeLog | 5 +++++ tex.el | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f78012b..0461d62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-10 Tassilo Horn <t...@gnu.org> + + * tex.el (TeX-evince-sync-view): URL-escape pdf file path when + calling evince via DBUS. + 2013-04-10 Nicolas Richard <theonewiththeevill...@yahoo.fr> (tiny change) * style/mathtools.el (LaTeX-mathtools-key-val-options): Fix defvar diff --git a/tex.el b/tex.el index 2cf9e2f..020c2fe 100644 --- a/tex.el +++ b/tex.el @@ -1055,8 +1055,11 @@ search are checked, too." 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." - (let* ((uri (concat "file://" (expand-file-name - (concat file "." (TeX-output-extension))))) + (require 'url-util) + (let* ((uri (concat "file://" (let ((url-unreserved-chars (cons ?/ url-unreserved-chars))) + (url-hexify-string + (expand-file-name + (concat file "." (TeX-output-extension))))))) (owner (dbus-call-method :session "org.gnome.evince.Daemon" "/org/gnome/evince/Daemon"