diff options
| author | Karl Heuer | 1994-05-25 02:39:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-05-25 02:39:20 +0000 |
| commit | d7be42118080daa4f067ab0038b37f6938896df8 (patch) | |
| tree | 1419e0dabe89ef00ed184b3b8206b4d7e5a03896 /src | |
| parent | de65837bbeb778bea2ec11c73eaf60e566313683 (diff) | |
| download | emacs-d7be42118080daa4f067ab0038b37f6938896df8.tar.gz emacs-d7be42118080daa4f067ab0038b37f6938896df8.zip | |
(Fminibuffer_complete_word): GCPRO completion and tem.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 16c3b9eab02..04f2fd8b8c7 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1274,7 +1274,7 @@ Return nil if there is no valid completion, else t.") | |||
| 1274 | Lisp_Object completion, tem; | 1274 | Lisp_Object completion, tem; |
| 1275 | register int i; | 1275 | register int i; |
| 1276 | register unsigned char *completion_string; | 1276 | register unsigned char *completion_string; |
| 1277 | struct gcpro gcpro1; | 1277 | struct gcpro gcpro1, gcpro2; |
| 1278 | 1278 | ||
| 1279 | /* We keep calling Fbuffer_string rather than arrange for GC to | 1279 | /* We keep calling Fbuffer_string rather than arrange for GC to |
| 1280 | hold onto a pointer to one of the strings thus made. */ | 1280 | hold onto a pointer to one of the strings thus made. */ |
| @@ -1312,6 +1312,7 @@ Return nil if there is no valid completion, else t.") | |||
| 1312 | int buffer_length, completion_length; | 1312 | int buffer_length, completion_length; |
| 1313 | 1313 | ||
| 1314 | tem = Fbuffer_string (); | 1314 | tem = Fbuffer_string (); |
| 1315 | GCPRO2 (completion, tem); | ||
| 1315 | /* If reading a file name, | 1316 | /* If reading a file name, |
| 1316 | expand any $ENVVAR refs in the buffer and in TEM. */ | 1317 | expand any $ENVVAR refs in the buffer and in TEM. */ |
| 1317 | if (EQ (Vminibuffer_completion_table, Qread_file_name_internal)) | 1318 | if (EQ (Vminibuffer_completion_table, Qread_file_name_internal)) |
| @@ -1343,6 +1344,7 @@ Return nil if there is no valid completion, else t.") | |||
| 1343 | del_range (1, i + 1); | 1344 | del_range (1, i + 1); |
| 1344 | SET_PT (ZV); | 1345 | SET_PT (ZV); |
| 1345 | } | 1346 | } |
| 1347 | UNGCPRO; | ||
| 1346 | } | 1348 | } |
| 1347 | #endif /* Rewritten code */ | 1349 | #endif /* Rewritten code */ |
| 1348 | i = ZV - BEGV; | 1350 | i = ZV - BEGV; |