[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 f632ecb: Update revert-buffer documentation
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 f632ecb: Update revert-buffer documentation |
Date: |
Fri, 19 Oct 2018 04:57:16 -0400 (EDT) |
branch: emacs-26
commit f632ecbb998ccec6442cbf1e6d76a2d63af3e9e2
Author: Mauro Aranda <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Update revert-buffer documentation
* doc/emacs/files.texi (Reverting): Document that revert-buffer
does keep undo history. (Bug#33084)
Copyright-paperwork-exempt: yes
---
doc/emacs/files.texi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index e950767..c1d25af 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -926,10 +926,10 @@ way that, if the file was edited only slightly, you will
be at
approximately the same part of the text as before. But if you have
made major changes, point may end up in a totally different location.
- Reverting marks the buffer as not modified. It also clears the
-buffer's undo history (@pxref{Undo}). Thus, the reversion cannot be
-undone---if you change your mind yet again, you can't use the undo
-commands to bring the reverted changes back.
+ Reverting marks the buffer as not modified. However, it adds the
+reverted changes as a single modification to the buffer's undo
+history (@pxref{Undo}). Thus, after reverting, you can do @kbd{C-/}
+to bring the reverted changes back, if you happen to change your mind.
Some kinds of buffers that are not associated with files, such as
Dired buffers, can also be reverted. For them, reverting means
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 f632ecb: Update revert-buffer documentation,
Eli Zaretskii <=