From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#21729: doc-view messed up by early auto-revert Date: Thu, 22 Oct 2015 17:11:29 +0200 Message-ID: <87vb9zx7j2.fsf@gnu.org> References: <874mhjtoc2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445526777 15508 80.91.229.3 (22 Oct 2015 15:12:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 15:12:57 +0000 (UTC) Cc: 21729@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 17:12:45 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpHXR-0003cu-B9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 17:12:21 +0200 Original-Received: from localhost ([::1]:60576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHXQ-00046N-Pt for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 11:12:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHXD-0003ru-5K for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 11:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpHX9-0000oa-0p for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 11:12:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpHX8-0000oT-NS for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpHX8-0007lU-7l for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21729-submit@debbugs.gnu.org id=B21729.144552670029821 (code B ref 21729); Thu, 22 Oct 2015 15:12:02 +0000 Original-Received: (at 21729) by debbugs.gnu.org; 22 Oct 2015 15:11:40 +0000 Original-Received: from localhost ([127.0.0.1]:33018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHWl-0007ku-0h for submit@debbugs.gnu.org; Thu, 22 Oct 2015 11:11:39 -0400 Original-Received: from nsmtp.uni-koblenz.de ([141.26.64.14]:49225) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpHWf-0007ke-53 for 21729@debbugs.gnu.org; Thu, 22 Oct 2015 11:11:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by nsmtp.uni-koblenz.de (Postfix) with ESMTP id AC87523AF2E; Thu, 22 Oct 2015 17:11:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at uni-koblenz.de Original-Received: from nsmtp.uni-koblenz.de ([127.0.0.1]) by localhost (nsmtp.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i4-Zxys_zaYZ; Thu, 22 Oct 2015 17:11:31 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by nsmtp.uni-koblenz.de (Postfix) with ESMTPS; Thu, 22 Oct 2015 17:11:31 +0200 (CEST) Original-Received: from thinkpad-t440p (dhcp66.uni-koblenz.de [141.26.71.66]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 048211A82F0; Thu, 22 Oct 2015 17:11:30 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Thu, 22 Oct 2015 09:10:14 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107852 Archived-At: Stefan Monnier writes: >> Hm, no, that won't work. I currently work on some large document >> (~450 pages). When I compile that, the file changes several times >> per second during the compilation, then it doesn't change for ~15 >> seconds while latex (lualatex in this case) is still running, and >> then starts changing again for maybe 3 seconds. > > So we could additionally either check that the file is valid, or > simply "fail gracefully" if it isn't (e.g. keep displaying the old > image, and emit a message pointing to C-c C-c to see the raw data). > But it's not a deal breaker: in your case, we may end up trying to > revert the file too early, which is annoying, but as long as we do end > up re-reverting it when the file is finally complete, I think it's OK. In commit 11d1422, I've added a check which omits reverting when the PDF is corrupted and spits out a message if doc-view-revert-buffer has been called interactively. Seems to work fine but it is annoying that autorevert.el spits out a "Reverting buffer ..." message whenever it calls revert-buffer. I think in doc-view-mode it's obvious enough when a file is being reverted, so maybe we should set auto-revert-verbose to nil buffer-locally? Bye, Tassilo