From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21729: doc-view messed up by early auto-revert Date: Wed, 21 Oct 2015 14:05:44 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445483487 8791 80.91.229.3 (22 Oct 2015 03:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 03:11:27 +0000 (UTC) To: 21729@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 05:11:15 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 1Zp6HZ-0004FS-7g for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 05:11:13 +0200 Original-Received: from localhost ([::1]:55423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp6HY-0003h5-Ot for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Oct 2015 23:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp6HT-0003gE-5a for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 23:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zp6HP-00009F-1f for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 23:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp6HO-00009B-UV for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 23:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zp6HO-0005pU-Ie for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 23:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 03:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144548340522340 (code B ref -1); Thu, 22 Oct 2015 03:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2015 03:10:05 +0000 Original-Received: from localhost ([127.0.0.1]:59962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp6GQ-0005o5-T0 for submit@debbugs.gnu.org; Wed, 21 Oct 2015 23:10:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44908) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zp6GM-0005nj-Tc for submit@debbugs.gnu.org; Wed, 21 Oct 2015 23:10:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zp6GI-0008Qp-VG for submit@debbugs.gnu.org; Wed, 21 Oct 2015 23:09:59 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zp6GI-0008Qf-SV for submit@debbugs.gnu.org; Wed, 21 Oct 2015 23:09:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoxm4-0001c8-8g for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 14:06:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zoxlj-0001lP-4n for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 14:05:51 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoxli-0001lC-TB for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2015 14:05:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CYEAA731xV/zCdWxdcgxABU16CUE6yBQGQDAeFeQSBQD0QAQEBAQEBAYEKQQWEBjMTAUQCBQ8EDgIRARwNVYgOmy+PXaRDgSGOTAEBBWqCUIFFBYtEhwWMTo4Wh1cjgUcMARIhAwEbgW4iMYEMgTsBAQE X-IPAS-Result: A0CYEAA731xV/zCdWxdcgxABU16CUE6yBQGQDAeFeQSBQD0QAQEBAQEBAYEKQQWEBjMTAUQCBQ8EDgIRARwNVYgOmy+PXaRDgSGOTAEBBWqCUIFFBYtEhwWMTo4Wh1cjgUcMARIhAwEbgW4iMYEMgTsBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="170541404" Original-Received: from 23-91-157-48.cpe.pppoe.ca (HELO pastel.home) ([23.91.157.48]) by ironport2-out.teksavvy.com with ESMTP; 21 Oct 2015 14:05:45 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E282F6287A; Wed, 21 Oct 2015 14:05:44 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:107819 Archived-At: Package: Emacs Version: 25.0.50 When I work on LaTeX documents, I generally have a doc-view-mode buffer open displaying the PDF output. I'd like this document to auto-update after I recompile the .tex file(s), but using M-x auto-revert-mode doesn't work well for that: emacs -Q foo.pdf M-x auto-revert-mode RET then in a shell pdflatex foo The result is that the doc-view buffer ends up displaying the raw file's content (for me anyway: it's timing dependent, but I see this behavior on several machines, with very different performance. the foo.tex document needs to be large enough, of course). I think there are two problems: - Doc-view should inhibit auto-revert when the file was modified too recently (on the assumption that it's not complete yet). - [ Just guessing here: ] We may sometimes fail to revert the file after it's complete, maybe because the last reversion finished after the file was complete, even though it started before, so the last reversion failed to include some changes that were added while the buffer was being reverted. Stefan In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bar= s) of 2015-10-16 Repository revision: 26a88b59cd790e9b8ee7656a9c8672079c09ef52 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.2 (jessie) Configured using: 'configure -C --enable-checking --enable-check-lisp-object-type 'CFLAGS=3D-Wall -g3 -Og -Wno-pointer-sign' PKG_CONFIG_PATH=3D/home/monnier/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG SOUND NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LANG: C locale-coding-system: nil Major mode: InactiveMinibuffer Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t electric-pair-mode: t url-handler-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Error during redisplay: (jit-lock-function 12402647) signaled (scan-error "= Unbalanced parentheses" 12345873 12345678) Error during redisplay: (jit-lock-function 12402637) signaled (scan-error "= Unbalanced parentheses" 12345793 12345678) Error during redisplay: (jit-lock-function 12402795) signaled (scan-error "= Unbalanced parentheses" 12345781 12345678) Error during redisplay: (jit-lock-function 12402787) signaled (scan-error "= Unbalanced parentheses" 12345701 12345678) Error during redisplay: (jit-lock-function 12402904) signaled (scan-error "= Unbalanced parentheses" 12345688 12345678) Error during redisplay: (jit-lock-function 12402780) signaled (scan-error "= Unbalanced parentheses" 12345830 12345678) Error during redisplay: (jit-lock-function 12403005) signaled (scan-error "= Unbalanced parentheses" 12345753 12345678) Reverting buffer =E2=80=98paper.pdf=E2=80=99. Type C-c C-c to toggle between editing or viewing the document. Warning: vc-find-file-hook is obsolete! Load-path shadows: /home/monnier/src/emacs/elpa/packages/ada-mode/ada-ref-man hides /home/monn= ier/src/emacs/elpa/packages/ada-ref-man/ada-ref-man /home/monnier/src/emacs/elpa/packages/ada-mode/ada-prj hides /home/monnier/= src/emacs/work/lisp/progmodes/ada-prj /home/monnier/src/emacs/elpa/packages/ada-mode/ada-stmt hides /home/monnier= /src/emacs/work/lisp/progmodes/ada-stmt /home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier= /src/emacs/work/lisp/progmodes/ada-mode /home/monnier/src/emacs/elpa/packages/ada-mode/ada-xref hides /home/monnier= /src/emacs/work/lisp/progmodes/ada-xref /home/monnier/src/emacs/elpa/packages/crisp/crisp hides /home/monnier/src/e= macs/work/lisp/obsolete/crisp /home/monnier/src/emacs/elpa/packages/landmark/landmark hides /home/monnier= /src/emacs/work/lisp/obsolete/landmark /home/monnier/src/emacs/work/lisp/emacs-lisp/cl-generic hides /home/monnier= /src/emacs/elpa/packages/cl-generic/cl-generic Features: (mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils eieio-opt speedbar sb-image ezimage dframe add-log log-view pcvs-util dabbrev autorevert filenotify doc-view jka-compr image-mode dired format-spec reftex-sel cursor-sensor reftex-ref reftex-parse reftex-toc reftex-dcr reftex reftex-vars tex-mode compile shell pcomplete latexenc executable copyright xscheme warnings unsafep trace testcover shadow scheme re-builder profiler inf-lisp ielm pp comint ansi-color ring gmm-utils ert find-func ewoc debug elp edebug cl-indent cus-edit cus-start cus-load wid-edit sort mpc misearch multi-isearch vc vc-dispatcher vc-git diff-mode filecache epa-file epa derived epg server noutline outline easy-mmode flyspell ispell checkdoc thingatpt load-dir elec-pair url-handlers url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv gnus-util time-date mm-util help-fns help-mode mail-prsvr password-cache url-vars reveal autoinsert proof-site proof-autoloads cl pg-vars savehist minibuf-eldef finder-inf advice info eieio-core cl-macs gv cl-loaddefs pcase cl-lib package easymenu epg-config bbdb-autoloads vm-autoloads disp-table mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 273500 37468) (symbols 48 29159 0) (miscs 40 3792 1044) (strings 32 64808 12475) (string-bytes 1 2487240) (vectors 16 40418) (vector-slots 8 1637632 116578) (floats 8 425 624) (intervals 56 13968 376) (buffers 976 35) (heap 1024 392922 6279))