diff options
| author | Joakim Verona | 2012-08-15 21:49:40 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-08-15 21:49:40 +0200 |
| commit | b648c26ec642a1dc58c0bd7e59d6011b964dbe37 (patch) | |
| tree | f0f3b38ffa9054702f475fc53622e28da14f97b1 /src/cmds.c | |
| parent | c8b0fc1999006af5a4317b44068fac13d9592143 (diff) | |
| parent | 94c9ece10275f8ca9323c38f93607f1046035c79 (diff) | |
| download | emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.tar.gz emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.zip | |
upstream
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cmds.c b/src/cmds.c index 4512f562064..24778fae6e3 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -301,7 +301,7 @@ At the end, it runs `post-self-insert-hook'. */) | |||
| 301 | added be explicit calls to undo-boundary. */ | 301 | added be explicit calls to undo-boundary. */ |
| 302 | && EQ (BVAR (current_buffer, undo_list), last_undo_boundary)) | 302 | && EQ (BVAR (current_buffer, undo_list), last_undo_boundary)) |
| 303 | /* Remove the undo_boundary that was just pushed. */ | 303 | /* Remove the undo_boundary that was just pushed. */ |
| 304 | BVAR (current_buffer, undo_list) = XCDR (BVAR (current_buffer, undo_list)); | 304 | BSET (current_buffer, undo_list, XCDR (BVAR (current_buffer, undo_list))); |
| 305 | 305 | ||
| 306 | /* Barf if the key that invoked this was not a character. */ | 306 | /* Barf if the key that invoked this was not a character. */ |
| 307 | if (!CHARACTERP (last_command_event)) | 307 | if (!CHARACTERP (last_command_event)) |
| @@ -447,12 +447,11 @@ internal_self_insert (int c, EMACS_INT n) | |||
| 447 | and the hook has a non-nil `no-self-insert' property, | 447 | and the hook has a non-nil `no-self-insert' property, |
| 448 | return right away--don't really self-insert. */ | 448 | return right away--don't really self-insert. */ |
| 449 | if (SYMBOLP (sym) && ! NILP (sym) | 449 | if (SYMBOLP (sym) && ! NILP (sym) |
| 450 | && ! NILP (SVAR (XSYMBOL (sym), function)) | 450 | && ! NILP (XSYMBOL (sym)->function) |
| 451 | && SYMBOLP (SVAR (XSYMBOL (sym), function))) | 451 | && SYMBOLP (XSYMBOL (sym)->function)) |
| 452 | { | 452 | { |
| 453 | Lisp_Object prop; | 453 | Lisp_Object prop; |
| 454 | prop = Fget (SVAR (XSYMBOL (sym), function), | 454 | prop = Fget (XSYMBOL (sym)->function, intern ("no-self-insert")); |
| 455 | intern ("no-self-insert")); | ||
| 456 | if (! NILP (prop)) | 455 | if (! NILP (prop)) |
| 457 | return 1; | 456 | return 1; |
| 458 | } | 457 | } |