GNU bug report logs -
#23083
Reverting pdf in Multifile tex document
Previous Next
Reported by: Waleed Yousef <wyousef <at> fcih.net>
Date: Mon, 21 Mar 2016 20:53:02 UTC
Severity: normal
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23083 in the body.
You can then email your comments to 23083 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Mon, 21 Mar 2016 20:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Waleed Yousef <wyousef <at> fcih.net>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Mon, 21 Mar 2016 20:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I use pdf tools as a viewing program. Just after I updated Linux and
Emacs last month a problem appeared. When I compile a document
consisting of, e.g., Ch01 and Ch02, while opening Ch01, the pdf visits a
page that is different from the one I am currently on LaTeX file. This
problem does not appear if the document consists of just one main tex
file.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Tue, 22 Mar 2016 21:16:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 23083 <at> debbugs.gnu.org (full text, mbox):
Waleed Yousef <wyousef <at> fcih.net> writes:
Hi Waleed,
> I use pdf tools as a viewing program. Just after I updated Linux and
> Emacs last month a problem appeared. When I compile a document
> consisting of, e.g., Ch01 and Ch02, while opening Ch01, the pdf visits
> a page that is different from the one I am currently on LaTeX
> file.
Sorry, I don't understand. What does it mean that you compile a
multi-file document _while opening one of the document's files_? And
why should compiling visit anything? And your subject says something
about reverting the pdf buffer while you didn't mention anything about
reverting in your text.
So please provide a clear and complete recipe including all steps in the
right order that I can try to reproduce the problem.
Thanks,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sat, 26 Mar 2016 15:31:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 23083 <at> debbugs.gnu.org (full text, mbox):
Thanks so much for your reply,
For details and clarification, I will give two scenarios; S1 is working
fine, and S2 is the one with the problem:
================================
S1:
==
the main tex file has, e.g., this:
\begin{document}
P1
\clearpage
P2
\clearpage
P3
\end{document}
-The emacs screen is split to two windows, one with the tex file and the
other with the pdf viewed in pdf-tools, and the pdf is displaying
P1. Now, if I modify the word P3 in the tex file and hit C-c C-a, LaTeX
compiles very well and the pdf file goes automatically from P1 to P3
(perfect.)
================================
S2:
==
the main tex file has:
\begin{document}
\include{tmp.tex}
\clearpage
any other text
\end{document}
- Now, suppose that tmp.tex has the same as what was in the main file of
scenario 1; i.e.,:
P1
\clearpage
P2
\clearpage
P3
When I compile the pdf does not visit the appropriate page as happens in
scenario 1.
================================
The weird thing is that, this strange behavior just appeared after
Archlinux and emacs update last month (I do not know which is
responsible for that)
Thanks so much and looking forward for your reply.
Tassilo Horn <tsdh <at> gnu.org> writes:
> Waleed Yousef <wyousef <at> fcih.net> writes:
>
> Hi Waleed,
>
>> I use pdf tools as a viewing program. Just after I updated Linux and
>> Emacs last month a problem appeared. When I compile a document
>> consisting of, e.g., Ch01 and Ch02, while opening Ch01, the pdf visits
>> a page that is different from the one I am currently on LaTeX
>> file.
>
> Sorry, I don't understand. What does it mean that you compile a
> multi-file document _while opening one of the document's files_? And
> why should compiling visit anything? And your subject says something
> about reverting the pdf buffer while you didn't mention anything about
> reverting in your text.
>
> So please provide a clear and complete recipe including all steps in the
> right order that I can try to reproduce the problem.
>
> Thanks,
> Tassilo
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Sat, 26 Mar 2016 22:01:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Waleed Yousef <wyousef <at> fcih.net>
:
bug acknowledged by developer.
(Sat, 26 Mar 2016 22:01:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Waleed Yousef <wyousef <at> fcih.net> writes:
Hi Waleed,
> For details and clarification, I will give two scenarios; S1 is
> working fine, and S2 is the one with the problem:
Thanks a lot for the great recipe which made it rather easy to spot the
bug. AUCTeX always called pdf-tool's sync function with the master
file, not the current file. That should be fixed now and I took the
chance to release a new GNU AUCTeX version (11.89.2) via ELPA. It
should be listed in `M-x list-packages' within the next 24 hours.
> The weird thing is that, this strange behavior just appeared after
> Archlinux and emacs update last month (I do not know which is
> responsible for that)
I checked the code and its revisions, and that wrong behavior has been
there for quite a long time. I think, I've introduced that bug on
February 2015. So in case you've used an older version and recently
upgraded to a newer AUCTeX version, that might have been the problem (or
actually a good thing since you've spotted the bug).
BTW, in case you don't already know, if you use PDF Tools as viewer,
it's usually a good idea to also add
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
to your ~/.emacs. That will revert the pdf-view buffer as soon as the
LaTeX compilation finishes so you don't have to do that manually.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sun, 27 Mar 2016 03:55:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Thanks so much;
is it available at MELPA as well?
Tassilo Horn <tsdh <at> gnu.org> writes:
> Waleed Yousef <wyousef <at> fcih.net> writes:
>
> Hi Waleed,
>
>> For details and clarification, I will give two scenarios; S1 is
>> working fine, and S2 is the one with the problem:
>
> Thanks a lot for the great recipe which made it rather easy to spot the
> bug. AUCTeX always called pdf-tool's sync function with the master
> file, not the current file. That should be fixed now and I took the
> chance to release a new GNU AUCTeX version (11.89.2) via ELPA. It
> should be listed in `M-x list-packages' within the next 24 hours.
>
>> The weird thing is that, this strange behavior just appeared after
>> Archlinux and emacs update last month (I do not know which is
>> responsible for that)
>
> I checked the code and its revisions, and that wrong behavior has been
> there for quite a long time. I think, I've introduced that bug on
> February 2015. So in case you've used an older version and recently
> upgraded to a newer AUCTeX version, that might have been the problem (or
> actually a good thing since you've spotted the bug).
>
> BTW, in case you don't already know, if you use PDF Tools as viewer,
> it's usually a good idea to also add
>
> (add-hook 'TeX-after-compilation-finished-functions
> #'TeX-revert-document-buffer)
>
> to your ~/.emacs. That will revert the pdf-view buffer as soon as the
> LaTeX compilation finishes so you don't have to do that manually.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sun, 27 Mar 2016 16:06:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Thanks so much;
I got the update and it works great;
Tassilo Horn <tsdh <at> gnu.org> writes:
> Waleed Yousef <wyousef <at> fcih.net> writes:
>
> Hi Waleed,
>
>> For details and clarification, I will give two scenarios; S1 is
>> working fine, and S2 is the one with the problem:
>
> Thanks a lot for the great recipe which made it rather easy to spot the
> bug. AUCTeX always called pdf-tool's sync function with the master
> file, not the current file. That should be fixed now and I took the
> chance to release a new GNU AUCTeX version (11.89.2) via ELPA. It
> should be listed in `M-x list-packages' within the next 24 hours.
>
>> The weird thing is that, this strange behavior just appeared after
>> Archlinux and emacs update last month (I do not know which is
>> responsible for that)
>
> I checked the code and its revisions, and that wrong behavior has been
> there for quite a long time. I think, I've introduced that bug on
> February 2015. So in case you've used an older version and recently
> upgraded to a newer AUCTeX version, that might have been the problem (or
> actually a good thing since you've spotted the bug).
>
> BTW, in case you don't already know, if you use PDF Tools as viewer,
> it's usually a good idea to also add
>
> (add-hook 'TeX-after-compilation-finished-functions
> #'TeX-revert-document-buffer)
>
> to your ~/.emacs. That will revert the pdf-view buffer as soon as the
> LaTeX compilation finishes so you don't have to do that manually.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sun, 27 Mar 2016 18:03:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Thanks so much,
the good news is that the problem disappeared. However, a new problem
occurred.
For some preamble (which is really weird) the pdf does not revert
(refresh); however it goes to the right page (but without
refreshing). For the following preamble, when I comment some packages
the problem disappear!!
\documentclass[11pt, b6paper, landscape, oneside]{memoir}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{color, xcolor, colortbl}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{natbib, bibentry}
%\usepackage{subfig, picinpar}
\usepackage{etoolbox}
\usepackage{titling}
\usepackage{url}
\usepackage{amsmath}
\usepackage{amsfonts, amssymb, bm}
\usepackage{verbatim}
%\usepackage{pdfpages}
%\usepackage{hyperref}
%\usepackage{pagecolor}
\usepackage{array}
\usepackage{paralist}
\usepackage{geometry}
\usepackage{dashrule}
% \usepackage{tikz-timing}[2009/12/09]
% \usepackage{pgf,pgfplots}
% \usepackage{tkz-fct}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\usepackage[latin1]{inputenc}
Tassilo Horn <tsdh <at> gnu.org> writes:
> Waleed Yousef <wyousef <at> fcih.net> writes:
>
> Hi Waleed,
>
>> For details and clarification, I will give two scenarios; S1 is
>> working fine, and S2 is the one with the problem:
>
> Thanks a lot for the great recipe which made it rather easy to spot the
> bug. AUCTeX always called pdf-tool's sync function with the master
> file, not the current file. That should be fixed now and I took the
> chance to release a new GNU AUCTeX version (11.89.2) via ELPA. It
> should be listed in `M-x list-packages' within the next 24 hours.
>
>> The weird thing is that, this strange behavior just appeared after
>> Archlinux and emacs update last month (I do not know which is
>> responsible for that)
>
> I checked the code and its revisions, and that wrong behavior has been
> there for quite a long time. I think, I've introduced that bug on
> February 2015. So in case you've used an older version and recently
> upgraded to a newer AUCTeX version, that might have been the problem (or
> actually a good thing since you've spotted the bug).
>
> BTW, in case you don't already know, if you use PDF Tools as viewer,
> it's usually a good idea to also add
>
> (add-hook 'TeX-after-compilation-finished-functions
> #'TeX-revert-document-buffer)
>
> to your ~/.emacs. That will revert the pdf-view buffer as soon as the
> LaTeX compilation finishes so you don't have to do that manually.
>
> Bye,
> Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sun, 27 Mar 2016 19:35:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Waleed Yousef <wyousef <at> fcih.net> writes:
Hi Waleed,
> Thanks so much;
You're welcome!
> is it available at MELPA as well?
No, just on GNU ELPA.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Sun, 27 Mar 2016 20:03:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Waleed Yousef <wyousef <at> fcih.net> writes:
Hi Waleed,
> the good news is that the problem disappeared. However, a new problem
> occurred.
>
> For some preamble (which is really weird) the pdf does not revert
> (refresh); however it goes to the right page (but without
> refreshing). For the following preamble, when I comment some packages
> the problem disappear!!
Good catch! We've called `TeX-after-compilation-finished-functions'
only if `TeX-error-list' was empty with the intention that you don't
want to revert when errors have occurred which usually means that the
PDF will be broken anyhow. However, your preamble issues lots of
warnings, and those are collected in `TeX-error-list', too.
I've fixed it in Git so that the hook is skipped only if there were real
errors and not just warnings. Here is the patch:
--8<---------------cut here---------------start------------->8---
modified tex-buf.el
@@ -1551,7 +1551,7 @@ Rerun to get mark in right position\\." nil t)
(md5 (current-buffer)))))
(push (cons idx-file t) LaTeX-idx-changed-alist)))
- (unless TeX-error-list
+ (unless (memq 'error (mapcar #'car TeX-error-list))
(run-hook-with-args 'TeX-after-compilation-finished-functions
(with-current-buffer TeX-command-buffer
(expand-file-name
--8<---------------cut here---------------end--------------->8---
I'll do a new ELPA release within a week or so when I find some time.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Mon, 28 Mar 2016 20:43:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
2016-03-27 22:02 GMT+02:00 Tassilo Horn <tsdh <at> gnu.org>:
> Waleed Yousef <wyousef <at> fcih.net> writes:
>
> Hi Waleed,
>
>> the good news is that the problem disappeared. However, a new problem
>> occurred.
>>
>> For some preamble (which is really weird) the pdf does not revert
>> (refresh); however it goes to the right page (but without
>> refreshing). For the following preamble, when I comment some packages
>> the problem disappear!!
>
> Good catch! We've called `TeX-after-compilation-finished-functions'
> only if `TeX-error-list' was empty with the intention that you don't
> want to revert when errors have occurred which usually means that the
> PDF will be broken anyhow. However, your preamble issues lots of
> warnings, and those are collected in `TeX-error-list', too.
>
> I've fixed it in Git so that the hook is skipped only if there were real
> errors and not just warnings. Here is the patch:
>
> --8<---------------cut here---------------start------------->8---
> modified tex-buf.el
> @@ -1551,7 +1551,7 @@ Rerun to get mark in right position\\." nil t)
> (md5 (current-buffer)))))
> (push (cons idx-file t) LaTeX-idx-changed-alist)))
>
> - (unless TeX-error-list
> + (unless (memq 'error (mapcar #'car TeX-error-list))
> (run-hook-with-args 'TeX-after-compilation-finished-functions
> (with-current-buffer TeX-command-buffer
> (expand-file-name
> --8<---------------cut here---------------end--------------->8---
I changed it to use `TeX-error-report-switches' as it is simpler than
going through `TeX-error-list' and it's the usual way to test presence
of errors in the last TeX run. Maybe we should turn the whole
`plist-get' call into a function.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Mon, 28 Mar 2016 21:35:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
So, this will be released to elpa eventually?
Mosè Giordano <mose <at> gnu.org> writes:
> Hi Tassilo,
>
> 2016-03-27 22:02 GMT+02:00 Tassilo Horn <tsdh <at> gnu.org>:
>> Waleed Yousef <wyousef <at> fcih.net> writes:
>>
>> Hi Waleed,
>>
>>> the good news is that the problem disappeared. However, a new problem
>>> occurred.
>>>
>>> For some preamble (which is really weird) the pdf does not revert
>>> (refresh); however it goes to the right page (but without
>>> refreshing). For the following preamble, when I comment some packages
>>> the problem disappear!!
>>
>> Good catch! We've called `TeX-after-compilation-finished-functions'
>> only if `TeX-error-list' was empty with the intention that you don't
>> want to revert when errors have occurred which usually means that the
>> PDF will be broken anyhow. However, your preamble issues lots of
>> warnings, and those are collected in `TeX-error-list', too.
>>
>> I've fixed it in Git so that the hook is skipped only if there were real
>> errors and not just warnings. Here is the patch:
>>
>> --8<---------------cut here---------------start------------->8---
>> modified tex-buf.el
>> @@ -1551,7 +1551,7 @@ Rerun to get mark in right position\\." nil t)
>> (md5 (current-buffer)))))
>> (push (cons idx-file t) LaTeX-idx-changed-alist)))
>>
>> - (unless TeX-error-list
>> + (unless (memq 'error (mapcar #'car TeX-error-list))
>> (run-hook-with-args 'TeX-after-compilation-finished-functions
>> (with-current-buffer TeX-command-buffer
>> (expand-file-name
>> --8<---------------cut here---------------end--------------->8---
>
> I changed it to use `TeX-error-report-switches' as it is simpler than
> going through `TeX-error-list' and it's the usual way to test presence
> of errors in the last TeX run. Maybe we should turn the whole
> `plist-get' call into a function.
>
> Bye,
> Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#23083
; Package
auctex
.
(Tue, 29 Mar 2016 10:45:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 23083-done <at> debbugs.gnu.org (full text, mbox):
Waleed Yousef <wyousef <at> fcih.net> writes:
> So, this will be released to elpa eventually?
Yes.
>> I changed it to use `TeX-error-report-switches' as it is simpler than
>> going through `TeX-error-list' and it's the usual way to test
>> presence of errors in the last TeX run. Maybe we should turn the
>> whole `plist-get' call into a function.
Ah, even better. Thanks.
Bye,
Tassilo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 26 Apr 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.