comparison src/undo.c @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents 558f606b08ae
children 74fd4e045ea6
comparison
equal deleted inserted replaced
372:49e1ed2d7ed8 373:6240c7796c7a
73 undo_prelude (struct buffer *b, int hack_pending_boundary) 73 undo_prelude (struct buffer *b, int hack_pending_boundary)
74 { 74 {
75 if (EQ (b->undo_list, Qt)) 75 if (EQ (b->undo_list, Qt))
76 return (0); 76 return (0);
77 77
78 if (NILP (last_undo_buffer) || b != XBUFFER (last_undo_buffer)) 78 if (NILP (last_undo_buffer)
79 || (BUFFER_BASE_BUFFER (b)
80 != BUFFER_BASE_BUFFER (XBUFFER (last_undo_buffer))))
79 { 81 {
80 undo_boundary (b); 82 undo_boundary (b);
81 XSETBUFFER (last_undo_buffer, b); 83 XSETBUFFER (last_undo_buffer, b);
82 } 84 }
83 85