[Pkg-gnome-extras-maintainers] Bug#1128284: Bug #1128284: SyncTeX with Emacs/AUCTeX and Evince 49
A mennucc
a.mennucc at gmail.com
Wed Oct 7 11:30:47 BST 2026
Hi,
regarding the SyncTeX regression mentioned by Damien: I ran into the
same problem after upgrading to Evince 49 (in Ubuntu 2604 LTS).
SyncTeX support is actually still usable. The problem is that Evince 49
changed its D-Bus namespace from |org.gnome.evince |to |org.gnome.Evince
|while AUCTeX still uses the lower-case |evince|name.
I am using AUCTeX 13.2, and the attached small changes to
|tex.el|restore both forward and inverse SyncTeX search:I rebuilt the
AUCTeX package with this patch.
After installing it, both directions work for me with Evince 49 on
Ubuntu 26.04:
*
Emacs/AUCTeX -> Evince: the PDF is brought to the corresponding
position and the usual red SyncTeX highlight is displayed.
*
Evince -> Emacs: Ctrl-click in the PDF jumps to the corresponding
source position.
Best regards,
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-extras-maintainers/attachments/20261007/c8356752/attachment-0001.htm>
-------------- next part --------------
diff -ur auctex-13.2/tex.el auctex-13.2~patched/tex.el
--- auctex-13.2/tex.el 2026-10-02 21:12:33.000000000 +0200
+++ auctex-13.2~patched/tex.el 2026-10-02 21:00:32.274160623 +0200
@@ -1214,7 +1214,7 @@
(defun TeX-evince-sync-view ()
"Run `TeX-evince-sync-view-1', which see, set up for Evince."
- (TeX-evince-sync-view-1 "gnome" "evince"))
+ (TeX-evince-sync-view-1 "gnome" "Evince"))
(defun TeX-reader-sync-view ()
"Run `TeX-evince-sync-view-1', which see, set up for Xreader."
@@ -1289,7 +1289,7 @@
("dvips and gv" "%(o?)dvips %d -o && gv %f" ,(list "%(o?)dvips" "gv"))
("gv" "gv %o" "gv")
("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf")
- ("Evince" ,(TeX-view-program-select-evince "gnome" "evince") "evince")
+ ("Evince" TeX-evince-sync-view "evince")
("Atril" ,(TeX-view-program-select-evince "mate" "atril") "atril")
("Xreader" ,(TeX-view-program-select-evince "x" "reader") "xreader")
("Okular" ("okular --unique %o" (mode-io-correlate "#src:%n%a")) "okular")
@@ -1861,7 +1861,7 @@
(setq TeX-source-correlate-start-server-flag TeX-source-correlate-mode)
;; Register Emacs for the SyncSource DBUS signal emitted by
;; Evince-compatible viewers.
- (dolist (de-app '(("gnome" "evince") ("mate" "atril") ("x" "reader")))
+ (dolist (de-app '(("gnome" "Evince") ("mate" "atril") ("x" "reader")))
(when (TeX-evince-dbus-p (car de-app) (cadr de-app))
(dbus-register-signal
:session nil (format "/org/%s/%s/Window/0" (car de-app) (cadr de-app))
More information about the pkg-gnome-extras-maintainers
mailing list