auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. cc9c060a47f014dbada65


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. cc9c060a47f014dbada65e3c90ab74c2a234251d
Date: Fri, 06 Feb 2015 14:10:29 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  cc9c060a47f014dbada65e3c90ab74c2a234251d (commit)
      from  cef38f9946042b8ce26cf9a4deea0e5c54c35f06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cc9c060a47f014dbada65e3c90ab74c2a234251d
Author: Mosè Giordano <address@hidden>
Date:   Fri Feb 6 15:09:04 2015 +0100

    Fix compatibility with Emacs < 24.
    
    * tex.el (TeX-source-correlate-handle-TeX-region): Replace
    `file-name-base', introduced in GNU Emacs 24, with
    `file-name-sans-extension'+`file-name-nondirectory'.

diff --git a/ChangeLog b/ChangeLog
index c641f53..0213b41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-06  Mosè Giordano  <address@hidden>
+
+       * tex.el (TeX-source-correlate-handle-TeX-region): Replace
+       `file-name-base', introduced in GNU Emacs 24, with
+       `file-name-sans-extension'+`file-name-nondirectory'.
+
 2015-02-06  Tassilo Horn  <address@hidden>
 
        * tex.el (TeX-source-correlate-handle-TeX-region): New function.
diff --git a/tex.el b/tex.el
index 2a00d5b..a59d16a 100644
--- a/tex.el
+++ b/tex.el
@@ -1621,7 +1621,8 @@ You could use this for unusual mouse bindings.")
 That is, if FILE is `TeX-region', update FILE to the real tex
 file and LINE to (+ LINE offset-of-region).  Else, return the
 list of arguments unchanged."
-  (if (string-equal TeX-region (file-name-base file))
+  (if (string-equal TeX-region (file-name-sans-extension
+                               (file-name-nondirectory file)))
       (with-current-buffer (or (find-buffer-visiting file)
                               (find-file-noselect file))
        (goto-char 0)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 tex.el    |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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