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

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

[elpa] 257/299: Fix TeX-find-display-help.


From: Stefan Monnier
Subject: [elpa] 257/299: Fix TeX-find-display-help.
Date: Sun, 02 Nov 2014 03:11:49 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

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.
---
 ChangeLog  |    2 ++
 tex-buf.el |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

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



reply via email to

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