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

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

[elpa] externals/auctex 384c1d2 08/62: Use declared dynamic variable in


From: Tassilo Horn
Subject: [elpa] externals/auctex 384c1d2 08/62: Use declared dynamic variable in tex-jp
Date: Sun, 20 Dec 2020 10:39:51 -0500 (EST)

branch: externals/auctex
commit 384c1d2528eba44cd53d8ea42e151c7b4445bafd
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Tassilo Horn <tsdh@gnu.org>

    Use declared dynamic variable in tex-jp
    
    * tex-jp.el (TeX-expand-list-builtin): Replace former dynamic var
    `pos' with `TeX-expand-pos'.
    (): Enable lexical binding.
    Move `coding' tag to the File Local Variable section at EOF.
    Update copyright year.
---
 tex-jp.el | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tex-jp.el b/tex-jp.el
index dff1b11..41ea4c5 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -1,6 +1,6 @@
-;;; tex-jp.el --- Support for Japanese TeX.  -*- coding: iso-2022-jp-unix; -*-
+;;; tex-jp.el --- Support for Japanese TeX.  -*- lexical-binding: t; -*-
 
-;; Copyright (C) 1999, 2001-2008, 2012-2013, 2016-2018
+;; Copyright (C) 1999, 2001-2008, 2012-2013, 2016-2018, 2020
 ;;   Free Software Foundation, Inc.
 
 ;; Author:     KOBAYASHI Shinji <koba@flab.fujitsu.co.jp>,
@@ -148,7 +148,8 @@ systems are determined by their values regardless of the 
kanji option."
                          (let ((result (format "-d %s" dicname)))
                            ;; Advance past the file name in order to
                            ;; prevent expanding any substring of it.
-                           (setq pos (+ pos (length result)))
+                           (setq TeX-expand-pos
+                                 (+ TeX-expand-pos (length result)))
                            result)
                        ""))))
         ;; pxdvi と %(o?)xdvi の適切な方を選択する。
@@ -912,4 +913,8 @@ save size
 
 (provide 'tex-jp)
 
+;; Local Variables:
+;; coding: iso-2022-jp-unix
+;; End:
+
 ;;; tex-jp.el ends here



reply via email to

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