diff options
| author | Karl Heuer | 1994-10-04 16:08:54 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 16:08:54 +0000 |
| commit | 5a866662479c3c55bdd00490f3607ca614a69368 (patch) | |
| tree | 9dc332e6edaf663891c63f9655b19807bb51808c /src | |
| parent | c5802b21e410767644f21142da695a70cf76dff8 (diff) | |
| download | emacs-5a866662479c3c55bdd00490f3607ca614a69368.tar.gz emacs-5a866662479c3c55bdd00490f3607ca614a69368.zip | |
(read_minibuf, get_minibuffer, read_minibuf_unwind, Fread_from_minibuffer,
Ftry_completion, Fall_completions, Fcompleting_read, Fminibuffer_prompt_width,
syms_of_minibuf): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 10f95d6d56b..f7b3e59621f 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -220,7 +220,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos) | |||
| 220 | Vminibuf_scroll_window = selected_window; | 220 | Vminibuf_scroll_window = selected_window; |
| 221 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); | 221 | Fset_window_buffer (minibuf_window, Fcurrent_buffer ()); |
| 222 | Fselect_window (minibuf_window); | 222 | Fselect_window (minibuf_window); |
| 223 | XFASTINT (XWINDOW (minibuf_window)->hscroll) = 0; | 223 | XSETFASTINT (XWINDOW (minibuf_window)->hscroll, 0); |
| 224 | 224 | ||
| 225 | Ferase_buffer (); | 225 | Ferase_buffer (); |
| 226 | minibuf_level++; | 226 | minibuf_level++; |
| @@ -318,7 +318,7 @@ get_minibuffer (depth) | |||
| 318 | char name[24]; | 318 | char name[24]; |
| 319 | extern Lisp_Object nconc2 (); | 319 | extern Lisp_Object nconc2 (); |
| 320 | 320 | ||
| 321 | XFASTINT (num) = depth; | 321 | XSETFASTINT (num, depth); |
| 322 | tail = Fnthcdr (num, Vminibuffer_list); | 322 | tail = Fnthcdr (num, Vminibuffer_list); |
| 323 | if (NILP (tail)) | 323 | if (NILP (tail)) |
| 324 | { | 324 | { |
| @@ -381,7 +381,7 @@ read_minibuf_unwind (data) | |||
| 381 | minibuf_level--; | 381 | minibuf_level--; |
| 382 | /* Make sure minibuffer window is erased, not ignored */ | 382 | /* Make sure minibuffer window is erased, not ignored */ |
| 383 | windows_or_buffers_changed++; | 383 | windows_or_buffers_changed++; |
| 384 | XFASTINT (XWINDOW (minibuf_window)->last_modified) = 0; | 384 | XSETFASTINT (XWINDOW (minibuf_window)->last_modified, 0); |
| 385 | 385 | ||
| 386 | /* Restore prompt, etc from outer minibuffer */ | 386 | /* Restore prompt, etc from outer minibuffer */ |
| 387 | minibuf_prompt = Fcar (minibuf_save_list); | 387 | minibuf_prompt = Fcar (minibuf_save_list); |
| @@ -468,7 +468,7 @@ DEFUN ("read-from-minibuffer", Fread_from_minibuffer, Sread_from_minibuffer, 1, | |||
| 468 | if (NILP (histvar)) | 468 | if (NILP (histvar)) |
| 469 | histvar = Qminibuffer_history; | 469 | histvar = Qminibuffer_history; |
| 470 | if (NILP (histpos)) | 470 | if (NILP (histpos)) |
| 471 | XFASTINT (histpos) = 0; | 471 | XSETFASTINT (histpos, 0); |
| 472 | 472 | ||
| 473 | return read_minibuf (keymap, initial_contents, prompt, | 473 | return read_minibuf (keymap, initial_contents, prompt, |
| 474 | make_number (pos), !NILP (read), histvar, histpos); | 474 | make_number (pos), !NILP (read), histvar, histpos); |
| @@ -656,7 +656,7 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 656 | if (XSYMBOL (bucket)->next) | 656 | if (XSYMBOL (bucket)->next) |
| 657 | XSETSYMBOL (bucket, XSYMBOL (bucket)->next); | 657 | XSETSYMBOL (bucket, XSYMBOL (bucket)->next); |
| 658 | else | 658 | else |
| 659 | XFASTINT (bucket) = 0; | 659 | XSETFASTINT (bucket, 0); |
| 660 | } | 660 | } |
| 661 | else if (++index >= obsize) | 661 | else if (++index >= obsize) |
| 662 | break; | 662 | break; |
| @@ -677,7 +677,7 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 677 | /* Yes. */ | 677 | /* Yes. */ |
| 678 | Lisp_Object regexps; | 678 | Lisp_Object regexps; |
| 679 | Lisp_Object zero; | 679 | Lisp_Object zero; |
| 680 | XFASTINT (zero) = 0; | 680 | XSETFASTINT (zero, 0); |
| 681 | 681 | ||
| 682 | /* Ignore this element if it fails to match all the regexps. */ | 682 | /* Ignore this element if it fails to match all the regexps. */ |
| 683 | for (regexps = Vcompletion_regexp_list; CONSP (regexps); | 683 | for (regexps = Vcompletion_regexp_list; CONSP (regexps); |
| @@ -764,8 +764,8 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 764 | bestmatchsize)) | 764 | bestmatchsize)) |
| 765 | return Qt; | 765 | return Qt; |
| 766 | 766 | ||
| 767 | XFASTINT (zero) = 0; /* Else extract the part in which */ | 767 | XSETFASTINT (zero, 0); /* Else extract the part in which */ |
| 768 | XFASTINT (end) = bestmatchsize; /* all completions agree */ | 768 | XSETFASTINT (end, bestmatchsize); /* all completions agree */ |
| 769 | return Fsubstring (bestmatch, zero, end); | 769 | return Fsubstring (bestmatch, zero, end); |
| 770 | } | 770 | } |
| 771 | 771 | ||
| @@ -862,7 +862,7 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 862 | if (XSYMBOL (bucket)->next) | 862 | if (XSYMBOL (bucket)->next) |
| 863 | XSETSYMBOL (bucket, XSYMBOL (bucket)->next); | 863 | XSETSYMBOL (bucket, XSYMBOL (bucket)->next); |
| 864 | else | 864 | else |
| 865 | XFASTINT (bucket) = 0; | 865 | XSETFASTINT (bucket, 0); |
| 866 | } | 866 | } |
| 867 | else if (++index >= obsize) | 867 | else if (++index >= obsize) |
| 868 | break; | 868 | break; |
| @@ -887,7 +887,7 @@ The argument given to PREDICATE is the alist element or the symbol from the obar | |||
| 887 | /* Yes. */ | 887 | /* Yes. */ |
| 888 | Lisp_Object regexps; | 888 | Lisp_Object regexps; |
| 889 | Lisp_Object zero; | 889 | Lisp_Object zero; |
| 890 | XFASTINT (zero) = 0; | 890 | XSETFASTINT (zero, 0); |
| 891 | 891 | ||
| 892 | /* Ignore this element if it fails to match all the regexps. */ | 892 | /* Ignore this element if it fails to match all the regexps. */ |
| 893 | for (regexps = Vcompletion_regexp_list; CONSP (regexps); | 893 | for (regexps = Vcompletion_regexp_list; CONSP (regexps); |
| @@ -1004,7 +1004,7 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 6, 0, | |||
| 1004 | if (NILP (histvar)) | 1004 | if (NILP (histvar)) |
| 1005 | histvar = Qminibuffer_history; | 1005 | histvar = Qminibuffer_history; |
| 1006 | if (NILP (histpos)) | 1006 | if (NILP (histpos)) |
| 1007 | XFASTINT (histpos) = 0; | 1007 | XSETFASTINT (histpos, 0); |
| 1008 | 1008 | ||
| 1009 | val = read_minibuf (NILP (require_match) | 1009 | val = read_minibuf (NILP (require_match) |
| 1010 | ? Vminibuffer_local_completion_map | 1010 | ? Vminibuffer_local_completion_map |
| @@ -1568,7 +1568,7 @@ DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width, | |||
| 1568 | () | 1568 | () |
| 1569 | { | 1569 | { |
| 1570 | Lisp_Object width; | 1570 | Lisp_Object width; |
| 1571 | XFASTINT (width) = minibuf_prompt_width; | 1571 | XSETFASTINT (width, minibuf_prompt_width); |
| 1572 | return width; | 1572 | return width; |
| 1573 | } | 1573 | } |
| 1574 | 1574 | ||
| @@ -1671,7 +1671,7 @@ t means to return a list of all possible completions of STRING.\n\ | |||
| 1671 | Each minibuffer output is added with\n\ | 1671 | Each minibuffer output is added with\n\ |
| 1672 | (set minibuffer-history-variable\n\ | 1672 | (set minibuffer-history-variable\n\ |
| 1673 | (cons STRING (symbol-value minibuffer-history-variable)))"); | 1673 | (cons STRING (symbol-value minibuffer-history-variable)))"); |
| 1674 | XFASTINT (Vminibuffer_history_variable) = 0; | 1674 | XSETFASTINT (Vminibuffer_history_variable, 0); |
| 1675 | 1675 | ||
| 1676 | DEFVAR_LISP ("minibuffer-history-position", &Vminibuffer_history_position, | 1676 | DEFVAR_LISP ("minibuffer-history-position", &Vminibuffer_history_position, |
| 1677 | "Current position of redoing in the history list."); | 1677 | "Current position of redoing in the history list."); |