comparison src/lread.c @ 673:6217fa6e2cab

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Tue, 02 Jun 1992 05:18:06 +0000
parents f81a3cf6ec22
children 85fd29f25c75
comparison
equal deleted inserted replaced
672:f81a3cf6ec22 673:6217fa6e2cab
511 Lisp_Object bufname, printflag; 511 Lisp_Object bufname, printflag;
512 { 512 {
513 int count = specpdl_ptr - specpdl; 513 int count = specpdl_ptr - specpdl;
514 Lisp_Object tem, buf; 514 Lisp_Object tem, buf;
515 515
516 if (NIL_P (bufname)) 516 if (NILP (bufname))
517 buf = Fcurrent_buffer (); 517 buf = Fcurrent_buffer ();
518 else 518 else
519 buf = Fget_buffer (bufname); 519 buf = Fget_buffer (bufname);
520 if (NIL_P (buf)) 520 if (NILP (buf))
521 error ("No such buffer."); 521 error ("No such buffer.");
522 522
523 if (NIL_P (printflag)) 523 if (NILP (printflag))
524 tem = Qsymbolp; 524 tem = Qsymbolp;
525 else 525 else
526 tem = printflag; 526 tem = printflag;
527 specbind (Qstandard_output, tem); 527 specbind (Qstandard_output, tem);
528 record_unwind_protect (save_excursion_restore, save_excursion_save ()); 528 record_unwind_protect (save_excursion_restore, save_excursion_save ());
529 BUF_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); 529 BUF_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf)));
530 readevalloop (buf, 0, Feval, !NIL_P (printflag)); 530 readevalloop (buf, 0, Feval, !NILP (printflag));
531 unbind_to (count); 531 unbind_to (count);
532 532
533 return Qnil; 533 return Qnil;
534 } 534 }
535 535