comparison src/undo.c @ 109351:c8a969d13eda

merge trunk
author Kenichi Handa <handa@etlken>
date Fri, 09 Jul 2010 15:55:27 +0900
parents 8cfee7d2955f
children 7ca55779eeef
comparison
equal deleted inserted replaced
109350:c11d07f3d731 109351:c8a969d13eda
286 286
287 DEFUN ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0, 287 DEFUN ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0,
288 doc: /* Mark a boundary between units of undo. 288 doc: /* Mark a boundary between units of undo.
289 An undo command will stop at this point, 289 An undo command will stop at this point,
290 but another undo command will undo to the previous boundary. */) 290 but another undo command will undo to the previous boundary. */)
291 () 291 (void)
292 { 292 {
293 Lisp_Object tem; 293 Lisp_Object tem;
294 if (EQ (current_buffer->undo_list, Qt)) 294 if (EQ (current_buffer->undo_list, Qt))
295 return Qnil; 295 return Qnil;
296 tem = Fcar (current_buffer->undo_list); 296 tem = Fcar (current_buffer->undo_list);
453 } 453 }
454 454
455 DEFUN ("primitive-undo", Fprimitive_undo, Sprimitive_undo, 2, 2, 0, 455 DEFUN ("primitive-undo", Fprimitive_undo, Sprimitive_undo, 2, 2, 0,
456 doc: /* Undo N records from the front of the list LIST. 456 doc: /* Undo N records from the front of the list LIST.
457 Return what remains of the list. */) 457 Return what remains of the list. */)
458 (n, list) 458 (Lisp_Object n, Lisp_Object list)
459 Lisp_Object n, list;
460 { 459 {
461 struct gcpro gcpro1, gcpro2; 460 struct gcpro gcpro1, gcpro2;
462 Lisp_Object next; 461 Lisp_Object next;
463 int count = SPECPDL_INDEX (); 462 int count = SPECPDL_INDEX ();
464 register int arg; 463 register int arg;