[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 94/299: Fix 2 bugs in DBUS communication.
From: |
Stefan Monnier |
Subject: |
[elpa] 94/299: Fix 2 bugs in DBUS communication. |
Date: |
Sun, 02 Nov 2014 03:10:34 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 76e1e800c09ea96027c6c62a942537953e805482
Author: Tassilo Horn <address@hidden>
Date: Wed Apr 10 16:24:19 2013 +0200
Fix 2 bugs in DBUS communication.
* tex.el (TeX-evince-sync-view): Use 0 as timestamp.
(TeX-source-correlate-sync-source): URL-decode tex file name.
---
ChangeLog | 2 ++
tex.el | 15 +++------------
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0461d62..125f583 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* tex.el (TeX-evince-sync-view): URL-escape pdf file path when
calling evince via DBUS.
+ (TeX-evince-sync-view): Use 0 as timestamp.
+ (TeX-source-correlate-sync-source): URL-decode tex file name.
2013-04-10 Nicolas Richard <address@hidden> (tiny change)
diff --git a/tex.el b/tex.el
index 020c2fe..e82fce3 100644
--- a/tex.el
+++ b/tex.el
@@ -1075,17 +1075,7 @@ the requirements are met."
"SyncView"
(buffer-file-name)
(list :struct :int32 (line-number-at-pos) :int32 (1+ (current-column)))
- :uint32 (let ((time (float-time)))
- ;; FIXME: Evince wants a timestamp as UInt32, but POSIX time
- ;; is too large for emacs integers on 32 bit systems. Emacs
- ;; 24.2 will allow providing DBUS ints as floats, and this
- ;; dbus version will be identifiable by its new variables
- ;; `dbus-compiled-version' and `dbus-runtime-version'. But
- ;; it seems providing just 1 as timestamp has no negative
- ;; consequences, anyway.
- (if (> most-positive-fixnum time)
- (round time)
- 1)))
+ :uint32 0)
(error "Couldn't find the Evince instance for %s" uri))))
(defvar TeX-view-program-list-builtin
@@ -1514,7 +1504,8 @@ or newer."
(let ((buf (let ((f (condition-case nil
(progn
(require 'url-parse)
- (aref (url-generic-parse-url file) 6))
+ (require 'url-util)
+ (url-unhex-string (aref (url-generic-parse-url
file) 6)))
;; For Emacs 21 compatibility, which doesn't have the
;; url package.
(file-error (replace-regexp-in-string "^file://" ""
file)))))
- [elpa] 91/299: Fix typo., (continued)
- [elpa] 91/299: Fix typo., Stefan Monnier, 2014/11/01
- [elpa] 92/299: Syntax fix., Stefan Monnier, 2014/11/01
- [elpa] 93/299: Fix bug in TeX-evince-sync-view., Stefan Monnier, 2014/11/01
- [elpa] 86/299: Make LaTeX-outline-level work for customized outline-regexp., Stefan Monnier, 2014/11/01
- [elpa] 88/299: Improve TeX-math-input-method-off-regexp., Stefan Monnier, 2014/11/01
- [elpa] 89/299: Fix a bug in font-latex-add-to-syntax-alist., Stefan Monnier, 2014/11/01
- [elpa] 97/299: Replace completing-read-multiple with TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 98/299: Use crm-separator as separator in XEmacs TeX-completing-read-multiple., Stefan Monnier, 2014/11/01
- [elpa] 99/299: Add prompt argument to TeX-read-key-val and TeX-arg-key-val., Stefan Monnier, 2014/11/01
- [elpa] 101/299: Improve Evince backward search., Stefan Monnier, 2014/11/01
- [elpa] 94/299: Fix 2 bugs in DBUS communication.,
Stefan Monnier <=
- [elpa] 104/299: Change default value of `LaTeX-default-author' and adapt `LaTeX-arg-author'., Stefan Monnier, 2014/11/01
- [elpa] 96/299: Raise frame on backward search., Stefan Monnier, 2014/11/01
- [elpa] 105/299: Fix plain TeX abbrev table name., Stefan Monnier, 2014/11/01
- [elpa] 102/299: Document some missing functions and options., Stefan Monnier, 2014/11/01
- [elpa] 103/299: Use user-full-name as initial input to author macro., Stefan Monnier, 2014/11/01
- [elpa] 100/299: Better unbinding of SPC in LaTeX-arg-acro-key-val and LaTeX-arg-siunitx-unit., Stefan Monnier, 2014/11/01
- [elpa] 106/299: Add beamer class options., Stefan Monnier, 2014/11/01
- [elpa] 95/299: Add new style files acro.el and acronym.el., Stefan Monnier, 2014/11/01
- [elpa] 108/299: Some improvements to amsthm style file., Stefan Monnier, 2014/11/01
- [elpa] 107/299: Add counters and pagestyle to some class styles., Stefan Monnier, 2014/11/01