aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
authorKenichi Handa2012-08-16 21:25:17 +0900
committerKenichi Handa2012-08-16 21:25:17 +0900
commitd75ffb4ed0b2e72a9361a07d16a5c884a9459728 (patch)
tree8ac5a6a8ae033fef7fbc7fb7b09a703ef4b0ed5b /src/cmds.c
parent69c41c4070c86baac11a627e9c3d366420aeb7cc (diff)
parent250c8ab9b8f6322959fa3122db83944c30c3894b (diff)
downloademacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.tar.gz
emacs-d75ffb4ed0b2e72a9361a07d16a5c884a9459728.zip
merge trunk
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c
index d617c7f81d9..24778fae6e3 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -296,9 +296,12 @@ At the end, it runs `post-self-insert-hook'. */)
296 296
297 if (remove_boundary 297 if (remove_boundary
298 && CONSP (BVAR (current_buffer, undo_list)) 298 && CONSP (BVAR (current_buffer, undo_list))
299 && NILP (XCAR (BVAR (current_buffer, undo_list)))) 299 && NILP (XCAR (BVAR (current_buffer, undo_list)))
300 /* Only remove auto-added boundaries, not boundaries
301 added be explicit calls to undo-boundary. */
302 && EQ (BVAR (current_buffer, undo_list), last_undo_boundary))
300 /* Remove the undo_boundary that was just pushed. */ 303 /* Remove the undo_boundary that was just pushed. */
301 BVAR (current_buffer, undo_list) = XCDR (BVAR (current_buffer, undo_list)); 304 BSET (current_buffer, undo_list, XCDR (BVAR (current_buffer, undo_list)));
302 305
303 /* Barf if the key that invoked this was not a character. */ 306 /* Barf if the key that invoked this was not a character. */
304 if (!CHARACTERP (last_command_event)) 307 if (!CHARACTERP (last_command_event))
@@ -443,7 +446,8 @@ internal_self_insert (int c, EMACS_INT n)
443 /* If we expanded an abbrev which has a hook, 446 /* If we expanded an abbrev which has a hook,
444 and the hook has a non-nil `no-self-insert' property, 447 and the hook has a non-nil `no-self-insert' property,
445 return right away--don't really self-insert. */ 448 return right away--don't really self-insert. */
446 if (SYMBOLP (sym) && ! NILP (sym) && ! NILP (XSYMBOL (sym)->function) 449 if (SYMBOLP (sym) && ! NILP (sym)
450 && ! NILP (XSYMBOL (sym)->function)
447 && SYMBOLP (XSYMBOL (sym)->function)) 451 && SYMBOLP (XSYMBOL (sym)->function))
448 { 452 {
449 Lisp_Object prop; 453 Lisp_Object prop;