From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: recover-file warnings too easy to get covered up Date: Wed, 08 Feb 2006 09:49:22 -0700 Message-ID: References: <874q3a25yh.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1139433517 3858 80.91.229.2 (8 Feb 2006 21:18:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2006 21:18:37 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 08 22:18:36 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F6whh-00067q-0n for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Feb 2006 22:18:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6whf-0007Kh-Us for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Feb 2006 16:18:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6uMP-00006U-9E for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2006 13:48:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6u48-0004eJ-RL for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2006 13:29:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6sbt-0004tj-Q4 for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2006 11:56:07 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F6sfF-0005Ok-Lx for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2006 11:59:33 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F6sYO-0001hu-Ng for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2006 17:52:29 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Feb 2006 17:52:28 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Feb 2006 17:52:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <874q3a25yh.fsf@jidanni.org> X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14780 Archived-At: Dan Jacobson wrote: > d> The vital minibuffer message > d> [file] has auto save data; consider M-x recover-file > d> gets overwritten before the user has time to notice it, with > > r> What command produces that message? > > Simple, > $ emacs x.sh > Type some stuff, then ^Z suspend, kill -1 %1, leaving a #x.sh# file, then > $ emacs x.sh #again, and look at the *Messages* buffer. > You would have to happen to be looking at the minibuffer during the > vital second the "consider M-x recover-file" message is displayed to > see it before it gets covered up. I recall this issue is not new. > So how are you going to make sure the user sees that message before > blithely editing that file? Or is e.g., "Indentation setup for shell type > bash" more important for him to see as he assess the screen once the > smoke clears? As this cond clause from after-find-file shows, the maintainers clearly believe that the message is not vital (it is not-serious): ((not buffer-read-only) (if (and warn ;; No need to warn if buffer is auto-saved ;; under the name of the visited file. (not (and buffer-file-name auto-save-visited-file-name)) (file-newer-than-file-p (or buffer-auto-save-file-name (make-auto-save-file-name)) buffer-file-name)) (format "%s has auto save data; consider M-x recover-this-file" (file-name-nondirectory buffer-file-name)) (setq not-serious t) (if error "(New file)" nil))) -- Kevin Rodgers