From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21729: doc-view messed up by early auto-revert Date: Thu, 03 Oct 2019 09:31:21 -0400 Message-ID: References: <874mhjtoc2.fsf@gnu.org> <87vb9zx7j2.fsf@gnu.org> <87fv12szdz.fsf@members.fsf.org> <87ziz9vqw5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31234"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 21729@debbugs.gnu.org, Nicolas Richard To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 15:32:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iG1DH-0007xw-HF for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2019 15:32:11 +0200 Original-Received: from localhost ([::1]:36292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG1DG-0007Ia-0i for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2019 09:32:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53412) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG1D9-0007IQ-Cm for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2019 09:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iG1D8-0005cz-CU for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2019 09:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iG1D8-0005cs-9i for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2019 09:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iG1D8-00048w-4M for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2019 09:32: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, 03 Oct 2019 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21729 X-GNU-PR-Package: emacs Original-Received: via spool by 21729-submit@debbugs.gnu.org id=B21729.157010949415890 (code B ref 21729); Thu, 03 Oct 2019 13:32:02 +0000 Original-Received: (at 21729) by debbugs.gnu.org; 3 Oct 2019 13:31:34 +0000 Original-Received: from localhost ([127.0.0.1]:38951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG1Cg-00048E-0z for submit@debbugs.gnu.org; Thu, 03 Oct 2019 09:31:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG1Cc-000480-Ul for 21729@debbugs.gnu.org; Thu, 03 Oct 2019 09:31:31 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 892E8100ECA; Thu, 3 Oct 2019 09:31:25 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7701F100E62; Thu, 3 Oct 2019 09:31:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1570109483; bh=OSsULK7fZGSnk8mLxhSeAaPtnmQFEPZxEb9S3bemdu8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=o5h9EGgNICZfBsQ/R2giXiUyG6jC6iJmhtHpGdZI6NrRh6wfZrxhrKhTVRyDE5pmn t2GyN9wCsEhGd1jv40C9tYOqJ/4ybrihf0R6fYABphLhRV+WMcn142aWef3snJ2SoA 3iC6R/InxwLbe/C3c2PN2smMLIP1r7Pf5hc56xfVHImJAGCDTTzBhIMB81H1VBcImm J9LUk8WbcySuzJcRuIfBfjITLFCSOaPyabcfSG9bDw9f8D6B9KYbwwvGbsoyFuilu/ b0XssZ/SbM/yP8w3vnSKALAGlQ6CBeJ33hEHmz1JQ8rOyxBZx8XG73UxWW/ol/kPNq ZiPenR85upPlw== Original-Received: from pastel (76-10-181-40.dsl.teksavvy.com [76.10.181.40]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0FF431200CE; Thu, 3 Oct 2019 09:31:23 -0400 (EDT) In-Reply-To: <87ziz9vqw5.fsf@gnu.org> (Tassilo Horn's message of "Fri, 23 Oct 2015 12:08:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:168215 Archived-At: >>> 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? >> Sometimes emacs does weird things, and I think it's nice if it >> explains what it does, even if it should be obvious. Morever the >> message is not only useful while the file is being reverted, but also >> after the fact. e.g. if I have foo.pdf open, and that file is >> controlled by owncloud and gets updated by the cloud, I like to find >> this information in *Messages*. > Yes, I see. But then we could still set `auto-revert-verbose' to nil > buffer-locally and issue that message in `doc-view-revert-buffer'. IIUC the message is emitted before calling doc-view-revert-buffer, so doc-view-revert-buffer could just emit its own message (e.g. "Reverting buffer... aborted!") and that would hide the generic message. Stefan