bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19398: 11.88; TeX-evince-sync-view hangs emacs if file name contains


From: Tassilo Horn
Subject: bug#19398: 11.88; TeX-evince-sync-view hangs emacs if file name contains a comma
Date: Thu, 18 Dec 2014 08:42:52 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Todor Tsankov <address@hidden> writes:

Hi Todor,

> I use TeX-evince-sync-view to view PDF files produced by LaTeX and if
> the name of the TeX file contains a comma (for example, "a,b.tex"),
> then Emacs stops responding after the View command.

Yes, I can reproduce that.

> The file is displayed in Evince but if I go back to Emacs, I cannot
> enter text or commands.  Behavior returns to normal after Evince is
> closed and I get the following error message:
>
> dbus-call-method: D-Bus error: "Message did not receive a reply (timeout
> by message bus)"

The problem is that `TeX-evince-sync-view' URL-encoded the , to %2C
which D-Bus (or evince?) didn't like.  I've fixed that in Git.

If you want you can apply the following patch to your local
installation.

--8<---------------cut here---------------start------------->8---
diff --git a/tex.el b/tex.el
index df312a0..af02663 100644
--- a/tex.el
+++ b/tex.el
@@ -1104,7 +1104,8 @@ 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 ?/ 
url-unreserved-chars)))
+  (let* ((uri (concat "file://" (let ((url-unreserved-chars
+                                      (cons ?, (cons ?/ 
url-unreserved-chars))))
                                  (url-hexify-string
                                   (expand-file-name
                                    (concat file "." 
(TeX-output-extension)))))))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]