diff options
author | Phillip Lord <phillip.lord@russet.org.uk> | 2016-06-28 08:02:51 +0100 |
---|---|---|
committer | Phillip Lord <phillip.lord@russet.org.uk> | 2016-07-06 10:16:10 +0100 |
commit | 8f9c1eda934fd842f53be2d4e72c41728f9b5bd1 (patch) | |
tree | 9a19da35fe38d4db2486e9dacb8f02a69ec63d2f /src/fileio.c | |
parent | 6f285d963d274aaf70d3909598091065505daff1 (diff) | |
download | emacs-8f9c1eda934fd842f53be2d4e72c41728f9b5bd1.tar.gz |
Fix missing undo-boundary on revert-buffer.
* lisp/simple.el (undo-auto--undoable-change-no-timer): New function.
* src/fileio.c (insert-buffer-contents): Call
undo-auto--undoably-changed-buffers before changes.
Addresses Bug#23785.
Do not merge to master as c98bc98 also addresses the same bug.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index b11f9233ab4..3005ca320e7 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3436,6 +3436,9 @@ by calling `format-decode', which see. */) if (!NILP (BVAR (current_buffer, read_only))) Fbarf_if_buffer_read_only (Qnil); + if (!NILP (Ffboundp (Qundo_auto__undoable_change_no_timer))) + call0 (Qundo_auto__undoable_change_no_timer); + val = Qnil; p = Qnil; orig_filename = Qnil; @@ -5797,6 +5800,8 @@ syms_of_fileio (void) which gives a list of operations it handles. */ DEFSYM (Qoperations, "operations"); + DEFSYM (Qundo_auto__undoable_change_no_timer, "undo-auto--undoable-change-no-timer"); + DEFSYM (Qexpand_file_name, "expand-file-name"); DEFSYM (Qsubstitute_in_file_name, "substitute-in-file-name"); DEFSYM (Qdirectory_file_name, "directory-file-name"); |