diff options
| author | Stefan Monnier | 2003-07-06 23:26:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-07-06 23:26:09 +0000 |
| commit | f9b9ccef8e30c20c68b185db50bafaf823552f9c (patch) | |
| tree | b34ecea2f4ea30f42133ed7cd7398b85dbecd2ab /src | |
| parent | bfe1a3f79b809357d4f6babe97a5343523860274 (diff) | |
| download | emacs-f9b9ccef8e30c20c68b185db50bafaf823552f9c.tar.gz emacs-f9b9ccef8e30c20c68b185db50bafaf823552f9c.zip | |
(read_minibuf): UNGCPRO before returning.
(Ftry_completion, Fall_completions): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index b0b3cdaa487..d2331ba5d4e 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -485,6 +485,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag, | |||
| 485 | val = read_minibuf_noninteractive (map, initial, prompt, backup_n, | 485 | val = read_minibuf_noninteractive (map, initial, prompt, backup_n, |
| 486 | expflag, histvar, histpos, defalt, | 486 | expflag, histvar, histpos, defalt, |
| 487 | allow_props, inherit_input_method); | 487 | allow_props, inherit_input_method); |
| 488 | UNGCPRO; | ||
| 488 | return unbind_to (count, val); | 489 | return unbind_to (count, val); |
| 489 | } | 490 | } |
| 490 | 491 | ||
| @@ -738,7 +739,8 @@ read_minibuf (map, initial, prompt, backup_n, expflag, | |||
| 738 | 739 | ||
| 739 | /* The appropriate frame will get selected | 740 | /* The appropriate frame will get selected |
| 740 | in set-window-configuration. */ | 741 | in set-window-configuration. */ |
| 741 | RETURN_UNGCPRO (unbind_to (count, val)); | 742 | UNGCPRO; |
| 743 | return unbind_to (count, val); | ||
| 742 | } | 744 | } |
| 743 | 745 | ||
| 744 | /* Return a buffer to be used as the minibuffer at depth `depth'. | 746 | /* Return a buffer to be used as the minibuffer at depth `depth'. |
| @@ -1125,7 +1127,8 @@ minibuf_conform_representation (string, basis) | |||
| 1125 | 1127 | ||
| 1126 | DEFUN ("try-completion", Ftry_completion, Stry_completion, 2, 3, 0, | 1128 | DEFUN ("try-completion", Ftry_completion, Stry_completion, 2, 3, 0, |
| 1127 | doc: /* Return common substring of all completions of STRING in ALIST. | 1129 | doc: /* Return common substring of all completions of STRING in ALIST. |
| 1128 | Each car of each element of ALIST is tested to see if it begins with STRING. | 1130 | Each car of each element of ALIST (or each element if it is not a cons cell) |
| 1131 | is tested to see if it begins with STRING. | ||
| 1129 | All that match are compared together; the longest initial sequence | 1132 | All that match are compared together; the longest initial sequence |
| 1130 | common to all matches is returned as a string. | 1133 | common to all matches is returned as a string. |
| 1131 | If there is no match at all, nil is returned. | 1134 | If there is no match at all, nil is returned. |
| @@ -1367,7 +1370,8 @@ is used to further constrain the set of candidates. */) | |||
| 1367 | 1370 | ||
| 1368 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 4, 0, | 1371 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 4, 0, |
| 1369 | doc: /* Search for partial matches to STRING in ALIST. | 1372 | doc: /* Search for partial matches to STRING in ALIST. |
| 1370 | Each car of each element of ALIST is tested to see if it begins with STRING. | 1373 | Each car of each element of ALIST (or each element if it is not a cons cell) |
| 1374 | is tested to see if it begins with STRING. | ||
| 1371 | The value is a list of all the strings from ALIST that match. | 1375 | The value is a list of all the strings from ALIST that match. |
| 1372 | 1376 | ||
| 1373 | If ALIST is a hash-table, all the string keys are the possible matches. | 1377 | If ALIST is a hash-table, all the string keys are the possible matches. |