diff options
| author | Erik Naggum | 1996-01-09 00:31:02 +0000 |
|---|---|---|
| committer | Erik Naggum | 1996-01-09 00:31:02 +0000 |
| commit | d9c2a0f2b63654da6ddb6fd77e8eebf8dba9835a (patch) | |
| tree | 639ef7901f705a8ce1c9eac04336f0022286afb2 /src/data.c | |
| parent | 72d5f589b6c91e6cc13abf792ada94edfc70870b (diff) | |
| download | emacs-d9c2a0f2b63654da6ddb6fd77e8eebf8dba9835a.tar.gz emacs-d9c2a0f2b63654da6ddb6fd77e8eebf8dba9835a.zip | |
(Fboundp, Ffboundp, Fmakunbound, Ffmakunbound, Fsymbol_plist, Fsymbol_name,
Ffset, Fdefalias, Fdefine_function, Fsetplist, store_symval_forwarding,
swap_in_symval_forwarding, find_symbol_value, Fsymbol_value, Fset,
default_value, Fdefault_boundp, Fdefault_value, Fset_default,
Fsetq_default, Fmake_variable_buffer_local, Fmake_local_variable,
Fkill_local_variable, Flocal_variable_p, Flocal_variable_if_set_p, Faref,
Faset, Fzerop, Fnumber_to_string, Fstring_to_number, Frem, Fmod, Fadd1,
Fsub1, Flognot): Harmonize arguments with documentation.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 476 |
1 files changed, 238 insertions, 238 deletions
diff --git a/src/data.c b/src/data.c index b0229430141..3e8004d0931 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -560,49 +560,49 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, | |||
| 560 | /* Extract and set components of symbols */ | 560 | /* Extract and set components of symbols */ |
| 561 | 561 | ||
| 562 | DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, "T if SYMBOL's value is not void.") | 562 | DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, "T if SYMBOL's value is not void.") |
| 563 | (sym) | 563 | (symbol) |
| 564 | register Lisp_Object sym; | 564 | register Lisp_Object symbol; |
| 565 | { | 565 | { |
| 566 | Lisp_Object valcontents; | 566 | Lisp_Object valcontents; |
| 567 | CHECK_SYMBOL (sym, 0); | 567 | CHECK_SYMBOL (symbol, 0); |
| 568 | 568 | ||
| 569 | valcontents = XSYMBOL (sym)->value; | 569 | valcontents = XSYMBOL (symbol)->value; |
| 570 | 570 | ||
| 571 | if (BUFFER_LOCAL_VALUEP (valcontents) | 571 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| 572 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 572 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 573 | valcontents = swap_in_symval_forwarding (sym, valcontents); | 573 | valcontents = swap_in_symval_forwarding (symbol, valcontents); |
| 574 | 574 | ||
| 575 | return (EQ (valcontents, Qunbound) ? Qnil : Qt); | 575 | return (EQ (valcontents, Qunbound) ? Qnil : Qt); |
| 576 | } | 576 | } |
| 577 | 577 | ||
| 578 | DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, "T if SYMBOL's function definition is not void.") | 578 | DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, "T if SYMBOL's function definition is not void.") |
| 579 | (sym) | 579 | (symbol) |
| 580 | register Lisp_Object sym; | 580 | register Lisp_Object symbol; |
| 581 | { | 581 | { |
| 582 | CHECK_SYMBOL (sym, 0); | 582 | CHECK_SYMBOL (symbol, 0); |
| 583 | return (EQ (XSYMBOL (sym)->function, Qunbound) ? Qnil : Qt); | 583 | return (EQ (XSYMBOL (symbol)->function, Qunbound) ? Qnil : Qt); |
| 584 | } | 584 | } |
| 585 | 585 | ||
| 586 | DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, "Make SYMBOL's value be void.") | 586 | DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, "Make SYMBOL's value be void.") |
| 587 | (sym) | 587 | (symbol) |
| 588 | register Lisp_Object sym; | 588 | register Lisp_Object symbol; |
| 589 | { | 589 | { |
| 590 | CHECK_SYMBOL (sym, 0); | 590 | CHECK_SYMBOL (symbol, 0); |
| 591 | if (NILP (sym) || EQ (sym, Qt)) | 591 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 592 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 592 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 593 | Fset (sym, Qunbound); | 593 | Fset (symbol, Qunbound); |
| 594 | return sym; | 594 | return symbol; |
| 595 | } | 595 | } |
| 596 | 596 | ||
| 597 | DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, "Make SYMBOL's function definition be void.") | 597 | DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, "Make SYMBOL's function definition be void.") |
| 598 | (sym) | 598 | (symbol) |
| 599 | register Lisp_Object sym; | 599 | register Lisp_Object symbol; |
| 600 | { | 600 | { |
| 601 | CHECK_SYMBOL (sym, 0); | 601 | CHECK_SYMBOL (symbol, 0); |
| 602 | if (NILP (sym) || EQ (sym, Qt)) | 602 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 603 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 603 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 604 | XSYMBOL (sym)->function = Qunbound; | 604 | XSYMBOL (symbol)->function = Qunbound; |
| 605 | return sym; | 605 | return symbol; |
| 606 | } | 606 | } |
| 607 | 607 | ||
| 608 | DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, | 608 | DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, |
| @@ -617,41 +617,41 @@ DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, | |||
| 617 | } | 617 | } |
| 618 | 618 | ||
| 619 | DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0, "Return SYMBOL's property list.") | 619 | DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0, "Return SYMBOL's property list.") |
| 620 | (sym) | 620 | (symbol) |
| 621 | register Lisp_Object sym; | 621 | register Lisp_Object symbol; |
| 622 | { | 622 | { |
| 623 | CHECK_SYMBOL (sym, 0); | 623 | CHECK_SYMBOL (symbol, 0); |
| 624 | return XSYMBOL (sym)->plist; | 624 | return XSYMBOL (symbol)->plist; |
| 625 | } | 625 | } |
| 626 | 626 | ||
| 627 | DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, "Return SYMBOL's name, a string.") | 627 | DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, "Return SYMBOL's name, a string.") |
| 628 | (sym) | 628 | (symbol) |
| 629 | register Lisp_Object sym; | 629 | register Lisp_Object symbol; |
| 630 | { | 630 | { |
| 631 | register Lisp_Object name; | 631 | register Lisp_Object name; |
| 632 | 632 | ||
| 633 | CHECK_SYMBOL (sym, 0); | 633 | CHECK_SYMBOL (symbol, 0); |
| 634 | XSETSTRING (name, XSYMBOL (sym)->name); | 634 | XSETSTRING (name, XSYMBOL (symbol)->name); |
| 635 | return name; | 635 | return name; |
| 636 | } | 636 | } |
| 637 | 637 | ||
| 638 | DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | 638 | DEFUN ("fset", Ffset, Sfset, 2, 2, 0, |
| 639 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.") | 639 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.") |
| 640 | (sym, newdef) | 640 | (symbol, newdef) |
| 641 | register Lisp_Object sym, newdef; | 641 | register Lisp_Object symbol, newdef; |
| 642 | { | 642 | { |
| 643 | CHECK_SYMBOL (sym, 0); | 643 | CHECK_SYMBOL (symbol, 0); |
| 644 | if (NILP (sym) || EQ (sym, Qt)) | 644 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 645 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 645 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 646 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) | 646 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) |
| 647 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), | 647 | Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function), |
| 648 | Vautoload_queue); | 648 | Vautoload_queue); |
| 649 | XSYMBOL (sym)->function = newdef; | 649 | XSYMBOL (symbol)->function = newdef; |
| 650 | /* Handle automatic advice activation */ | 650 | /* Handle automatic advice activation */ |
| 651 | if (CONSP (XSYMBOL (sym)->plist) && !NILP (Fget (sym, Qad_advice_info))) | 651 | if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info))) |
| 652 | { | 652 | { |
| 653 | call2 (Qad_activate, sym, Qnil); | 653 | call2 (Qad_activate, symbol, Qnil); |
| 654 | newdef = XSYMBOL (sym)->function; | 654 | newdef = XSYMBOL (symbol)->function; |
| 655 | } | 655 | } |
| 656 | return newdef; | 656 | return newdef; |
| 657 | } | 657 | } |
| @@ -661,52 +661,52 @@ DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | |||
| 661 | DEFUN ("defalias", Fdefalias, Sdefalias, 2, 2, 0, | 661 | DEFUN ("defalias", Fdefalias, Sdefalias, 2, 2, 0, |
| 662 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\ | 662 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\ |
| 663 | Associates the function with the current load file, if any.") | 663 | Associates the function with the current load file, if any.") |
| 664 | (sym, newdef) | 664 | (symbol, newdef) |
| 665 | register Lisp_Object sym, newdef; | 665 | register Lisp_Object symbol, newdef; |
| 666 | { | 666 | { |
| 667 | CHECK_SYMBOL (sym, 0); | 667 | CHECK_SYMBOL (symbol, 0); |
| 668 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) | 668 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) |
| 669 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), | 669 | Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function), |
| 670 | Vautoload_queue); | 670 | Vautoload_queue); |
| 671 | XSYMBOL (sym)->function = newdef; | 671 | XSYMBOL (symbol)->function = newdef; |
| 672 | /* Handle automatic advice activation */ | 672 | /* Handle automatic advice activation */ |
| 673 | if (CONSP (XSYMBOL (sym)->plist) && !NILP (Fget (sym, Qad_advice_info))) | 673 | if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info))) |
| 674 | { | 674 | { |
| 675 | call2 (Qad_activate, sym, Qnil); | 675 | call2 (Qad_activate, symbol, Qnil); |
| 676 | newdef = XSYMBOL (sym)->function; | 676 | newdef = XSYMBOL (symbol)->function; |
| 677 | } | 677 | } |
| 678 | LOADHIST_ATTACH (sym); | 678 | LOADHIST_ATTACH (symbol); |
| 679 | return newdef; | 679 | return newdef; |
| 680 | } | 680 | } |
| 681 | 681 | ||
| 682 | DEFUN ("define-function", Fdefine_function, Sdefine_function, 2, 2, 0, | 682 | DEFUN ("define-function", Fdefine_function, Sdefine_function, 2, 2, 0, |
| 683 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\ | 683 | "Set SYMBOL's function definition to NEWVAL, and return NEWVAL.\n\ |
| 684 | Associates the function with the current load file, if any.") | 684 | Associates the function with the current load file, if any.") |
| 685 | (sym, newdef) | 685 | (symbol, newdef) |
| 686 | register Lisp_Object sym, newdef; | 686 | register Lisp_Object symbol, newdef; |
| 687 | { | 687 | { |
| 688 | CHECK_SYMBOL (sym, 0); | 688 | CHECK_SYMBOL (symbol, 0); |
| 689 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (sym)->function, Qunbound)) | 689 | if (!NILP (Vautoload_queue) && !EQ (XSYMBOL (symbol)->function, Qunbound)) |
| 690 | Vautoload_queue = Fcons (Fcons (sym, XSYMBOL (sym)->function), | 690 | Vautoload_queue = Fcons (Fcons (symbol, XSYMBOL (symbol)->function), |
| 691 | Vautoload_queue); | 691 | Vautoload_queue); |
| 692 | XSYMBOL (sym)->function = newdef; | 692 | XSYMBOL (symbol)->function = newdef; |
| 693 | /* Handle automatic advice activation */ | 693 | /* Handle automatic advice activation */ |
| 694 | if (CONSP (XSYMBOL (sym)->plist) && !NILP (Fget (sym, Qad_advice_info))) | 694 | if (CONSP (XSYMBOL (symbol)->plist) && !NILP (Fget (symbol, Qad_advice_info))) |
| 695 | { | 695 | { |
| 696 | call2 (Qad_activate, sym, Qnil); | 696 | call2 (Qad_activate, symbol, Qnil); |
| 697 | newdef = XSYMBOL (sym)->function; | 697 | newdef = XSYMBOL (symbol)->function; |
| 698 | } | 698 | } |
| 699 | LOADHIST_ATTACH (sym); | 699 | LOADHIST_ATTACH (symbol); |
| 700 | return newdef; | 700 | return newdef; |
| 701 | } | 701 | } |
| 702 | 702 | ||
| 703 | DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0, | 703 | DEFUN ("setplist", Fsetplist, Ssetplist, 2, 2, 0, |
| 704 | "Set SYMBOL's property list to NEWVAL, and return NEWVAL.") | 704 | "Set SYMBOL's property list to NEWVAL, and return NEWVAL.") |
| 705 | (sym, newplist) | 705 | (symbol, newplist) |
| 706 | register Lisp_Object sym, newplist; | 706 | register Lisp_Object symbol, newplist; |
| 707 | { | 707 | { |
| 708 | CHECK_SYMBOL (sym, 0); | 708 | CHECK_SYMBOL (symbol, 0); |
| 709 | XSYMBOL (sym)->plist = newplist; | 709 | XSYMBOL (symbol)->plist = newplist; |
| 710 | return newplist; | 710 | return newplist; |
| 711 | } | 711 | } |
| 712 | 712 | ||
| @@ -748,14 +748,14 @@ do_symval_forwarding (valcontents) | |||
| 748 | return valcontents; | 748 | return valcontents; |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | /* Store NEWVAL into SYM, where VALCONTENTS is found in the value cell | 751 | /* Store NEWVAL into SYMBOL, where VALCONTENTS is found in the value cell |
| 752 | of SYM. If SYM is buffer-local, VALCONTENTS should be the | 752 | of SYMBOL. If SYMBOL is buffer-local, VALCONTENTS should be the |
| 753 | buffer-independent contents of the value cell: forwarded just one | 753 | buffer-independent contents of the value cell: forwarded just one |
| 754 | step past the buffer-localness. */ | 754 | step past the buffer-localness. */ |
| 755 | 755 | ||
| 756 | void | 756 | void |
| 757 | store_symval_forwarding (sym, valcontents, newval) | 757 | store_symval_forwarding (symbol, valcontents, newval) |
| 758 | Lisp_Object sym; | 758 | Lisp_Object symbol; |
| 759 | register Lisp_Object valcontents, newval; | 759 | register Lisp_Object valcontents, newval; |
| 760 | { | 760 | { |
| 761 | switch (SWITCH_ENUM_CAST (XTYPE (valcontents))) | 761 | switch (SWITCH_ENUM_CAST (XTYPE (valcontents))) |
| @@ -768,7 +768,7 @@ store_symval_forwarding (sym, valcontents, newval) | |||
| 768 | *XINTFWD (valcontents)->intvar = XINT (newval); | 768 | *XINTFWD (valcontents)->intvar = XINT (newval); |
| 769 | if (*XINTFWD (valcontents)->intvar != XINT (newval)) | 769 | if (*XINTFWD (valcontents)->intvar != XINT (newval)) |
| 770 | error ("Value out of range for variable `%s'", | 770 | error ("Value out of range for variable `%s'", |
| 771 | XSYMBOL (sym)->name->data); | 771 | XSYMBOL (symbol)->name->data); |
| 772 | break; | 772 | break; |
| 773 | 773 | ||
| 774 | case Lisp_Misc_Boolfwd: | 774 | case Lisp_Misc_Boolfwd: |
| @@ -806,22 +806,22 @@ store_symval_forwarding (sym, valcontents, newval) | |||
| 806 | 806 | ||
| 807 | default: | 807 | default: |
| 808 | def: | 808 | def: |
| 809 | valcontents = XSYMBOL (sym)->value; | 809 | valcontents = XSYMBOL (symbol)->value; |
| 810 | if (BUFFER_LOCAL_VALUEP (valcontents) | 810 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| 811 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 811 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 812 | XBUFFER_LOCAL_VALUE (valcontents)->car = newval; | 812 | XBUFFER_LOCAL_VALUE (valcontents)->car = newval; |
| 813 | else | 813 | else |
| 814 | XSYMBOL (sym)->value = newval; | 814 | XSYMBOL (symbol)->value = newval; |
| 815 | } | 815 | } |
| 816 | } | 816 | } |
| 817 | 817 | ||
| 818 | /* Set up the buffer-local symbol SYM for validity in the current | 818 | /* Set up the buffer-local symbol SYMBOL for validity in the current |
| 819 | buffer. VALCONTENTS is the contents of its value cell. | 819 | buffer. VALCONTENTS is the contents of its value cell. |
| 820 | Return the value forwarded one step past the buffer-local indicator. */ | 820 | Return the value forwarded one step past the buffer-local indicator. */ |
| 821 | 821 | ||
| 822 | static Lisp_Object | 822 | static Lisp_Object |
| 823 | swap_in_symval_forwarding (sym, valcontents) | 823 | swap_in_symval_forwarding (symbol, valcontents) |
| 824 | Lisp_Object sym, valcontents; | 824 | Lisp_Object symbol, valcontents; |
| 825 | { | 825 | { |
| 826 | /* valcontents is a pointer to a struct resembling the cons | 826 | /* valcontents is a pointer to a struct resembling the cons |
| 827 | (REALVALUE BUFFER CURRENT-ALIST-ELEMENT . DEFAULT-VALUE)). | 827 | (REALVALUE BUFFER CURRENT-ALIST-ELEMENT . DEFAULT-VALUE)). |
| @@ -848,13 +848,13 @@ swap_in_symval_forwarding (sym, valcontents) | |||
| 848 | tem1 = XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car; | 848 | tem1 = XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car; |
| 849 | Fsetcdr (tem1, | 849 | Fsetcdr (tem1, |
| 850 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->car)); | 850 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->car)); |
| 851 | tem1 = assq_no_quit (sym, current_buffer->local_var_alist); | 851 | tem1 = assq_no_quit (symbol, current_buffer->local_var_alist); |
| 852 | if (NILP (tem1)) | 852 | if (NILP (tem1)) |
| 853 | tem1 = XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr; | 853 | tem1 = XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr; |
| 854 | XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car = tem1; | 854 | XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car = tem1; |
| 855 | XSETBUFFER (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car, | 855 | XSETBUFFER (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car, |
| 856 | current_buffer); | 856 | current_buffer); |
| 857 | store_symval_forwarding (sym, XBUFFER_LOCAL_VALUE (valcontents)->car, | 857 | store_symval_forwarding (symbol, XBUFFER_LOCAL_VALUE (valcontents)->car, |
| 858 | Fcdr (tem1)); | 858 | Fcdr (tem1)); |
| 859 | } | 859 | } |
| 860 | return XBUFFER_LOCAL_VALUE (valcontents)->car; | 860 | return XBUFFER_LOCAL_VALUE (valcontents)->car; |
| @@ -867,17 +867,17 @@ swap_in_symval_forwarding (sym, valcontents) | |||
| 867 | within this function. Great care is required for this. */ | 867 | within this function. Great care is required for this. */ |
| 868 | 868 | ||
| 869 | Lisp_Object | 869 | Lisp_Object |
| 870 | find_symbol_value (sym) | 870 | find_symbol_value (symbol) |
| 871 | Lisp_Object sym; | 871 | Lisp_Object symbol; |
| 872 | { | 872 | { |
| 873 | register Lisp_Object valcontents, tem1; | 873 | register Lisp_Object valcontents, tem1; |
| 874 | register Lisp_Object val; | 874 | register Lisp_Object val; |
| 875 | CHECK_SYMBOL (sym, 0); | 875 | CHECK_SYMBOL (symbol, 0); |
| 876 | valcontents = XSYMBOL (sym)->value; | 876 | valcontents = XSYMBOL (symbol)->value; |
| 877 | 877 | ||
| 878 | if (BUFFER_LOCAL_VALUEP (valcontents) | 878 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| 879 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 879 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 880 | valcontents = swap_in_symval_forwarding (sym, valcontents); | 880 | valcontents = swap_in_symval_forwarding (symbol, valcontents); |
| 881 | 881 | ||
| 882 | if (MISCP (valcontents)) | 882 | if (MISCP (valcontents)) |
| 883 | { | 883 | { |
| @@ -908,31 +908,31 @@ find_symbol_value (sym) | |||
| 908 | 908 | ||
| 909 | DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, | 909 | DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, |
| 910 | "Return SYMBOL's value. Error if that is void.") | 910 | "Return SYMBOL's value. Error if that is void.") |
| 911 | (sym) | 911 | (symbol) |
| 912 | Lisp_Object sym; | 912 | Lisp_Object symbol; |
| 913 | { | 913 | { |
| 914 | Lisp_Object val; | 914 | Lisp_Object val; |
| 915 | 915 | ||
| 916 | val = find_symbol_value (sym); | 916 | val = find_symbol_value (symbol); |
| 917 | if (EQ (val, Qunbound)) | 917 | if (EQ (val, Qunbound)) |
| 918 | return Fsignal (Qvoid_variable, Fcons (sym, Qnil)); | 918 | return Fsignal (Qvoid_variable, Fcons (symbol, Qnil)); |
| 919 | else | 919 | else |
| 920 | return val; | 920 | return val; |
| 921 | } | 921 | } |
| 922 | 922 | ||
| 923 | DEFUN ("set", Fset, Sset, 2, 2, 0, | 923 | DEFUN ("set", Fset, Sset, 2, 2, 0, |
| 924 | "Set SYMBOL's value to NEWVAL, and return NEWVAL.") | 924 | "Set SYMBOL's value to NEWVAL, and return NEWVAL.") |
| 925 | (sym, newval) | 925 | (symbol, newval) |
| 926 | register Lisp_Object sym, newval; | 926 | register Lisp_Object symbol, newval; |
| 927 | { | 927 | { |
| 928 | int voide = EQ (newval, Qunbound); | 928 | int voide = EQ (newval, Qunbound); |
| 929 | 929 | ||
| 930 | register Lisp_Object valcontents, tem1, current_alist_element; | 930 | register Lisp_Object valcontents, tem1, current_alist_element; |
| 931 | 931 | ||
| 932 | CHECK_SYMBOL (sym, 0); | 932 | CHECK_SYMBOL (symbol, 0); |
| 933 | if (NILP (sym) || EQ (sym, Qt)) | 933 | if (NILP (symbol) || EQ (symbol, Qt)) |
| 934 | return Fsignal (Qsetting_constant, Fcons (sym, Qnil)); | 934 | return Fsignal (Qsetting_constant, Fcons (symbol, Qnil)); |
| 935 | valcontents = XSYMBOL (sym)->value; | 935 | valcontents = XSYMBOL (symbol)->value; |
| 936 | 936 | ||
| 937 | if (BUFFER_OBJFWDP (valcontents)) | 937 | if (BUFFER_OBJFWDP (valcontents)) |
| 938 | { | 938 | { |
| @@ -995,7 +995,7 @@ DEFUN ("set", Fset, Sset, 2, 2, 0, | |||
| 995 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->car)); | 995 | do_symval_forwarding (XBUFFER_LOCAL_VALUE (valcontents)->car)); |
| 996 | 996 | ||
| 997 | /* Find the new value for CURRENT-ALIST-ELEMENT. */ | 997 | /* Find the new value for CURRENT-ALIST-ELEMENT. */ |
| 998 | tem1 = Fassq (sym, current_buffer->local_var_alist); | 998 | tem1 = Fassq (symbol, current_buffer->local_var_alist); |
| 999 | if (NILP (tem1)) | 999 | if (NILP (tem1)) |
| 1000 | { | 1000 | { |
| 1001 | /* This buffer still sees the default value. */ | 1001 | /* This buffer still sees the default value. */ |
| @@ -1011,7 +1011,7 @@ DEFUN ("set", Fset, Sset, 2, 2, 0, | |||
| 1011 | CURRENT-ALIST-ELEMENT to point to that. */ | 1011 | CURRENT-ALIST-ELEMENT to point to that. */ |
| 1012 | else | 1012 | else |
| 1013 | { | 1013 | { |
| 1014 | tem1 = Fcons (sym, Fcdr (current_alist_element)); | 1014 | tem1 = Fcons (symbol, Fcdr (current_alist_element)); |
| 1015 | current_buffer->local_var_alist = | 1015 | current_buffer->local_var_alist = |
| 1016 | Fcons (tem1, current_buffer->local_var_alist); | 1016 | Fcons (tem1, current_buffer->local_var_alist); |
| 1017 | } | 1017 | } |
| @@ -1030,26 +1030,26 @@ DEFUN ("set", Fset, Sset, 2, 2, 0, | |||
| 1030 | /* If storing void (making the symbol void), forward only through | 1030 | /* If storing void (making the symbol void), forward only through |
| 1031 | buffer-local indicator, not through Lisp_Objfwd, etc. */ | 1031 | buffer-local indicator, not through Lisp_Objfwd, etc. */ |
| 1032 | if (voide) | 1032 | if (voide) |
| 1033 | store_symval_forwarding (sym, Qnil, newval); | 1033 | store_symval_forwarding (symbol, Qnil, newval); |
| 1034 | else | 1034 | else |
| 1035 | store_symval_forwarding (sym, valcontents, newval); | 1035 | store_symval_forwarding (symbol, valcontents, newval); |
| 1036 | 1036 | ||
| 1037 | return newval; | 1037 | return newval; |
| 1038 | } | 1038 | } |
| 1039 | 1039 | ||
| 1040 | /* Access or set a buffer-local symbol's default value. */ | 1040 | /* Access or set a buffer-local symbol's default value. */ |
| 1041 | 1041 | ||
| 1042 | /* Return the default value of SYM, but don't check for voidness. | 1042 | /* Return the default value of SYMBOL, but don't check for voidness. |
| 1043 | Return Qunbound if it is void. */ | 1043 | Return Qunbound if it is void. */ |
| 1044 | 1044 | ||
| 1045 | Lisp_Object | 1045 | Lisp_Object |
| 1046 | default_value (sym) | 1046 | default_value (symbol) |
| 1047 | Lisp_Object sym; | 1047 | Lisp_Object symbol; |
| 1048 | { | 1048 | { |
| 1049 | register Lisp_Object valcontents; | 1049 | register Lisp_Object valcontents; |
| 1050 | 1050 | ||
| 1051 | CHECK_SYMBOL (sym, 0); | 1051 | CHECK_SYMBOL (symbol, 0); |
| 1052 | valcontents = XSYMBOL (sym)->value; | 1052 | valcontents = XSYMBOL (symbol)->value; |
| 1053 | 1053 | ||
| 1054 | /* For a built-in buffer-local variable, get the default value | 1054 | /* For a built-in buffer-local variable, get the default value |
| 1055 | rather than letting do_symval_forwarding get the current value. */ | 1055 | rather than letting do_symval_forwarding get the current value. */ |
| @@ -1086,12 +1086,12 @@ DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0, | |||
| 1086 | "Return T if SYMBOL has a non-void default value.\n\ | 1086 | "Return T if SYMBOL has a non-void default value.\n\ |
| 1087 | This is the value that is seen in buffers that do not have their own values\n\ | 1087 | This is the value that is seen in buffers that do not have their own values\n\ |
| 1088 | for this variable.") | 1088 | for this variable.") |
| 1089 | (sym) | 1089 | (symbol) |
| 1090 | Lisp_Object sym; | 1090 | Lisp_Object symbol; |
| 1091 | { | 1091 | { |
| 1092 | register Lisp_Object value; | 1092 | register Lisp_Object value; |
| 1093 | 1093 | ||
| 1094 | value = default_value (sym); | 1094 | value = default_value (symbol); |
| 1095 | return (EQ (value, Qunbound) ? Qnil : Qt); | 1095 | return (EQ (value, Qunbound) ? Qnil : Qt); |
| 1096 | } | 1096 | } |
| 1097 | 1097 | ||
| @@ -1100,14 +1100,14 @@ DEFUN ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0, | |||
| 1100 | This is the value that is seen in buffers that do not have their own values\n\ | 1100 | This is the value that is seen in buffers that do not have their own values\n\ |
| 1101 | for this variable. The default value is meaningful for variables with\n\ | 1101 | for this variable. The default value is meaningful for variables with\n\ |
| 1102 | local bindings in certain buffers.") | 1102 | local bindings in certain buffers.") |
| 1103 | (sym) | 1103 | (symbol) |
| 1104 | Lisp_Object sym; | 1104 | Lisp_Object symbol; |
| 1105 | { | 1105 | { |
| 1106 | register Lisp_Object value; | 1106 | register Lisp_Object value; |
| 1107 | 1107 | ||
| 1108 | value = default_value (sym); | 1108 | value = default_value (symbol); |
| 1109 | if (EQ (value, Qunbound)) | 1109 | if (EQ (value, Qunbound)) |
| 1110 | return Fsignal (Qvoid_variable, Fcons (sym, Qnil)); | 1110 | return Fsignal (Qvoid_variable, Fcons (symbol, Qnil)); |
| 1111 | return value; | 1111 | return value; |
| 1112 | } | 1112 | } |
| 1113 | 1113 | ||
| @@ -1115,13 +1115,13 @@ DEFUN ("set-default", Fset_default, Sset_default, 2, 2, 0, | |||
| 1115 | "Set SYMBOL's default value to VAL. SYMBOL and VAL are evaluated.\n\ | 1115 | "Set SYMBOL's default value to VAL. SYMBOL and VAL are evaluated.\n\ |
| 1116 | The default value is seen in buffers that do not have their own values\n\ | 1116 | The default value is seen in buffers that do not have their own values\n\ |
| 1117 | for this variable.") | 1117 | for this variable.") |
| 1118 | (sym, value) | 1118 | (symbol, value) |
| 1119 | Lisp_Object sym, value; | 1119 | Lisp_Object symbol, value; |
| 1120 | { | 1120 | { |
| 1121 | register Lisp_Object valcontents, current_alist_element, alist_element_buffer; | 1121 | register Lisp_Object valcontents, current_alist_element, alist_element_buffer; |
| 1122 | 1122 | ||
| 1123 | CHECK_SYMBOL (sym, 0); | 1123 | CHECK_SYMBOL (symbol, 0); |
| 1124 | valcontents = XSYMBOL (sym)->value; | 1124 | valcontents = XSYMBOL (symbol)->value; |
| 1125 | 1125 | ||
| 1126 | /* Handle variables like case-fold-search that have special slots | 1126 | /* Handle variables like case-fold-search that have special slots |
| 1127 | in the buffer. Make them work apparently like Lisp_Buffer_Local_Value | 1127 | in the buffer. Make them work apparently like Lisp_Buffer_Local_Value |
| @@ -1145,7 +1145,7 @@ for this variable.") | |||
| 1145 | 1145 | ||
| 1146 | if (!BUFFER_LOCAL_VALUEP (valcontents) | 1146 | if (!BUFFER_LOCAL_VALUEP (valcontents) |
| 1147 | && !SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 1147 | && !SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 1148 | return Fset (sym, value); | 1148 | return Fset (symbol, value); |
| 1149 | 1149 | ||
| 1150 | /* Store new value into the DEFAULT-VALUE slot */ | 1150 | /* Store new value into the DEFAULT-VALUE slot */ |
| 1151 | XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->cdr = value; | 1151 | XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->cdr = value; |
| @@ -1155,7 +1155,7 @@ for this variable.") | |||
| 1155 | = XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car; | 1155 | = XCONS (XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->cdr)->car; |
| 1156 | alist_element_buffer = Fcar (current_alist_element); | 1156 | alist_element_buffer = Fcar (current_alist_element); |
| 1157 | if (EQ (alist_element_buffer, current_alist_element)) | 1157 | if (EQ (alist_element_buffer, current_alist_element)) |
| 1158 | store_symval_forwarding (sym, XBUFFER_LOCAL_VALUE (valcontents)->car, | 1158 | store_symval_forwarding (symbol, XBUFFER_LOCAL_VALUE (valcontents)->car, |
| 1159 | value); | 1159 | value); |
| 1160 | 1160 | ||
| 1161 | return value; | 1161 | return value; |
| @@ -1169,15 +1169,15 @@ The default value of a variable is seen in buffers\n\ | |||
| 1169 | that do not have their own values for the variable.\n\ | 1169 | that do not have their own values for the variable.\n\ |
| 1170 | \n\ | 1170 | \n\ |
| 1171 | More generally, you can use multiple variables and values, as in\n\ | 1171 | More generally, you can use multiple variables and values, as in\n\ |
| 1172 | (setq-default SYM VALUE SYM VALUE...)\n\ | 1172 | (setq-default SYMBOL VALUE SYMBOL VALUE...)\n\ |
| 1173 | This sets each SYM's default value to the corresponding VALUE.\n\ | 1173 | This sets each SYMBOL's default value to the corresponding VALUE.\n\ |
| 1174 | The VALUE for the Nth SYM can refer to the new default values\n\ | 1174 | The VALUE for the Nth SYMBOL can refer to the new default values\n\ |
| 1175 | of previous SYMs.") | 1175 | of previous SYMs.") |
| 1176 | (args) | 1176 | (args) |
| 1177 | Lisp_Object args; | 1177 | Lisp_Object args; |
| 1178 | { | 1178 | { |
| 1179 | register Lisp_Object args_left; | 1179 | register Lisp_Object args_left; |
| 1180 | register Lisp_Object val, sym; | 1180 | register Lisp_Object val, symbol; |
| 1181 | struct gcpro gcpro1; | 1181 | struct gcpro gcpro1; |
| 1182 | 1182 | ||
| 1183 | if (NILP (args)) | 1183 | if (NILP (args)) |
| @@ -1189,8 +1189,8 @@ of previous SYMs.") | |||
| 1189 | do | 1189 | do |
| 1190 | { | 1190 | { |
| 1191 | val = Feval (Fcar (Fcdr (args_left))); | 1191 | val = Feval (Fcar (Fcdr (args_left))); |
| 1192 | sym = Fcar (args_left); | 1192 | symbol = Fcar (args_left); |
| 1193 | Fset_default (sym, val); | 1193 | Fset_default (symbol, val); |
| 1194 | args_left = Fcdr (Fcdr (args_left)); | 1194 | args_left = Fcdr (Fcdr (args_left)); |
| 1195 | } | 1195 | } |
| 1196 | while (!NILP (args_left)); | 1196 | while (!NILP (args_left)); |
| @@ -1210,34 +1210,34 @@ set its own value.\n\ | |||
| 1210 | Using `set' or `setq' to set the variable causes it to have a separate value\n\ | 1210 | Using `set' or `setq' to set the variable causes it to have a separate value\n\ |
| 1211 | for the current buffer if it was previously using the default value.\n\ | 1211 | for the current buffer if it was previously using the default value.\n\ |
| 1212 | The function `default-value' gets the default value and `set-default' sets it.") | 1212 | The function `default-value' gets the default value and `set-default' sets it.") |
| 1213 | (sym) | 1213 | (variable) |
| 1214 | register Lisp_Object sym; | 1214 | register Lisp_Object variable; |
| 1215 | { | 1215 | { |
| 1216 | register Lisp_Object tem, valcontents, newval; | 1216 | register Lisp_Object tem, valcontents, newval; |
| 1217 | 1217 | ||
| 1218 | CHECK_SYMBOL (sym, 0); | 1218 | CHECK_SYMBOL (variable, 0); |
| 1219 | 1219 | ||
| 1220 | valcontents = XSYMBOL (sym)->value; | 1220 | valcontents = XSYMBOL (variable)->value; |
| 1221 | if (EQ (sym, Qnil) || EQ (sym, Qt) || KBOARD_OBJFWDP (valcontents)) | 1221 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) |
| 1222 | error ("Symbol %s may not be buffer-local", XSYMBOL (sym)->name->data); | 1222 | error ("Symbol %s may not be buffer-local", XSYMBOL (variable)->name->data); |
| 1223 | 1223 | ||
| 1224 | if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) | 1224 | if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) |
| 1225 | return sym; | 1225 | return variable; |
| 1226 | if (SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 1226 | if (SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 1227 | { | 1227 | { |
| 1228 | XMISCTYPE (XSYMBOL (sym)->value) = Lisp_Misc_Buffer_Local_Value; | 1228 | XMISCTYPE (XSYMBOL (variable)->value) = Lisp_Misc_Buffer_Local_Value; |
| 1229 | return sym; | 1229 | return variable; |
| 1230 | } | 1230 | } |
| 1231 | if (EQ (valcontents, Qunbound)) | 1231 | if (EQ (valcontents, Qunbound)) |
| 1232 | XSYMBOL (sym)->value = Qnil; | 1232 | XSYMBOL (variable)->value = Qnil; |
| 1233 | tem = Fcons (Qnil, Fsymbol_value (sym)); | 1233 | tem = Fcons (Qnil, Fsymbol_value (variable)); |
| 1234 | XCONS (tem)->car = tem; | 1234 | XCONS (tem)->car = tem; |
| 1235 | newval = allocate_misc (); | 1235 | newval = allocate_misc (); |
| 1236 | XMISCTYPE (newval) = Lisp_Misc_Buffer_Local_Value; | 1236 | XMISCTYPE (newval) = Lisp_Misc_Buffer_Local_Value; |
| 1237 | XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (sym)->value; | 1237 | XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (variable)->value; |
| 1238 | XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Fcurrent_buffer (), tem); | 1238 | XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Fcurrent_buffer (), tem); |
| 1239 | XSYMBOL (sym)->value = newval; | 1239 | XSYMBOL (variable)->value = newval; |
| 1240 | return sym; | 1240 | return variable; |
| 1241 | } | 1241 | } |
| 1242 | 1242 | ||
| 1243 | DEFUN ("make-local-variable", Fmake_local_variable, Smake_local_variable, | 1243 | DEFUN ("make-local-variable", Fmake_local_variable, Smake_local_variable, |
| @@ -1253,27 +1253,27 @@ just as setting the variable would do.\n\ | |||
| 1253 | \n\ | 1253 | \n\ |
| 1254 | Do not use `make-local-variable' to make a hook variable buffer-local.\n\ | 1254 | Do not use `make-local-variable' to make a hook variable buffer-local.\n\ |
| 1255 | Use `make-local-hook' instead.") | 1255 | Use `make-local-hook' instead.") |
| 1256 | (sym) | 1256 | (variable) |
| 1257 | register Lisp_Object sym; | 1257 | register Lisp_Object variable; |
| 1258 | { | 1258 | { |
| 1259 | register Lisp_Object tem, valcontents; | 1259 | register Lisp_Object tem, valcontents; |
| 1260 | 1260 | ||
| 1261 | CHECK_SYMBOL (sym, 0); | 1261 | CHECK_SYMBOL (variable, 0); |
| 1262 | 1262 | ||
| 1263 | valcontents = XSYMBOL (sym)->value; | 1263 | valcontents = XSYMBOL (variable)->value; |
| 1264 | if (EQ (sym, Qnil) || EQ (sym, Qt) || KBOARD_OBJFWDP (valcontents)) | 1264 | if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) |
| 1265 | error ("Symbol %s may not be buffer-local", XSYMBOL (sym)->name->data); | 1265 | error ("Symbol %s may not be buffer-local", XSYMBOL (variable)->name->data); |
| 1266 | 1266 | ||
| 1267 | if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) | 1267 | if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) |
| 1268 | { | 1268 | { |
| 1269 | tem = Fboundp (sym); | 1269 | tem = Fboundp (variable); |
| 1270 | 1270 | ||
| 1271 | /* Make sure the symbol has a local value in this particular buffer, | 1271 | /* Make sure the symbol has a local value in this particular buffer, |
| 1272 | by setting it to the same value it already has. */ | 1272 | by setting it to the same value it already has. */ |
| 1273 | Fset (sym, (EQ (tem, Qt) ? Fsymbol_value (sym) : Qunbound)); | 1273 | Fset (variable, (EQ (tem, Qt) ? Fsymbol_value (variable) : Qunbound)); |
| 1274 | return sym; | 1274 | return variable; |
| 1275 | } | 1275 | } |
| 1276 | /* Make sure sym is set up to hold per-buffer values */ | 1276 | /* Make sure symbol is set up to hold per-buffer values */ |
| 1277 | if (!SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 1277 | if (!SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 1278 | { | 1278 | { |
| 1279 | Lisp_Object newval; | 1279 | Lisp_Object newval; |
| @@ -1281,21 +1281,21 @@ Use `make-local-hook' instead.") | |||
| 1281 | XCONS (tem)->car = tem; | 1281 | XCONS (tem)->car = tem; |
| 1282 | newval = allocate_misc (); | 1282 | newval = allocate_misc (); |
| 1283 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; | 1283 | XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; |
| 1284 | XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (sym)->value; | 1284 | XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (variable)->value; |
| 1285 | XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Qnil, tem); | 1285 | XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Qnil, tem); |
| 1286 | XSYMBOL (sym)->value = newval; | 1286 | XSYMBOL (variable)->value = newval; |
| 1287 | } | 1287 | } |
| 1288 | /* Make sure this buffer has its own value of sym */ | 1288 | /* Make sure this buffer has its own value of symbol */ |
| 1289 | tem = Fassq (sym, current_buffer->local_var_alist); | 1289 | tem = Fassq (variable, current_buffer->local_var_alist); |
| 1290 | if (NILP (tem)) | 1290 | if (NILP (tem)) |
| 1291 | { | 1291 | { |
| 1292 | /* Swap out any local binding for some other buffer, and make | 1292 | /* Swap out any local binding for some other buffer, and make |
| 1293 | sure the current value is permanently recorded, if it's the | 1293 | sure the current value is permanently recorded, if it's the |
| 1294 | default value. */ | 1294 | default value. */ |
| 1295 | find_symbol_value (sym); | 1295 | find_symbol_value (variable); |
| 1296 | 1296 | ||
| 1297 | current_buffer->local_var_alist | 1297 | current_buffer->local_var_alist |
| 1298 | = Fcons (Fcons (sym, XCONS (XCONS (XBUFFER_LOCAL_VALUE (XSYMBOL (sym)->value)->cdr)->cdr)->cdr), | 1298 | = Fcons (Fcons (variable, XCONS (XCONS (XBUFFER_LOCAL_VALUE (XSYMBOL (variable)->value)->cdr)->cdr)->cdr), |
| 1299 | current_buffer->local_var_alist); | 1299 | current_buffer->local_var_alist); |
| 1300 | 1300 | ||
| 1301 | /* Make sure symbol does not think it is set up for this buffer; | 1301 | /* Make sure symbol does not think it is set up for this buffer; |
| @@ -1303,7 +1303,7 @@ Use `make-local-hook' instead.") | |||
| 1303 | { | 1303 | { |
| 1304 | Lisp_Object *pvalbuf; | 1304 | Lisp_Object *pvalbuf; |
| 1305 | 1305 | ||
| 1306 | valcontents = XSYMBOL (sym)->value; | 1306 | valcontents = XSYMBOL (variable)->value; |
| 1307 | 1307 | ||
| 1308 | pvalbuf = &XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car; | 1308 | pvalbuf = &XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car; |
| 1309 | if (current_buffer == XBUFFER (*pvalbuf)) | 1309 | if (current_buffer == XBUFFER (*pvalbuf)) |
| @@ -1315,25 +1315,25 @@ Use `make-local-hook' instead.") | |||
| 1315 | variable for this buffer immediately. If C code modifies the | 1315 | variable for this buffer immediately. If C code modifies the |
| 1316 | variable before we swap in, then that new value will clobber the | 1316 | variable before we swap in, then that new value will clobber the |
| 1317 | default value the next time we swap. */ | 1317 | default value the next time we swap. */ |
| 1318 | valcontents = XBUFFER_LOCAL_VALUE (XSYMBOL (sym)->value)->car; | 1318 | valcontents = XBUFFER_LOCAL_VALUE (XSYMBOL (variable)->value)->car; |
| 1319 | if (INTFWDP (valcontents) || BOOLFWDP (valcontents) || OBJFWDP (valcontents)) | 1319 | if (INTFWDP (valcontents) || BOOLFWDP (valcontents) || OBJFWDP (valcontents)) |
| 1320 | swap_in_symval_forwarding (sym, XSYMBOL (sym)->value); | 1320 | swap_in_symval_forwarding (variable, XSYMBOL (variable)->value); |
| 1321 | 1321 | ||
| 1322 | return sym; | 1322 | return variable; |
| 1323 | } | 1323 | } |
| 1324 | 1324 | ||
| 1325 | DEFUN ("kill-local-variable", Fkill_local_variable, Skill_local_variable, | 1325 | DEFUN ("kill-local-variable", Fkill_local_variable, Skill_local_variable, |
| 1326 | 1, 1, "vKill Local Variable: ", | 1326 | 1, 1, "vKill Local Variable: ", |
| 1327 | "Make VARIABLE no longer have a separate value in the current buffer.\n\ | 1327 | "Make VARIABLE no longer have a separate value in the current buffer.\n\ |
| 1328 | From now on the default value will apply in this buffer.") | 1328 | From now on the default value will apply in this buffer.") |
| 1329 | (sym) | 1329 | (variable) |
| 1330 | register Lisp_Object sym; | 1330 | register Lisp_Object variable; |
| 1331 | { | 1331 | { |
| 1332 | register Lisp_Object tem, valcontents; | 1332 | register Lisp_Object tem, valcontents; |
| 1333 | 1333 | ||
| 1334 | CHECK_SYMBOL (sym, 0); | 1334 | CHECK_SYMBOL (variable, 0); |
| 1335 | 1335 | ||
| 1336 | valcontents = XSYMBOL (sym)->value; | 1336 | valcontents = XSYMBOL (variable)->value; |
| 1337 | 1337 | ||
| 1338 | if (BUFFER_OBJFWDP (valcontents)) | 1338 | if (BUFFER_OBJFWDP (valcontents)) |
| 1339 | { | 1339 | { |
| @@ -1347,16 +1347,16 @@ From now on the default value will apply in this buffer.") | |||
| 1347 | = *(Lisp_Object *)(idx + (char *) &buffer_defaults); | 1347 | = *(Lisp_Object *)(idx + (char *) &buffer_defaults); |
| 1348 | current_buffer->local_var_flags &= ~mask; | 1348 | current_buffer->local_var_flags &= ~mask; |
| 1349 | } | 1349 | } |
| 1350 | return sym; | 1350 | return variable; |
| 1351 | } | 1351 | } |
| 1352 | 1352 | ||
| 1353 | if (!BUFFER_LOCAL_VALUEP (valcontents) | 1353 | if (!BUFFER_LOCAL_VALUEP (valcontents) |
| 1354 | && !SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 1354 | && !SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 1355 | return sym; | 1355 | return variable; |
| 1356 | 1356 | ||
| 1357 | /* Get rid of this buffer's alist element, if any */ | 1357 | /* Get rid of this buffer's alist element, if any */ |
| 1358 | 1358 | ||
| 1359 | tem = Fassq (sym, current_buffer->local_var_alist); | 1359 | tem = Fassq (variable, current_buffer->local_var_alist); |
| 1360 | if (!NILP (tem)) | 1360 | if (!NILP (tem)) |
| 1361 | current_buffer->local_var_alist | 1361 | current_buffer->local_var_alist |
| 1362 | = Fdelq (tem, current_buffer->local_var_alist); | 1362 | = Fdelq (tem, current_buffer->local_var_alist); |
| @@ -1365,21 +1365,21 @@ From now on the default value will apply in this buffer.") | |||
| 1365 | force it to look once again for this buffer's value */ | 1365 | force it to look once again for this buffer's value */ |
| 1366 | { | 1366 | { |
| 1367 | Lisp_Object *pvalbuf; | 1367 | Lisp_Object *pvalbuf; |
| 1368 | valcontents = XSYMBOL (sym)->value; | 1368 | valcontents = XSYMBOL (variable)->value; |
| 1369 | pvalbuf = &XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car; | 1369 | pvalbuf = &XCONS (XBUFFER_LOCAL_VALUE (valcontents)->cdr)->car; |
| 1370 | if (current_buffer == XBUFFER (*pvalbuf)) | 1370 | if (current_buffer == XBUFFER (*pvalbuf)) |
| 1371 | *pvalbuf = Qnil; | 1371 | *pvalbuf = Qnil; |
| 1372 | } | 1372 | } |
| 1373 | 1373 | ||
| 1374 | return sym; | 1374 | return variable; |
| 1375 | } | 1375 | } |
| 1376 | 1376 | ||
| 1377 | DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, | 1377 | DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, |
| 1378 | 1, 2, 0, | 1378 | 1, 2, 0, |
| 1379 | "Non-nil if VARIABLE has a local binding in buffer BUFFER.\n\ | 1379 | "Non-nil if VARIABLE has a local binding in buffer BUFFER.\n\ |
| 1380 | BUFFER defaults to the current buffer.") | 1380 | BUFFER defaults to the current buffer.") |
| 1381 | (sym, buffer) | 1381 | (variable, buffer) |
| 1382 | register Lisp_Object sym, buffer; | 1382 | register Lisp_Object variable, buffer; |
| 1383 | { | 1383 | { |
| 1384 | Lisp_Object valcontents; | 1384 | Lisp_Object valcontents; |
| 1385 | register struct buffer *buf; | 1385 | register struct buffer *buf; |
| @@ -1392,9 +1392,9 @@ BUFFER defaults to the current buffer.") | |||
| 1392 | buf = XBUFFER (buffer); | 1392 | buf = XBUFFER (buffer); |
| 1393 | } | 1393 | } |
| 1394 | 1394 | ||
| 1395 | CHECK_SYMBOL (sym, 0); | 1395 | CHECK_SYMBOL (variable, 0); |
| 1396 | 1396 | ||
| 1397 | valcontents = XSYMBOL (sym)->value; | 1397 | valcontents = XSYMBOL (variable)->value; |
| 1398 | if (BUFFER_LOCAL_VALUEP (valcontents) | 1398 | if (BUFFER_LOCAL_VALUEP (valcontents) |
| 1399 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) | 1399 | || SOME_BUFFER_LOCAL_VALUEP (valcontents)) |
| 1400 | { | 1400 | { |
| @@ -1402,7 +1402,7 @@ BUFFER defaults to the current buffer.") | |||
| 1402 | for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) | 1402 | for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) |
| 1403 | { | 1403 | { |
| 1404 | elt = XCONS (tail)->car; | 1404 | elt = XCONS (tail)->car; |
| 1405 | if (EQ (sym, XCONS (elt)->car)) | 1405 | if (EQ (variable, XCONS (elt)->car)) |
| 1406 | return Qt; | 1406 | return Qt; |
| 1407 | } | 1407 | } |
| 1408 | } | 1408 | } |
| @@ -1420,8 +1420,8 @@ DEFUN ("local-variable-if-set-p", Flocal_variable_if_set_p, Slocal_variable_if_s | |||
| 1420 | 1, 2, 0, | 1420 | 1, 2, 0, |
| 1421 | "Non-nil if VARIABLE will be local in buffer BUFFER if it is set there.\n\ | 1421 | "Non-nil if VARIABLE will be local in buffer BUFFER if it is set there.\n\ |
| 1422 | BUFFER defaults to the current buffer.") | 1422 | BUFFER defaults to the current buffer.") |
| 1423 | (sym, buffer) | 1423 | (variable, buffer) |
| 1424 | register Lisp_Object sym, buffer; | 1424 | register Lisp_Object variable, buffer; |
| 1425 | { | 1425 | { |
| 1426 | Lisp_Object valcontents; | 1426 | Lisp_Object valcontents; |
| 1427 | register struct buffer *buf; | 1427 | register struct buffer *buf; |
| @@ -1434,9 +1434,9 @@ BUFFER defaults to the current buffer.") | |||
| 1434 | buf = XBUFFER (buffer); | 1434 | buf = XBUFFER (buffer); |
| 1435 | } | 1435 | } |
| 1436 | 1436 | ||
| 1437 | CHECK_SYMBOL (sym, 0); | 1437 | CHECK_SYMBOL (variable, 0); |
| 1438 | 1438 | ||
| 1439 | valcontents = XSYMBOL (sym)->value; | 1439 | valcontents = XSYMBOL (variable)->value; |
| 1440 | 1440 | ||
| 1441 | /* This means that make-variable-buffer-local was done. */ | 1441 | /* This means that make-variable-buffer-local was done. */ |
| 1442 | if (BUFFER_LOCAL_VALUEP (valcontents)) | 1442 | if (BUFFER_LOCAL_VALUEP (valcontents)) |
| @@ -1450,7 +1450,7 @@ BUFFER defaults to the current buffer.") | |||
| 1450 | for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) | 1450 | for (tail = buf->local_var_alist; CONSP (tail); tail = XCONS (tail)->cdr) |
| 1451 | { | 1451 | { |
| 1452 | elt = XCONS (tail)->car; | 1452 | elt = XCONS (tail)->car; |
| 1453 | if (EQ (sym, XCONS (elt)->car)) | 1453 | if (EQ (variable, XCONS (elt)->car)) |
| 1454 | return Qt; | 1454 | return Qt; |
| 1455 | } | 1455 | } |
| 1456 | } | 1456 | } |
| @@ -1515,9 +1515,9 @@ function chain of symbols.") | |||
| 1515 | /* Extract and set vector and string elements */ | 1515 | /* Extract and set vector and string elements */ |
| 1516 | 1516 | ||
| 1517 | DEFUN ("aref", Faref, Saref, 2, 2, 0, | 1517 | DEFUN ("aref", Faref, Saref, 2, 2, 0, |
| 1518 | "Return the element of ARRAY at index INDEX.\n\ | 1518 | "Return the element of ARRAY at index IDX.\n\ |
| 1519 | ARRAY may be a vector, a string, a char-table, a bool-vector,\n\ | 1519 | ARRAY may be a vector, a string, a char-table, a bool-vector,\n\ |
| 1520 | or a byte-code object. INDEX starts at 0.") | 1520 | or a byte-code object. IDX starts at 0.") |
| 1521 | (array, idx) | 1521 | (array, idx) |
| 1522 | register Lisp_Object array; | 1522 | register Lisp_Object array; |
| 1523 | Lisp_Object idx; | 1523 | Lisp_Object idx; |
| @@ -1823,23 +1823,23 @@ DEFUN ("/=", Fneq, Sneq, 2, 2, 0, | |||
| 1823 | } | 1823 | } |
| 1824 | 1824 | ||
| 1825 | DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0, "T if NUMBER is zero.") | 1825 | DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0, "T if NUMBER is zero.") |
| 1826 | (num) | 1826 | (number) |
| 1827 | register Lisp_Object num; | 1827 | register Lisp_Object number; |
| 1828 | { | 1828 | { |
| 1829 | #ifdef LISP_FLOAT_TYPE | 1829 | #ifdef LISP_FLOAT_TYPE |
| 1830 | CHECK_NUMBER_OR_FLOAT (num, 0); | 1830 | CHECK_NUMBER_OR_FLOAT (number, 0); |
| 1831 | 1831 | ||
| 1832 | if (FLOATP (num)) | 1832 | if (FLOATP (number)) |
| 1833 | { | 1833 | { |
| 1834 | if (XFLOAT(num)->data == 0.0) | 1834 | if (XFLOAT(number)->data == 0.0) |
| 1835 | return Qt; | 1835 | return Qt; |
| 1836 | return Qnil; | 1836 | return Qnil; |
| 1837 | } | 1837 | } |
| 1838 | #else | 1838 | #else |
| 1839 | CHECK_NUMBER (num, 0); | 1839 | CHECK_NUMBER (number, 0); |
| 1840 | #endif /* LISP_FLOAT_TYPE */ | 1840 | #endif /* LISP_FLOAT_TYPE */ |
| 1841 | 1841 | ||
| 1842 | if (!XINT (num)) | 1842 | if (!XINT (number)) |
| 1843 | return Qt; | 1843 | return Qt; |
| 1844 | return Qnil; | 1844 | return Qnil; |
| 1845 | } | 1845 | } |
| @@ -1874,32 +1874,32 @@ cons_to_long (c) | |||
| 1874 | } | 1874 | } |
| 1875 | 1875 | ||
| 1876 | DEFUN ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0, | 1876 | DEFUN ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0, |
| 1877 | "Convert NUM to a string by printing it in decimal.\n\ | 1877 | "Convert NUMBER to a string by printing it in decimal.\n\ |
| 1878 | Uses a minus sign if negative.\n\ | 1878 | Uses a minus sign if negative.\n\ |
| 1879 | NUM may be an integer or a floating point number.") | 1879 | NUMBER may be an integer or a floating point number.") |
| 1880 | (num) | 1880 | (number) |
| 1881 | Lisp_Object num; | 1881 | Lisp_Object number; |
| 1882 | { | 1882 | { |
| 1883 | char buffer[VALBITS]; | 1883 | char buffer[VALBITS]; |
| 1884 | 1884 | ||
| 1885 | #ifndef LISP_FLOAT_TYPE | 1885 | #ifndef LISP_FLOAT_TYPE |
| 1886 | CHECK_NUMBER (num, 0); | 1886 | CHECK_NUMBER (number, 0); |
| 1887 | #else | 1887 | #else |
| 1888 | CHECK_NUMBER_OR_FLOAT (num, 0); | 1888 | CHECK_NUMBER_OR_FLOAT (number, 0); |
| 1889 | 1889 | ||
| 1890 | if (FLOATP (num)) | 1890 | if (FLOATP (number)) |
| 1891 | { | 1891 | { |
| 1892 | char pigbuf[350]; /* see comments in float_to_string */ | 1892 | char pigbuf[350]; /* see comments in float_to_string */ |
| 1893 | 1893 | ||
| 1894 | float_to_string (pigbuf, XFLOAT(num)->data); | 1894 | float_to_string (pigbuf, XFLOAT(number)->data); |
| 1895 | return build_string (pigbuf); | 1895 | return build_string (pigbuf); |
| 1896 | } | 1896 | } |
| 1897 | #endif /* LISP_FLOAT_TYPE */ | 1897 | #endif /* LISP_FLOAT_TYPE */ |
| 1898 | 1898 | ||
| 1899 | if (sizeof (int) == sizeof (EMACS_INT)) | 1899 | if (sizeof (int) == sizeof (EMACS_INT)) |
| 1900 | sprintf (buffer, "%d", XINT (num)); | 1900 | sprintf (buffer, "%d", XINT (number)); |
| 1901 | else if (sizeof (long) == sizeof (EMACS_INT)) | 1901 | else if (sizeof (long) == sizeof (EMACS_INT)) |
| 1902 | sprintf (buffer, "%ld", XINT (num)); | 1902 | sprintf (buffer, "%ld", XINT (number)); |
| 1903 | else | 1903 | else |
| 1904 | abort (); | 1904 | abort (); |
| 1905 | return build_string (buffer); | 1905 | return build_string (buffer); |
| @@ -1909,15 +1909,15 @@ DEFUN ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 1, 0, | |||
| 1909 | "Convert STRING to a number by parsing it as a decimal number.\n\ | 1909 | "Convert STRING to a number by parsing it as a decimal number.\n\ |
| 1910 | This parses both integers and floating point numbers.\n\ | 1910 | This parses both integers and floating point numbers.\n\ |
| 1911 | It ignores leading spaces and tabs.") | 1911 | It ignores leading spaces and tabs.") |
| 1912 | (str) | 1912 | (string) |
| 1913 | register Lisp_Object str; | 1913 | register Lisp_Object string; |
| 1914 | { | 1914 | { |
| 1915 | Lisp_Object value; | 1915 | Lisp_Object value; |
| 1916 | unsigned char *p; | 1916 | unsigned char *p; |
| 1917 | 1917 | ||
| 1918 | CHECK_STRING (str, 0); | 1918 | CHECK_STRING (string, 0); |
| 1919 | 1919 | ||
| 1920 | p = XSTRING (str)->data; | 1920 | p = XSTRING (string)->data; |
| 1921 | 1921 | ||
| 1922 | /* Skip any whitespace at the front of the number. Some versions of | 1922 | /* Skip any whitespace at the front of the number. Some versions of |
| 1923 | atoi do this anyway, so we might as well make Emacs lisp consistent. */ | 1923 | atoi do this anyway, so we might as well make Emacs lisp consistent. */ |
| @@ -2123,20 +2123,20 @@ The arguments must be numbers or markers.") | |||
| 2123 | } | 2123 | } |
| 2124 | 2124 | ||
| 2125 | DEFUN ("%", Frem, Srem, 2, 2, 0, | 2125 | DEFUN ("%", Frem, Srem, 2, 2, 0, |
| 2126 | "Returns remainder of first arg divided by second.\n\ | 2126 | "Returns remainder of X divided by Y.\n\ |
| 2127 | Both must be integers or markers.") | 2127 | Both must be integers or markers.") |
| 2128 | (num1, num2) | 2128 | (x, y) |
| 2129 | register Lisp_Object num1, num2; | 2129 | register Lisp_Object x, y; |
| 2130 | { | 2130 | { |
| 2131 | Lisp_Object val; | 2131 | Lisp_Object val; |
| 2132 | 2132 | ||
| 2133 | CHECK_NUMBER_COERCE_MARKER (num1, 0); | 2133 | CHECK_NUMBER_COERCE_MARKER (x, 0); |
| 2134 | CHECK_NUMBER_COERCE_MARKER (num2, 1); | 2134 | CHECK_NUMBER_COERCE_MARKER (y, 1); |
| 2135 | 2135 | ||
| 2136 | if (XFASTINT (num2) == 0) | 2136 | if (XFASTINT (y) == 0) |
| 2137 | Fsignal (Qarith_error, Qnil); | 2137 | Fsignal (Qarith_error, Qnil); |
| 2138 | 2138 | ||
| 2139 | XSETINT (val, XINT (num1) % XINT (num2)); | 2139 | XSETINT (val, XINT (x) % XINT (y)); |
| 2140 | return val; | 2140 | return val; |
| 2141 | } | 2141 | } |
| 2142 | 2142 | ||
| @@ -2155,22 +2155,22 @@ DEFUN ("mod", Fmod, Smod, 2, 2, 0, | |||
| 2155 | "Returns X modulo Y.\n\ | 2155 | "Returns X modulo Y.\n\ |
| 2156 | The result falls between zero (inclusive) and Y (exclusive).\n\ | 2156 | The result falls between zero (inclusive) and Y (exclusive).\n\ |
| 2157 | Both X and Y must be numbers or markers.") | 2157 | Both X and Y must be numbers or markers.") |
| 2158 | (num1, num2) | 2158 | (x, y) |
| 2159 | register Lisp_Object num1, num2; | 2159 | register Lisp_Object x, y; |
| 2160 | { | 2160 | { |
| 2161 | Lisp_Object val; | 2161 | Lisp_Object val; |
| 2162 | EMACS_INT i1, i2; | 2162 | EMACS_INT i1, i2; |
| 2163 | 2163 | ||
| 2164 | #ifdef LISP_FLOAT_TYPE | 2164 | #ifdef LISP_FLOAT_TYPE |
| 2165 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num1, 0); | 2165 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (x, 0); |
| 2166 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num2, 1); | 2166 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (y, 1); |
| 2167 | 2167 | ||
| 2168 | if (FLOATP (num1) || FLOATP (num2)) | 2168 | if (FLOATP (x) || FLOATP (y)) |
| 2169 | { | 2169 | { |
| 2170 | double f1, f2; | 2170 | double f1, f2; |
| 2171 | 2171 | ||
| 2172 | f1 = FLOATP (num1) ? XFLOAT (num1)->data : XINT (num1); | 2172 | f1 = FLOATP (x) ? XFLOAT (x)->data : XINT (x); |
| 2173 | f2 = FLOATP (num2) ? XFLOAT (num2)->data : XINT (num2); | 2173 | f2 = FLOATP (y) ? XFLOAT (y)->data : XINT (y); |
| 2174 | if (f2 == 0) | 2174 | if (f2 == 0) |
| 2175 | Fsignal (Qarith_error, Qnil); | 2175 | Fsignal (Qarith_error, Qnil); |
| 2176 | 2176 | ||
| @@ -2181,12 +2181,12 @@ Both X and Y must be numbers or markers.") | |||
| 2181 | return (make_float (f1)); | 2181 | return (make_float (f1)); |
| 2182 | } | 2182 | } |
| 2183 | #else /* not LISP_FLOAT_TYPE */ | 2183 | #else /* not LISP_FLOAT_TYPE */ |
| 2184 | CHECK_NUMBER_COERCE_MARKER (num1, 0); | 2184 | CHECK_NUMBER_COERCE_MARKER (x, 0); |
| 2185 | CHECK_NUMBER_COERCE_MARKER (num2, 1); | 2185 | CHECK_NUMBER_COERCE_MARKER (y, 1); |
| 2186 | #endif /* not LISP_FLOAT_TYPE */ | 2186 | #endif /* not LISP_FLOAT_TYPE */ |
| 2187 | 2187 | ||
| 2188 | i1 = XINT (num1); | 2188 | i1 = XINT (x); |
| 2189 | i2 = XINT (num2); | 2189 | i2 = XINT (y); |
| 2190 | 2190 | ||
| 2191 | if (i2 == 0) | 2191 | if (i2 == 0) |
| 2192 | Fsignal (Qarith_error, Qnil); | 2192 | Fsignal (Qarith_error, Qnil); |
| @@ -2292,49 +2292,49 @@ In this case, zeros are shifted in on the left.") | |||
| 2292 | DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0, | 2292 | DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0, |
| 2293 | "Return NUMBER plus one. NUMBER may be a number or a marker.\n\ | 2293 | "Return NUMBER plus one. NUMBER may be a number or a marker.\n\ |
| 2294 | Markers are converted to integers.") | 2294 | Markers are converted to integers.") |
| 2295 | (num) | 2295 | (number) |
| 2296 | register Lisp_Object num; | 2296 | register Lisp_Object number; |
| 2297 | { | 2297 | { |
| 2298 | #ifdef LISP_FLOAT_TYPE | 2298 | #ifdef LISP_FLOAT_TYPE |
| 2299 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num, 0); | 2299 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number, 0); |
| 2300 | 2300 | ||
| 2301 | if (FLOATP (num)) | 2301 | if (FLOATP (number)) |
| 2302 | return (make_float (1.0 + XFLOAT (num)->data)); | 2302 | return (make_float (1.0 + XFLOAT (number)->data)); |
| 2303 | #else | 2303 | #else |
| 2304 | CHECK_NUMBER_COERCE_MARKER (num, 0); | 2304 | CHECK_NUMBER_COERCE_MARKER (number, 0); |
| 2305 | #endif /* LISP_FLOAT_TYPE */ | 2305 | #endif /* LISP_FLOAT_TYPE */ |
| 2306 | 2306 | ||
| 2307 | XSETINT (num, XINT (num) + 1); | 2307 | XSETINT (number, XINT (number) + 1); |
| 2308 | return num; | 2308 | return number; |
| 2309 | } | 2309 | } |
| 2310 | 2310 | ||
| 2311 | DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0, | 2311 | DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0, |
| 2312 | "Return NUMBER minus one. NUMBER may be a number or a marker.\n\ | 2312 | "Return NUMBER minus one. NUMBER may be a number or a marker.\n\ |
| 2313 | Markers are converted to integers.") | 2313 | Markers are converted to integers.") |
| 2314 | (num) | 2314 | (number) |
| 2315 | register Lisp_Object num; | 2315 | register Lisp_Object number; |
| 2316 | { | 2316 | { |
| 2317 | #ifdef LISP_FLOAT_TYPE | 2317 | #ifdef LISP_FLOAT_TYPE |
| 2318 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (num, 0); | 2318 | CHECK_NUMBER_OR_FLOAT_COERCE_MARKER (number, 0); |
| 2319 | 2319 | ||
| 2320 | if (FLOATP (num)) | 2320 | if (FLOATP (number)) |
| 2321 | return (make_float (-1.0 + XFLOAT (num)->data)); | 2321 | return (make_float (-1.0 + XFLOAT (number)->data)); |
| 2322 | #else | 2322 | #else |
| 2323 | CHECK_NUMBER_COERCE_MARKER (num, 0); | 2323 | CHECK_NUMBER_COERCE_MARKER (number, 0); |
| 2324 | #endif /* LISP_FLOAT_TYPE */ | 2324 | #endif /* LISP_FLOAT_TYPE */ |
| 2325 | 2325 | ||
| 2326 | XSETINT (num, XINT (num) - 1); | 2326 | XSETINT (number, XINT (number) - 1); |
| 2327 | return num; | 2327 | return number; |
| 2328 | } | 2328 | } |
| 2329 | 2329 | ||
| 2330 | DEFUN ("lognot", Flognot, Slognot, 1, 1, 0, | 2330 | DEFUN ("lognot", Flognot, Slognot, 1, 1, 0, |
| 2331 | "Return the bitwise complement of ARG. ARG must be an integer.") | 2331 | "Return the bitwise complement of NUMBER. NUMBER must be an integer.") |
| 2332 | (num) | 2332 | (number) |
| 2333 | register Lisp_Object num; | 2333 | register Lisp_Object number; |
| 2334 | { | 2334 | { |
| 2335 | CHECK_NUMBER (num, 0); | 2335 | CHECK_NUMBER (number, 0); |
| 2336 | XSETINT (num, ~XINT (num)); | 2336 | XSETINT (num, ~XINT (number)); |
| 2337 | return num; | 2337 | return number; |
| 2338 | } | 2338 | } |
| 2339 | 2339 | ||
| 2340 | void | 2340 | void |