all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: 路客 <luke.yx.lee@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Emacs does not detect a buffered file got deleted
Date: Mon, 08 Aug 2016 10:02:45 +0200	[thread overview]
Message-ID: <mvmd1ljwuvu.fsf@hawking.suse.de> (raw)
In-Reply-To: <CAA=xLRMGusqr7jz8rWT3SKEET8F-cgwj+K3Ouc6AZ9vDmNHmmg@mail.gmail.com> ("路客"'s message of "Mon, 8 Aug 2016 11:33:26 +0800")

On Mo, Aug 08 2016, 路客 <luke.yx.lee@gmail.com> wrote:

> When editing a file in Emacs and switching git branches, sometimes
> a file will be removed but Emacs won't detect it. Unlike modified
> files it will ask me to revert, deleted files are not. Is it
> intentional?

There is nothing to revert from.  A buffer visiting a non-existing file
isn't an error condition, saving it will not lose anything.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



  reply	other threads:[~2016-08-08  8:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08  3:33 Emacs does not detect a buffered file got deleted 路客
2016-08-08  8:02 ` Andreas Schwab [this message]
2016-08-08  8:55   ` 路客
2016-08-08 14:55     ` Eli Zaretskii
2016-08-09  1:02       ` 路客
2016-08-10  0:52         ` Jiege Chen

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=mvmd1ljwuvu.fsf@hawking.suse.de \
    --to=schwab@suse.de \
    --cc=emacs-devel@gnu.org \
    --cc=luke.yx.lee@gmail.com \
    /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.