[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change cedd742: M
From: |
Phillip Lord |
Subject: |
[Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change cedd742: Move undo-call to front of command-loop |
Date: |
Thu, 29 Oct 2015 21:04:56 +0000 |
branch: fix/no-undo-boundary-on-secondary-buffer-change
commit cedd742512b570b463255507b6cc34ea5b88131e
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>
Move undo-call to front of command-loop
I promise that in future I will just do what Stefan tells me.
I promise that in future I will just do what Stefan tells me.
I promise that in future I will just do what Stefan tells me.
---
src/keyboard.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/keyboard.c b/src/keyboard.c
index f112036..3660669 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1344,6 +1344,10 @@ command_loop_1 (void)
while (pending_malloc_warning)
display_malloc_warning ();
+ /* Ensure that we have added appropriate undo-boundaries as a
+ result of changes from the last command. */
+ call0 (Qundo__auto_add_boundary);
+
Vdeactivate_mark = Qnil;
/* Don't ignore mouse movements for more than a single command
@@ -1520,8 +1524,6 @@ command_loop_1 (void)
safe_run_hooks (Qpost_command_hook);
- call0 (Qundo__auto_add_boundary);
-
/* If displaying a message, resize the echo area window to fit
that message's size exactly. */
if (!NILP (echo_area_buffer[0]))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] fix/no-undo-boundary-on-secondary-buffer-change cedd742: Move undo-call to front of command-loop,
Phillip Lord <=