emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 9e7f21e 69/95: Use compatibility function `TeX-l


From: Tassilo Horn
Subject: [elpa] externals/auctex 9e7f21e 69/95: Use compatibility function `TeX-line-number-at-pos' for older emacsen
Date: Sun, 16 Apr 2017 01:26:57 -0400 (EDT)

branch: externals/auctex
commit 9e7f21e40aa300c7664925beabd883eca5b40510
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>

    Use compatibility function `TeX-line-number-at-pos' for older emacsen
    
    * tex.el (TeX-evince-sync-view-1):
    (TeX-synctex-output-page-1): Replace `line-number-at-pos' with
    `TeX-line-number-at-pos'.
---
 tex.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tex.el b/tex.el
index f11a404..8c37ae0 100644
--- a/tex.el
+++ b/tex.el
@@ -1333,7 +1333,7 @@ DE is the name of the desktop environment, either 
\"gnome\" or
           (format "org.%s.%s.Window" de app)
           "SyncView"
           (buffer-file-name)
-          (list :struct :int32 (line-number-at-pos)
+          (list :struct :int32 (TeX-line-number-at-pos)
                 :int32 (1+ (current-column)))
           :uint32 0))
       (error "Couldn't find the %s instance for %s" (capitalize app) uri))))
@@ -2088,7 +2088,7 @@ enabled and the `synctex' binary is available."
   (let ((synctex-output
         (with-output-to-string
           (call-process "synctex" nil (list standard-output nil) nil "view"
-                        "-i" (format "%s:%s:%s" (line-number-at-pos)
+                        "-i" (format "%s:%s:%s" (TeX-line-number-at-pos)
                                      (current-column)
                                      file)
                         "-o" (TeX-active-master (TeX-output-extension))))))



reply via email to

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