Questions tagged [revert-buffer]

33 questions
2
votes
1 answer

How to quickly revert the buffer?

revert-buffer is often slower than closing an opening the same file. I've noticed - for example, I can undo to the state of the file before reverting. While this might be useful in some cases, I would like to clear undo history and load the file as…
ideasman42
  • 8,786
  • 1
  • 32
  • 114
1
vote
1 answer

How to understand the meaning of "revert"?

Suppose I open a file in a buffer of Emacs, and then some other program different from Emacs modifies the file. When I try to modify the buffer in Emacs, Emacs will notify me about the change which has occurred to the file outside Emacs. It will…
Tim
  • 5,007
  • 7
  • 32
  • 61
1
vote
1 answer

Get revert-buffer to stop corrupting my files

I'm not sure how to completely reproduce this. It may be related to this other question of mine. My hope is that someone else has seen this as well and knows what causes it. Sometimes when editing an emacs buffer, generally for a Python file, the…
asmeurer
  • 1,572
  • 12
  • 32
0
votes
1 answer

How to cancel a mini-buffer prompt from elisp, eg: "... changed on disk; really edit this buffer?"

Sometimes I get a mini-buffer prompt to check if I want to edit the buffer. Instead of answering this, I would like to revert all buffers, however this prompt remains. How could I cancel this prompt? (which is no longer needed when reverting all…
ideasman42
  • 8,786
  • 1
  • 32
  • 114