all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to make the "file has auto save data..." message unskippable?
Date: Tue, 07 Jul 2009 00:35:55 -0600	[thread overview]
Message-ID: <h2uqbt$h0g$1@ger.gmane.org> (raw)
In-Reply-To: <24345123.post@talk.nabble.com>

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

Nobuko Three wrote:
> I open a file foo.txt and then my emacs displays the message:
> 
> foo.txt has auto save data; consider M-x recover-this-file
> 
> in the echo area, but the message rarely catches my attention because I
> quickly start editing the file and that makes the message disappear before I
> notice it. 
> 
> Normally after emacs is crashed, you know you need to use M-x
> recover-session, but it could happen that you go to lunch after crash, you
> come back, you start emacs again, you forget to do recover-session and open
> foo.bar and then also miss the "foo.txt has auto save data..." message.
> 
> How do you deal with this problem?
> 
> One idea is to make emacs change its background color whenever it echoes
> such message. Even if you miss the message, you will always notice the
> changed background color which reminds you to check the *Message* buffer.
> 
> Is there a hook I can use for this idea?

Here's a start (recover-this-file-find-file-hook.el attached).

-- 
Kevin Rodgers
Denver, Colorado, USA

[-- Attachment #2: recover-this-file-find-file-hook.el --]
[-- Type: application/emacs-lisp, Size: 891 bytes --]

  parent reply	other threads:[~2009-07-07  6:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-05 17:29 how to make the "file has auto save data..." message unskippable? Nobuko Three
2009-07-06  8:57 ` Thien-Thi Nguyen
2009-07-06 12:14   ` ken
2009-07-08  6:09     ` Kevin Rodgers
2009-07-06 18:58   ` Sean Sieger
2009-07-06 19:19     ` how to make the "file has auto save data..." messageunskippable? Drew Adams
2009-07-06 20:04       ` Sean Sieger
2009-07-07  6:35 ` Kevin Rodgers [this message]
     [not found] <mailman.1874.1246814962.2239.help-gnu-emacs@gnu.org>
2009-07-05 21:49 ` how to make the "file has auto save data..." message unskippable? Colin S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h2uqbt$h0g$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.