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. 4db3ed960f2d200802b7b


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4db3ed960f2d200802b7be6faa94501f03d908ea
Date: Sat, 28 Jun 2014 19:11:18 +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  4db3ed960f2d200802b7be6faa94501f03d908ea (commit)
       via  148fdf7288eadc559e3e3df9d4409c9b9708407e (commit)
      from  00935e91ae60b2d7aab7706ee576e44acd55607f (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 4db3ed960f2d200802b7be6faa94501f03d908ea
Author: Mosè Giordano <address@hidden>
Date:   Sat Jun 28 17:26:12 2014 +0200

    Prettify file names in error overview.
    
    * tex-buf.el (TeX-error-overview-make-entries): Add optional
    `master-dir' argument, to shorten file names when they are relative.
    (TeX-error-overview): Pass `TeX-master-directory' as argument to
    `TeX-error-overview-make-entries'.

diff --git a/ChangeLog b/ChangeLog
index 96fde52..9b163cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,10 @@
        (TeX-error-overview): New function.
        (TeX-find-display-help): Expand the name of the file to be visited
        starting from the directory of the master file.
+       (TeX-error-overview-make-entries): Add optional `master-dir'
+       argument, to shorten file names when they are relative.
+       (TeX-error-overview): Pass `TeX-master-directory' as argument to
+       `TeX-error-overview-make-entries'.
 
        * tex.el (TeX-error-overview): Autoload `TeX-error-overview'.
        (TeX-mode-specific-command-menu-entries): Add an entry for the
diff --git a/tex-buf.el b/tex-buf.el
index 7f669fb..b8785d2 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2498,8 +2498,9 @@ please restart TeX error overview")))
       (message "No more errors.")
       (beep))))
 
-(defun TeX-error-overview-make-entries ()
-  "Generate the list of errors to be printed using `tabulated-list-entries'."
+(defun TeX-error-overview-make-entries (&optional master-dir)
+  "Generate the list of errors to be printed using `tabulated-list-entries'.
+Write file names relative to MASTER-DIR when they are not absolute."
   (with-current-buffer TeX-error-overview-active-buffer
     (let ((id 0)
          type file line msg entries)
@@ -2516,7 +2517,11 @@ please restart TeX error overview")))
           id
           (vector
            ;; File.
-           (if (stringp file) file "")
+           (if (stringp file)
+               (if (file-name-absolute-p file)
+                   file
+                 (file-relative-name file master-dir))
+             "")
            ;; Line.
            (if (numberp line)
                (number-to-string line)
@@ -2634,7 +2639,7 @@ forward, if negative)."
                TeX-error-list)
              (progn
                (setq TeX-error-overview-list-entries
-                     (TeX-error-overview-make-entries)
+                     (TeX-error-overview-make-entries (TeX-master-directory))
                      TeX-error-overview-orig-window (selected-window)
                      TeX-error-overview-orig-frame
                      (window-frame TeX-error-overview-orig-window))

commit 148fdf7288eadc559e3e3df9d4409c9b9708407e
Author: Mosè Giordano <address@hidden>
Date:   Sat Jun 28 17:09:12 2014 +0200

    Fix TeX-find-display-help.
    
    * tex-buf.el (TeX-find-display-help): Expand the name of the file to be
    visited starting from the directory of the master file.

diff --git a/ChangeLog b/ChangeLog
index 95d9f5b..96fde52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,8 @@
        (TeX-error-overview-frame-parameters): New customizable variable.
        (TeX-error-overview-open-after-TeX-run): Ditto.
        (TeX-error-overview): New function.
+       (TeX-find-display-help): Expand the name of the file to be visited
+       starting from the directory of the master file.
 
        * tex.el (TeX-error-overview): Autoload `TeX-error-overview'.
        (TeX-mode-specific-command-menu-entries): Add an entry for the
diff --git a/tex-buf.el b/tex-buf.el
index 2bcde1b..7f669fb 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1725,7 +1725,9 @@ Return non-nil if an error or warning is found."
        (command-buffer TeX-command-buffer)
        error-file-buffer start)
     (run-hooks 'TeX-translate-location-hook)
-    (setq error-file-buffer (find-file file))
+    (setq error-file-buffer
+         (find-file
+          (expand-file-name file (file-name-directory master))))
     ;; Set the value of `TeX-command-buffer' in the next file with an
     ;; error to be displayed to the value it has in the current buffer.
     (with-current-buffer error-file-buffer

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

Summary of changes:
 ChangeLog  |    6 ++++++
 tex-buf.el |   17 ++++++++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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