diff options
| author | Ken Raeburn | 2000-03-30 09:56:31 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-03-30 09:56:31 +0000 |
| commit | 8801a864d2f7d9b6a77dfffa606f27f338127582 (patch) | |
| tree | 470499e90d35dabee56b08f00c6841a886dccdee /src/undo.c | |
| parent | 326855a0f45fe45c4ddd9000046ed6a9aa31534b (diff) | |
| download | emacs-8801a864d2f7d9b6a77dfffa606f27f338127582.tar.gz emacs-8801a864d2f7d9b6a77dfffa606f27f338127582.zip | |
* lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):
Verify correct object type before returning pointer, using eassert.
* frame.h (XFRAME): Likewise.
* buffer.c (Frename_buffer, Fset_buffer_multibyte,
swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER,
etc, to values that may be nil or of the wrong type.
* data.c (set_internal): Likewise.
* dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise.
* fileio.c (auto_save_1): Likewise.
* insdel.c (check_markers): Likewise.
* marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
* undo.c (record_insert): Likewise.
* vmsproc.c (child_sig): Likewise.
* window.c (unshow_buffer, window_loop): Likewise.
* xterm.c (x_erase_phys_cursor): Likewise.
Diffstat (limited to 'src/undo.c')
| -rw-r--r-- | src/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 96e3eeb687c..a498f2aae72 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -54,7 +54,8 @@ record_insert (beg, length) | |||
| 54 | if (NILP (pending_boundary)) | 54 | if (NILP (pending_boundary)) |
| 55 | pending_boundary = Fcons (Qnil, Qnil); | 55 | pending_boundary = Fcons (Qnil, Qnil); |
| 56 | 56 | ||
| 57 | if (current_buffer != XBUFFER (last_undo_buffer)) | 57 | if (!BUFFERP (last_undo_buffer) |
| 58 | || current_buffer != XBUFFER (last_undo_buffer)) | ||
| 58 | Fundo_boundary (); | 59 | Fundo_boundary (); |
| 59 | XSETBUFFER (last_undo_buffer, current_buffer); | 60 | XSETBUFFER (last_undo_buffer, current_buffer); |
| 60 | 61 | ||