[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to revert buffer from "Save file?" prompt?
From: |
Óscar Fuentes |
Subject: |
Re: How to revert buffer from "Save file?" prompt? |
Date: |
Mon, 07 Jun 2021 17:23:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Sergey Organov <sorganov@gmail.com> writes:
> When I have a modified buffer and run, say "compile", emacs asks to:
>
> Save file /home/osv/f/firm/make/defaults.make? (y, n, !, ., q, C-r, d or C-h)
>
> and the set of choices doesn't seem to include "discard changes", or
> "revert buffer" in emacs terminology.
>
> What is the most convenient way to revert this particular buffer once
> I'm there at this prompt?
What you ask for seems quite dangerous. Better to not make it
convenient.
Right now you need to cancel the `compile' command at the prompt with
C-g, switch to the buffer and revert it with `revert-buffer'.