aboutsummaryrefslogtreecommitdiffstats
path: root/src/callint.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-21 12:42:16 -0400
committerStefan Monnier2011-03-21 12:42:16 -0400
commitcafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch)
tree7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /src/callint.c
parenta08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff)
parent4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff)
downloademacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz
emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip
Merge from trunk
Diffstat (limited to 'src/callint.c')
-rw-r--r--src/callint.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/callint.c b/src/callint.c
index a0efc4bbfe4..3c520742e27 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -118,7 +118,7 @@ usage: (interactive &optional ARGS) */)
118 118
119/* Quotify EXP: if EXP is constant, return it. 119/* Quotify EXP: if EXP is constant, return it.
120 If EXP is not constant, return (quote EXP). */ 120 If EXP is not constant, return (quote EXP). */
121Lisp_Object 121static Lisp_Object
122quotify_arg (register Lisp_Object exp) 122quotify_arg (register Lisp_Object exp)
123{ 123{
124 if (CONSP (exp) 124 if (CONSP (exp)
@@ -130,7 +130,7 @@ quotify_arg (register Lisp_Object exp)
130} 130}
131 131
132/* Modify EXP by quotifying each element (except the first). */ 132/* Modify EXP by quotifying each element (except the first). */
133Lisp_Object 133static Lisp_Object
134quotify_args (Lisp_Object exp) 134quotify_args (Lisp_Object exp)
135{ 135{
136 register Lisp_Object tail; 136 register Lisp_Object tail;
@@ -262,7 +262,7 @@ invoke it. If KEYS is omitted or nil, the return value of
262 262
263 Lisp_Object prefix_arg; 263 Lisp_Object prefix_arg;
264 char *string; 264 char *string;
265 char *tem; 265 const char *tem;
266 266
267 /* If varies[i] > 0, the i'th argument shouldn't just have its value 267 /* If varies[i] > 0, the i'th argument shouldn't just have its value
268 in this call quoted in the command history. It should be 268 in this call quoted in the command history. It should be
@@ -415,25 +415,25 @@ invoke it. If KEYS is omitted or nil, the return value of
415 string++; 415 string++;
416 else if (*string == '@') 416 else if (*string == '@')
417 { 417 {
418 Lisp_Object event, tem; 418 Lisp_Object event, w;
419 419
420 event = (next_event < key_count 420 event = (next_event < key_count
421 ? AREF (keys, next_event) 421 ? AREF (keys, next_event)
422 : Qnil); 422 : Qnil);
423 if (EVENT_HAS_PARAMETERS (event) 423 if (EVENT_HAS_PARAMETERS (event)
424 && (tem = XCDR (event), CONSP (tem)) 424 && (w = XCDR (event), CONSP (w))
425 && (tem = XCAR (tem), CONSP (tem)) 425 && (w = XCAR (w), CONSP (w))
426 && (tem = XCAR (tem), WINDOWP (tem))) 426 && (w = XCAR (w), WINDOWP (w)))
427 { 427 {
428 if (MINI_WINDOW_P (XWINDOW (tem)) 428 if (MINI_WINDOW_P (XWINDOW (w))
429 && ! (minibuf_level > 0 && EQ (tem, minibuf_window))) 429 && ! (minibuf_level > 0 && EQ (w, minibuf_window)))
430 error ("Attempt to select inactive minibuffer window"); 430 error ("Attempt to select inactive minibuffer window");
431 431
432 /* If the current buffer wants to clean up, let it. */ 432 /* If the current buffer wants to clean up, let it. */
433 if (!NILP (Vmouse_leave_buffer_hook)) 433 if (!NILP (Vmouse_leave_buffer_hook))
434 call1 (Vrun_hooks, Qmouse_leave_buffer_hook); 434 call1 (Vrun_hooks, Qmouse_leave_buffer_hook);
435 435
436 Fselect_window (tem, Qnil); 436 Fselect_window (w, Qnil);
437 } 437 }
438 string++; 438 string++;
439 } 439 }
@@ -686,7 +686,7 @@ invoke it. If KEYS is omitted or nil, the return value of
686 int first = 1; 686 int first = 1;
687 do 687 do
688 { 688 {
689 Lisp_Object tem; 689 Lisp_Object str;
690 if (! first) 690 if (! first)
691 { 691 {
692 message ("Please enter a number."); 692 message ("Please enter a number.");
@@ -694,13 +694,13 @@ invoke it. If KEYS is omitted or nil, the return value of
694 } 694 }
695 first = 0; 695 first = 0;
696 696
697 tem = Fread_from_minibuffer (callint_message, 697 str = Fread_from_minibuffer (callint_message,
698 Qnil, Qnil, Qnil, Qnil, Qnil, 698 Qnil, Qnil, Qnil, Qnil, Qnil,
699 Qnil); 699 Qnil);
700 if (! STRINGP (tem) || SCHARS (tem) == 0) 700 if (! STRINGP (str) || SCHARS (str) == 0)
701 args[i] = Qnil; 701 args[i] = Qnil;
702 else 702 else
703 args[i] = Fread (tem); 703 args[i] = Fread (str);
704 } 704 }
705 while (! NUMBERP (args[i])); 705 while (! NUMBERP (args[i]));
706 } 706 }