aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Naggum1996-01-09 00:33:28 +0000
committerErik Naggum1996-01-09 00:33:28 +0000
commit3738a3710dd511d2aada4071358133e972588c2b (patch)
tree7c84b93fbafe036882527726e4d50632e203c07c /src
parent7efd36fc63127dd436988e89c7d4136e6c421584 (diff)
downloademacs-3738a3710dd511d2aada4071358133e972588c2b.tar.gz
emacs-3738a3710dd511d2aada4071358133e972588c2b.zip
(Fwrite_char, Fprin1, Fprin1_to_string, Fprinc, Fprint): Harmonize
arguments with documentation.
Diffstat (limited to 'src')
-rw-r--r--src/print.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/print.c b/src/print.c
index 5d42b580bea..320afa93529 100644
--- a/src/print.c
+++ b/src/print.c
@@ -325,10 +325,10 @@ print_string (string, printcharfun)
325} 325}
326 326
327DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0, 327DEFUN ("write-char", Fwrite_char, Swrite_char, 1, 2, 0,
328 "Output character CHAR to stream PRINTCHARFUN.\n\ 328 "Output character CHARACTER to stream PRINTCHARFUN.\n\
329PRINTCHARFUN defaults to the value of `standard-output' (which see).") 329PRINTCHARFUN defaults to the value of `standard-output' (which see).")
330 (ch, printcharfun) 330 (character, printcharfun)
331 Lisp_Object ch, printcharfun; 331 Lisp_Object character, printcharfun;
332{ 332{
333 struct buffer *old = current_buffer; 333 struct buffer *old = current_buffer;
334 int old_point = -1; 334 int old_point = -1;
@@ -337,11 +337,11 @@ PRINTCHARFUN defaults to the value of `standard-output' (which see).")
337 337
338 if (NILP (printcharfun)) 338 if (NILP (printcharfun))
339 printcharfun = Vstandard_output; 339 printcharfun = Vstandard_output;
340 CHECK_NUMBER (ch, 0); 340 CHECK_NUMBER (character, 0);
341 PRINTPREPARE; 341 PRINTPREPARE;
342 PRINTCHAR (XINT (ch)); 342 PRINTCHAR (XINT (character));
343 PRINTFINISH; 343 PRINTFINISH;
344 return ch; 344 return character;
345} 345}
346 346
347/* Used from outside of print.c to print a block of SIZE chars at DATA 347/* Used from outside of print.c to print a block of SIZE chars at DATA
@@ -491,8 +491,8 @@ DEFUN ("prin1", Fprin1, Sprin1, 1, 2, 0,
491Quoting characters are printed when needed to make output that `read'\n\ 491Quoting characters are printed when needed to make output that `read'\n\
492can handle, whenever this is possible.\n\ 492can handle, whenever this is possible.\n\
493Output stream is PRINTCHARFUN, or value of `standard-output' (which see).") 493Output stream is PRINTCHARFUN, or value of `standard-output' (which see).")
494 (obj, printcharfun) 494 (object, printcharfun)
495 Lisp_Object obj, printcharfun; 495 Lisp_Object object, printcharfun;
496{ 496{
497 struct buffer *old = current_buffer; 497 struct buffer *old = current_buffer;
498 int old_point = -1; 498 int old_point = -1;
@@ -506,9 +506,9 @@ Output stream is PRINTCHARFUN, or value of `standard-output' (which see).")
506 printcharfun = Vstandard_output; 506 printcharfun = Vstandard_output;
507 PRINTPREPARE; 507 PRINTPREPARE;
508 print_depth = 0; 508 print_depth = 0;
509 print (obj, printcharfun, 1); 509 print (object, printcharfun, 1);
510 PRINTFINISH; 510 PRINTFINISH;
511 return obj; 511 return object;
512} 512}
513 513
514/* a buffer which is used to hold output being built by prin1-to-string */ 514/* a buffer which is used to hold output being built by prin1-to-string */
@@ -519,8 +519,8 @@ DEFUN ("prin1-to-string", Fprin1_to_string, Sprin1_to_string, 1, 2, 0,
519any Lisp object. Quoting characters are used when needed to make output\n\ 519any Lisp object. Quoting characters are used when needed to make output\n\
520that `read' can handle, whenever this is possible, unless the optional\n\ 520that `read' can handle, whenever this is possible, unless the optional\n\
521second argument NOESCAPE is non-nil.") 521second argument NOESCAPE is non-nil.")
522 (obj, noescape) 522 (object, noescape)
523 Lisp_Object obj, noescape; 523 Lisp_Object object, noescape;
524{ 524{
525 struct buffer *old = current_buffer; 525 struct buffer *old = current_buffer;
526 int old_point = -1; 526 int old_point = -1;
@@ -531,18 +531,18 @@ second argument NOESCAPE is non-nil.")
531 printcharfun = Vprin1_to_string_buffer; 531 printcharfun = Vprin1_to_string_buffer;
532 PRINTPREPARE; 532 PRINTPREPARE;
533 print_depth = 0; 533 print_depth = 0;
534 print (obj, printcharfun, NILP (noescape)); 534 print (object, printcharfun, NILP (noescape));
535 /* Make Vprin1_to_string_buffer be the default buffer after PRINTFINSH */ 535 /* Make Vprin1_to_string_buffer be the default buffer after PRINTFINSH */
536 PRINTFINISH; 536 PRINTFINISH;
537 set_buffer_internal (XBUFFER (Vprin1_to_string_buffer)); 537 set_buffer_internal (XBUFFER (Vprin1_to_string_buffer));
538 obj = Fbuffer_string (); 538 object = Fbuffer_string ();
539 539
540 GCPRO1 (obj); 540 GCPRO1 (object);
541 Ferase_buffer (); 541 Ferase_buffer ();
542 set_buffer_internal (old); 542 set_buffer_internal (old);
543 UNGCPRO; 543 UNGCPRO;
544 544
545 return obj; 545 return object;
546} 546}
547 547
548DEFUN ("princ", Fprinc, Sprinc, 1, 2, 0, 548DEFUN ("princ", Fprinc, Sprinc, 1, 2, 0,
@@ -550,8 +550,8 @@ DEFUN ("princ", Fprinc, Sprinc, 1, 2, 0,
550No quoting characters are used; no delimiters are printed around\n\ 550No quoting characters are used; no delimiters are printed around\n\
551the contents of strings.\n\ 551the contents of strings.\n\
552Output stream is PRINTCHARFUN, or value of standard-output (which see).") 552Output stream is PRINTCHARFUN, or value of standard-output (which see).")
553 (obj, printcharfun) 553 (object, printcharfun)
554 Lisp_Object obj, printcharfun; 554 Lisp_Object object, printcharfun;
555{ 555{
556 struct buffer *old = current_buffer; 556 struct buffer *old = current_buffer;
557 int old_point = -1; 557 int old_point = -1;
@@ -562,9 +562,9 @@ Output stream is PRINTCHARFUN, or value of standard-output (which see).")
562 printcharfun = Vstandard_output; 562 printcharfun = Vstandard_output;
563 PRINTPREPARE; 563 PRINTPREPARE;
564 print_depth = 0; 564 print_depth = 0;
565 print (obj, printcharfun, 0); 565 print (object, printcharfun, 0);
566 PRINTFINISH; 566 PRINTFINISH;
567 return obj; 567 return object;
568} 568}
569 569
570DEFUN ("print", Fprint, Sprint, 1, 2, 0, 570DEFUN ("print", Fprint, Sprint, 1, 2, 0,
@@ -572,8 +572,8 @@ DEFUN ("print", Fprint, Sprint, 1, 2, 0,
572Quoting characters are printed when needed to make output that `read'\n\ 572Quoting characters are printed when needed to make output that `read'\n\
573can handle, whenever this is possible.\n\ 573can handle, whenever this is possible.\n\
574Output stream is PRINTCHARFUN, or value of `standard-output' (which see).") 574Output stream is PRINTCHARFUN, or value of `standard-output' (which see).")
575 (obj, printcharfun) 575 (object, printcharfun)
576 Lisp_Object obj, printcharfun; 576 Lisp_Object object, printcharfun;
577{ 577{
578 struct buffer *old = current_buffer; 578 struct buffer *old = current_buffer;
579 int old_point = -1; 579 int old_point = -1;
@@ -587,11 +587,11 @@ Output stream is PRINTCHARFUN, or value of `standard-output' (which see).")
587#endif /* MAX_PRINT_CHARS */ 587#endif /* MAX_PRINT_CHARS */
588 if (NILP (printcharfun)) 588 if (NILP (printcharfun))
589 printcharfun = Vstandard_output; 589 printcharfun = Vstandard_output;
590 GCPRO1 (obj); 590 GCPRO1 (object);
591 PRINTPREPARE; 591 PRINTPREPARE;
592 print_depth = 0; 592 print_depth = 0;
593 PRINTCHAR ('\n'); 593 PRINTCHAR ('\n');
594 print (obj, printcharfun, 1); 594 print (object, printcharfun, 1);
595 PRINTCHAR ('\n'); 595 PRINTCHAR ('\n');
596 PRINTFINISH; 596 PRINTFINISH;
597#ifdef MAX_PRINT_CHARS 597#ifdef MAX_PRINT_CHARS
@@ -599,7 +599,7 @@ Output stream is PRINTCHARFUN, or value of `standard-output' (which see).")
599 print_chars = 0; 599 print_chars = 0;
600#endif /* MAX_PRINT_CHARS */ 600#endif /* MAX_PRINT_CHARS */
601 UNGCPRO; 601 UNGCPRO;
602 return obj; 602 return object;
603} 603}
604 604
605/* The subroutine object for external-debugging-output is kept here 605/* The subroutine object for external-debugging-output is kept here