diff options
| author | Richard M. Stallman | 1997-07-19 03:26:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-19 03:26:48 +0000 |
| commit | 0c8ee1a2e6cd4bfec2854cd1c2aeebe2a710a2eb (patch) | |
| tree | fbf9f2f13a75c4b3c92503866cf6a0ccdb3a9f24 /src/minibuf.c | |
| parent | a8c828be8cc3e8b4e0e9cf3c98d3a0d1c43e8eaa (diff) | |
| download | emacs-0c8ee1a2e6cd4bfec2854cd1c2aeebe2a710a2eb.tar.gz emacs-0c8ee1a2e6cd4bfec2854cd1c2aeebe2a710a2eb.zip | |
(Fcompleting_read): gcpro def.
Diffstat (limited to 'src/minibuf.c')
| -rw-r--r-- | src/minibuf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 31efe44c3a5..e7888c0d7b8 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1157,6 +1157,10 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 7, 0, | |||
| 1157 | Lisp_Object val, histvar, histpos, position; | 1157 | Lisp_Object val, histvar, histpos, position; |
| 1158 | int pos = 0; | 1158 | int pos = 0; |
| 1159 | int count = specpdl_ptr - specpdl; | 1159 | int count = specpdl_ptr - specpdl; |
| 1160 | struct gcpro gcpro1; | ||
| 1161 | |||
| 1162 | GCPRO1 (def); | ||
| 1163 | |||
| 1160 | specbind (Qminibuffer_completion_table, table); | 1164 | specbind (Qminibuffer_completion_table, table); |
| 1161 | specbind (Qminibuffer_completion_predicate, predicate); | 1165 | specbind (Qminibuffer_completion_predicate, predicate); |
| 1162 | specbind (Qminibuffer_completion_confirm, | 1166 | specbind (Qminibuffer_completion_confirm, |
| @@ -1202,7 +1206,7 @@ DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 7, 0, | |||
| 1202 | histvar, histpos, def, 0); | 1206 | histvar, histpos, def, 0); |
| 1203 | if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (def)) | 1207 | if (STRINGP (val) && XSTRING (val)->size == 0 && ! NILP (def)) |
| 1204 | val = def; | 1208 | val = def; |
| 1205 | return unbind_to (count, val); | 1209 | RETURN_UNGCPRO (unbind_to (count, val)); |
| 1206 | } | 1210 | } |
| 1207 | 1211 | ||
| 1208 | Lisp_Object Fminibuffer_completion_help (); | 1212 | Lisp_Object Fminibuffer_completion_help (); |