aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-03-15 01:49:46 +0000
committerKarl Heuer1995-03-15 01:49:46 +0000
commitcd8b5aa3480af3a66537205762bf0331b2e15615 (patch)
tree69cec2aa35ca36a9d0d163f2c47ea98e1d22ae92 /src
parent92b618385eed766d68beb2a6cf579a9977a02b73 (diff)
downloademacs-cd8b5aa3480af3a66537205762bf0331b2e15615.tar.gz
emacs-cd8b5aa3480af3a66537205762bf0331b2e15615.zip
Rename perdisplay to kboard.
Diffstat (limited to 'src')
-rw-r--r--src/callint.c70
-rw-r--r--src/macros.c76
2 files changed, 73 insertions, 73 deletions
diff --git a/src/callint.c b/src/callint.c
index 84270ff0c29..c0787ce2913 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -55,25 +55,25 @@ clear_prefix_arg ()
55 Vprefix_arg = Qnil; 55 Vprefix_arg = Qnil;
56 if (!current_prefix_partial) 56 if (!current_prefix_partial)
57 { 57 {
58 current_perdisplay->prefix_factor = Qnil; 58 current_kboard->prefix_factor = Qnil;
59 current_perdisplay->prefix_value = Qnil; 59 current_kboard->prefix_value = Qnil;
60 current_perdisplay->prefix_sign = 1; 60 current_kboard->prefix_sign = 1;
61 current_perdisplay->prefix_partial = 0; 61 current_kboard->prefix_partial = 0;
62 } 62 }
63} 63}
64 64
65void 65void
66finalize_prefix_arg () 66finalize_prefix_arg ()
67{ 67{
68 if (!NILP (current_perdisplay->prefix_factor)) 68 if (!NILP (current_kboard->prefix_factor))
69 Vprefix_arg = Fcons (current_perdisplay->prefix_factor, Qnil); 69 Vprefix_arg = Fcons (current_kboard->prefix_factor, Qnil);
70 else if (NILP (current_perdisplay->prefix_value)) 70 else if (NILP (current_kboard->prefix_value))
71 Vprefix_arg = (current_perdisplay->prefix_sign > 0 ? Qnil : Qminus); 71 Vprefix_arg = (current_kboard->prefix_sign > 0 ? Qnil : Qminus);
72 else if (current_perdisplay->prefix_sign > 0) 72 else if (current_kboard->prefix_sign > 0)
73 Vprefix_arg = current_perdisplay->prefix_value; 73 Vprefix_arg = current_kboard->prefix_value;
74 else 74 else
75 XSETINT (Vprefix_arg, -XINT (current_perdisplay->prefix_value)); 75 XSETINT (Vprefix_arg, -XINT (current_kboard->prefix_value));
76 current_perdisplay->prefix_partial = 0; 76 current_kboard->prefix_partial = 0;
77} 77}
78 78
79static void 79static void
@@ -296,8 +296,8 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
296 } 296 }
297 else if (EQ (funcar, Qmocklisp)) 297 else if (EQ (funcar, Qmocklisp))
298 { 298 {
299#ifdef MULTI_PERDISPLAY 299#ifdef MULTI_KBOARD
300 display_locked = 1; 300 kboard_locked = 1;
301#endif 301#endif
302 return ml_apply (fun, Qinteractive); 302 return ml_apply (fun, Qinteractive);
303 } 303 }
@@ -352,8 +352,8 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
352 Vcommand_history 352 Vcommand_history
353 = Fcons (Fcons (function, values), Vcommand_history); 353 = Fcons (Fcons (function, values), Vcommand_history);
354 } 354 }
355#ifdef MULTI_PERDISPLAY 355#ifdef MULTI_KBOARD
356 display_locked = 1; 356 kboard_locked = 1;
357#endif 357#endif
358 return apply1 (function, specs); 358 return apply1 (function, specs);
359 } 359 }
@@ -655,8 +655,8 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
655 if (varies[i] >= 1 && varies[i] <= 4) 655 if (varies[i] >= 1 && varies[i] <= 4)
656 XSETINT (args[i], marker_position (args[i])); 656 XSETINT (args[i], marker_position (args[i]));
657 657
658#ifdef MULTI_PERDISPLAY 658#ifdef MULTI_KBOARD
659 display_locked = 1; 659 kboard_locked = 1;
660#endif 660#endif
661 661
662 { 662 {
@@ -705,17 +705,17 @@ Repeating \\[universal-argument] without digits or minus sign\n\
705 if (!current_prefix_partial) 705 if (!current_prefix_partial)
706 { 706 {
707 /* First C-u */ 707 /* First C-u */
708 XSETFASTINT (current_perdisplay->prefix_factor, 4); 708 XSETFASTINT (current_kboard->prefix_factor, 4);
709 current_perdisplay->prefix_value = Qnil; 709 current_kboard->prefix_value = Qnil;
710 current_perdisplay->prefix_sign = 1; 710 current_kboard->prefix_sign = 1;
711 current_perdisplay->prefix_partial = 1; 711 current_kboard->prefix_partial = 1;
712 } 712 }
713 else if (!NILP (current_perdisplay->prefix_factor)) 713 else if (!NILP (current_kboard->prefix_factor))
714 { 714 {
715 /* Subsequent C-u */ 715 /* Subsequent C-u */
716 XSETINT (current_perdisplay->prefix_factor, 716 XSETINT (current_kboard->prefix_factor,
717 XINT (current_perdisplay->prefix_factor) * 4); 717 XINT (current_kboard->prefix_factor) * 4);
718 current_perdisplay->prefix_partial = 1; 718 current_kboard->prefix_partial = 1;
719 } 719 }
720 else 720 else
721 { 721 {
@@ -730,9 +730,9 @@ DEFUN ("negative-argument", Fnegative_argument, Snegative_argument, 0, 0, "",
730\\[universal-argument] following digits or minus sign ends the argument.") 730\\[universal-argument] following digits or minus sign ends the argument.")
731 () 731 ()
732{ 732{
733 current_perdisplay->prefix_factor = Qnil; 733 current_kboard->prefix_factor = Qnil;
734 current_perdisplay->prefix_sign *= -1; 734 current_kboard->prefix_sign *= -1;
735 current_perdisplay->prefix_partial = 1; 735 current_kboard->prefix_partial = 1;
736} 736}
737 737
738DEFUN ("digit-argument", Fdigit_argument, Sdigit_argument, 0, 0, "", 738DEFUN ("digit-argument", Fdigit_argument, Sdigit_argument, 0, 0, "",
@@ -744,12 +744,12 @@ DEFUN ("digit-argument", Fdigit_argument, Sdigit_argument, 0, 0, "",
744 if (!(INTEGERP (last_command_char) 744 if (!(INTEGERP (last_command_char)
745 && (c = (XINT (last_command_char) & 0177)) >= '0' && c <= '9')) 745 && (c = (XINT (last_command_char) & 0177)) >= '0' && c <= '9'))
746 error("digit-argument must be bound to a digit key"); 746 error("digit-argument must be bound to a digit key");
747 current_perdisplay->prefix_factor = Qnil; 747 current_kboard->prefix_factor = Qnil;
748 if (NILP (current_perdisplay->prefix_value)) 748 if (NILP (current_kboard->prefix_value))
749 XSETFASTINT (current_perdisplay->prefix_value, 0); 749 XSETFASTINT (current_kboard->prefix_value, 0);
750 XSETINT (current_perdisplay->prefix_value, 750 XSETINT (current_kboard->prefix_value,
751 XINT (current_perdisplay->prefix_value) * 10 + (c - '0')); 751 XINT (current_kboard->prefix_value) * 10 + (c - '0'));
752 current_perdisplay->prefix_partial = 1; 752 current_kboard->prefix_partial = 1;
753} 753}
754 754
755syms_of_callint () 755syms_of_callint ()
diff --git a/src/macros.c b/src/macros.c
index 898bdbc79f8..b03d2dfa18d 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -42,30 +42,30 @@ Non-nil arg (prefix arg) means append to last macro defined;\n\
42 (append) 42 (append)
43 Lisp_Object append; 43 Lisp_Object append;
44{ 44{
45 if (!NILP (current_perdisplay->defining_kbd_macro)) 45 if (!NILP (current_kboard->defining_kbd_macro))
46 error ("Already defining kbd macro"); 46 error ("Already defining kbd macro");
47 47
48 if (!current_perdisplay->kbd_macro_buffer) 48 if (!current_kboard->kbd_macro_buffer)
49 { 49 {
50 current_perdisplay->kbd_macro_bufsize = 30; 50 current_kboard->kbd_macro_bufsize = 30;
51 current_perdisplay->kbd_macro_buffer 51 current_kboard->kbd_macro_buffer
52 = (Lisp_Object *)malloc (30 * sizeof (Lisp_Object)); 52 = (Lisp_Object *)malloc (30 * sizeof (Lisp_Object));
53 } 53 }
54 update_mode_lines++; 54 update_mode_lines++;
55 if (NILP (append)) 55 if (NILP (append))
56 { 56 {
57 current_perdisplay->kbd_macro_ptr = current_perdisplay->kbd_macro_buffer; 57 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer;
58 current_perdisplay->kbd_macro_end = current_perdisplay->kbd_macro_buffer; 58 current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer;
59 message("Defining kbd macro..."); 59 message("Defining kbd macro...");
60 } 60 }
61 else 61 else
62 { 62 {
63 message("Appending to kbd macro..."); 63 message("Appending to kbd macro...");
64 current_perdisplay->kbd_macro_ptr = current_perdisplay->kbd_macro_end; 64 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end;
65 Fexecute_kbd_macro (current_perdisplay->Vlast_kbd_macro, 65 Fexecute_kbd_macro (current_kboard->Vlast_kbd_macro,
66 make_number (1)); 66 make_number (1));
67 } 67 }
68 current_perdisplay->defining_kbd_macro = Qt; 68 current_kboard->defining_kbd_macro = Qt;
69 69
70 return Qnil; 70 return Qnil;
71} 71}
@@ -83,32 +83,32 @@ An argument of zero means repeat until error.")
83 (arg) 83 (arg)
84 Lisp_Object arg; 84 Lisp_Object arg;
85{ 85{
86 if (NILP (current_perdisplay->defining_kbd_macro)) 86 if (NILP (current_kboard->defining_kbd_macro))
87 error ("Not defining kbd macro."); 87 error ("Not defining kbd macro.");
88 88
89 if (NILP (arg)) 89 if (NILP (arg))
90 XSETFASTINT (arg, 1); 90 XSETFASTINT (arg, 1);
91 else 91 else
92 CHECK_NUMBER (arg, 0); 92 CHECK_NUMBER (arg, 0);
93 93
94 if (!NILP (current_perdisplay->defining_kbd_macro)) 94 if (!NILP (current_kboard->defining_kbd_macro))
95 { 95 {
96 current_perdisplay->defining_kbd_macro = Qnil; 96 current_kboard->defining_kbd_macro = Qnil;
97 update_mode_lines++; 97 update_mode_lines++;
98 current_perdisplay->Vlast_kbd_macro 98 current_kboard->Vlast_kbd_macro
99 = make_event_array ((current_perdisplay->kbd_macro_end 99 = make_event_array ((current_kboard->kbd_macro_end
100 - current_perdisplay->kbd_macro_buffer), 100 - current_kboard->kbd_macro_buffer),
101 current_perdisplay->kbd_macro_buffer); 101 current_kboard->kbd_macro_buffer);
102 message("Keyboard macro defined"); 102 message("Keyboard macro defined");
103 } 103 }
104 104
105 if (XFASTINT (arg) == 0) 105 if (XFASTINT (arg) == 0)
106 Fexecute_kbd_macro (current_perdisplay->Vlast_kbd_macro, arg); 106 Fexecute_kbd_macro (current_kboard->Vlast_kbd_macro, arg);
107 else 107 else
108 { 108 {
109 XSETINT (arg, XINT (arg)-1); 109 XSETINT (arg, XINT (arg)-1);
110 if (XINT (arg) > 0) 110 if (XINT (arg) > 0)
111 Fexecute_kbd_macro (current_perdisplay->Vlast_kbd_macro, arg); 111 Fexecute_kbd_macro (current_kboard->Vlast_kbd_macro, arg);
112 } 112 }
113 return Qnil; 113 return Qnil;
114} 114}
@@ -118,24 +118,24 @@ An argument of zero means repeat until error.")
118store_kbd_macro_char (c) 118store_kbd_macro_char (c)
119 Lisp_Object c; 119 Lisp_Object c;
120{ 120{
121 if (!NILP (current_perdisplay->defining_kbd_macro)) 121 if (!NILP (current_kboard->defining_kbd_macro))
122 { 122 {
123 if ((current_perdisplay->kbd_macro_ptr 123 if ((current_kboard->kbd_macro_ptr
124 - current_perdisplay->kbd_macro_buffer) 124 - current_kboard->kbd_macro_buffer)
125 == current_perdisplay->kbd_macro_bufsize) 125 == current_kboard->kbd_macro_bufsize)
126 { 126 {
127 register Lisp_Object *new; 127 register Lisp_Object *new;
128 current_perdisplay->kbd_macro_bufsize *= 2; 128 current_kboard->kbd_macro_bufsize *= 2;
129 new = (Lisp_Object *)xrealloc (current_perdisplay->kbd_macro_buffer, 129 new = (Lisp_Object *)xrealloc (current_kboard->kbd_macro_buffer,
130 (current_perdisplay->kbd_macro_bufsize 130 (current_kboard->kbd_macro_bufsize
131 * sizeof (Lisp_Object))); 131 * sizeof (Lisp_Object)));
132 current_perdisplay->kbd_macro_ptr 132 current_kboard->kbd_macro_ptr
133 += new - current_perdisplay->kbd_macro_buffer; 133 += new - current_kboard->kbd_macro_buffer;
134 current_perdisplay->kbd_macro_end 134 current_kboard->kbd_macro_end
135 += new - current_perdisplay->kbd_macro_buffer; 135 += new - current_kboard->kbd_macro_buffer;
136 current_perdisplay->kbd_macro_buffer = new; 136 current_kboard->kbd_macro_buffer = new;
137 } 137 }
138 *current_perdisplay->kbd_macro_ptr++ = c; 138 *current_kboard->kbd_macro_ptr++ = c;
139 } 139 }
140} 140}
141 141
@@ -144,7 +144,7 @@ store_kbd_macro_char (c)
144 144
145finalize_kbd_macro_chars () 145finalize_kbd_macro_chars ()
146{ 146{
147 current_perdisplay->kbd_macro_end = current_perdisplay->kbd_macro_ptr; 147 current_kboard->kbd_macro_end = current_kboard->kbd_macro_ptr;
148} 148}
149 149
150DEFUN ("call-last-kbd-macro", Fcall_last_kbd_macro, Scall_last_kbd_macro, 150DEFUN ("call-last-kbd-macro", Fcall_last_kbd_macro, Scall_last_kbd_macro,
@@ -158,12 +158,12 @@ defining others, use \\[name-last-kbd-macro].")
158 (prefix) 158 (prefix)
159 Lisp_Object prefix; 159 Lisp_Object prefix;
160{ 160{
161 if (! NILP (current_perdisplay->defining_kbd_macro)) 161 if (! NILP (current_kboard->defining_kbd_macro))
162 error ("Can't execute anonymous macro while defining one"); 162 error ("Can't execute anonymous macro while defining one");
163 else if (NILP (current_perdisplay->Vlast_kbd_macro)) 163 else if (NILP (current_kboard->Vlast_kbd_macro))
164 error ("No kbd macro has been defined"); 164 error ("No kbd macro has been defined");
165 else 165 else
166 Fexecute_kbd_macro (current_perdisplay->Vlast_kbd_macro, prefix); 166 Fexecute_kbd_macro (current_kboard->Vlast_kbd_macro, prefix);
167 return Qnil; 167 return Qnil;
168} 168}
169 169
@@ -238,7 +238,7 @@ syms_of_macros ()
238 defsubr (&Scall_last_kbd_macro); 238 defsubr (&Scall_last_kbd_macro);
239 defsubr (&Sexecute_kbd_macro); 239 defsubr (&Sexecute_kbd_macro);
240 240
241 DEFVAR_DISPLAY ("defining-kbd-macro", defining_kbd_macro, 241 DEFVAR_KBOARD ("defining-kbd-macro", defining_kbd_macro,
242 "Non-nil while a keyboard macro is being defined. Don't set this!"); 242 "Non-nil while a keyboard macro is being defined. Don't set this!");
243 243
244 DEFVAR_LISP ("executing-macro", &Vexecuting_macro, 244 DEFVAR_LISP ("executing-macro", &Vexecuting_macro,
@@ -247,7 +247,7 @@ syms_of_macros ()
247 DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro, 247 DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro,
248 "Currently executing keyboard macro (string or vector); nil if none executing."); 248 "Currently executing keyboard macro (string or vector); nil if none executing.");
249 249
250 DEFVAR_DISPLAY ("last-kbd-macro", Vlast_kbd_macro, 250 DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro,
251 "Last kbd macro defined, as a string or vector; nil if none defined."); 251 "Last kbd macro defined, as a string or vector; nil if none defined.");
252} 252}
253 253