From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: doc-view.el: about cursor and filename display Date: Tue, 16 Oct 2007 00:10:54 -0400 Message-ID: References: <87r6jw20p3.fsf@baldur.tsdh.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192508048 11605 80.91.229.12 (16 Oct 2007 04:14:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 04:14:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 16 06:13:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ihdoa-0002SZ-LY for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 06:13:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhdoT-0005EZ-Mr for ged-emacs-devel@m.gmane.org; Tue, 16 Oct 2007 00:13:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ihdli-0003ip-F7 for emacs-devel@gnu.org; Tue, 16 Oct 2007 00:10:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ihdlf-0003he-Hs for emacs-devel@gnu.org; Tue, 16 Oct 2007 00:10:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ihdlf-0003hY-8f for emacs-devel@gnu.org; Tue, 16 Oct 2007 00:10:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ihdle-0005zm-Vw for emacs-devel@gnu.org; Tue, 16 Oct 2007 00:10:55 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Ihdle-00031x-Gc; Tue, 16 Oct 2007 00:10:54 -0400 In-reply-to: (message from Stefan Monnier on Mon, 15 Oct 2007 10:00:32 -0400) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80983 Archived-At: That can happen if the user calls revert explicitly as well (yes, less likely and less severe, but still: the user might do M-x revert-buffer, then get annoyed that it doesn't see the result, so do it again and again and again). It shouldn't be too difficult to protect against it by detecting the situation and "reacting appropriately". I don't see how it is possible to detect such a situation. M-x revert-buffer could at most detect that input is pending; it cannot tell what that input will do when executed, so there is really nothing it can do. The best solution I know of is to display a message in the echo area saying that it is reformatting the file. That way the user could know to type C-g if he does not want to let it finish. It would be even better to print percentage progress messages, but it may be hard for Emacs to get the information.