diff options
| author | Dave Love | 2000-02-04 17:31:33 +0000 |
|---|---|---|
| committer | Dave Love | 2000-02-04 17:31:33 +0000 |
| commit | be95a9b6662c3a3c3f148b06c76afde3c02682bc (patch) | |
| tree | 8ccca78a9235f1cd298a6e882f6969d5ba711f23 /src | |
| parent | b85e9462bf6ddf29d1889439a595ac25490f981a (diff) | |
| download | emacs-be95a9b6662c3a3c3f148b06c76afde3c02682bc.tar.gz emacs-be95a9b6662c3a3c3f148b06c76afde3c02682bc.zip | |
(read_minibuf_noninteractive): Remove undeclared gcpro1, gcpro2.
(read_minibuf): Deal with allow_props correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index a098c68d908..406c1961186 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -276,7 +276,6 @@ read_minibuf_noninteractive (map, initial, prompt, backup_n, expflag, | |||
| 276 | { | 276 | { |
| 277 | int size, len; | 277 | int size, len; |
| 278 | char *line, *s; | 278 | char *line, *s; |
| 279 | struct gcpro gcpro1, gcpro2; | ||
| 280 | Lisp_Object val; | 279 | Lisp_Object val; |
| 281 | 280 | ||
| 282 | fprintf (stdout, "%s", XSTRING (prompt)->data); | 281 | fprintf (stdout, "%s", XSTRING (prompt)->data); |
| @@ -566,7 +565,10 @@ read_minibuf (map, initial, prompt, backup_n, expflag, | |||
| 566 | 565 | ||
| 567 | /* Make minibuffer contents into a string. */ | 566 | /* Make minibuffer contents into a string. */ |
| 568 | Fset_buffer (minibuffer); | 567 | Fset_buffer (minibuffer); |
| 569 | val = Ffield_string (make_number (ZV), allow_props ? Qt : Qnil); | 568 | if (allow_props) |
| 569 | val = Ffield_string (make_number (ZV)); | ||
| 570 | else | ||
| 571 | val = Ffield_string_no_properties (make_number (ZV)); | ||
| 570 | 572 | ||
| 571 | /* VAL is the string of minibuffer text. */ | 573 | /* VAL is the string of minibuffer text. */ |
| 572 | 574 | ||