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. ab04c45dde3c1e591bd4e


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. ab04c45dde3c1e591bd4e46ccd6a6211710355da
Date: Fri, 2 Jun 2017 01:43:27 -0400 (EDT)

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  ab04c45dde3c1e591bd4e46ccd6a6211710355da (commit)
      from  4f397a2a34836fb508b555d850e91b72745f8f84 (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 ab04c45dde3c1e591bd4e46ccd6a6211710355da
Author: Ikumi Keita <address@hidden>
Date:   Fri Jun 2 14:42:40 2017 +0900

    Correct actions on region file in included file not placed in master dir
    
    * tex-buf.el (TeX-command-region): Call `TeX-region-file' with nil
    `nondirectory' argument.
    Fix a typo in doc string.
    (TeX-command-default): Use `(TeX-region-file)' instead of `TeX-region'
    for comparison with the given argument.

diff --git a/tex-buf.el b/tex-buf.el
index fa92335..5fff109 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -177,11 +177,15 @@ temporary file before the region itself.  The document's 
header is all
 text before `TeX-header-end'.
 
 If the master file for the document has a trailer, it is written to
-the temporary file before the region itself.  The document's trailer is
+the temporary file after the region itself.  The document's trailer is
 all text after `TeX-trailer-start'."
   (interactive "P")
   (TeX-region-update)
-  (TeX-command (TeX-command-query (TeX-region-file nil t)) 'TeX-region-file
+  ;; In the next line, `TeX-region-file' should be called with nil
+  ;; `nondirectory' argument, otherwise `TeX-comand-default' called
+  ;; within `TeX-command-query' won't work in included files not
+  ;; placed in `TeX-master-directory'.
+  (TeX-command (TeX-command-query (TeX-region-file)) 'TeX-region-file
               override-confirm))
 
 (defun TeX-command-buffer (&optional override-confirm)
@@ -777,7 +781,7 @@ omitted) and `TeX-region-file'."
     (cond (;; name might be absolute or relative, so expand it for
           ;; comparison.
           (if (string-equal (expand-file-name name)
-                            (expand-file-name TeX-region))
+                            (expand-file-name (TeX-region-file)))
               (TeX-check-files (concat name "." (TeX-output-extension))
                                ;; Each original will be checked for all dirs
                                ;; in `TeX-check-path' so this needs to be just

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

Summary of changes:
 tex-buf.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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