aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2003-07-06 23:26:09 +0000
committerStefan Monnier2003-07-06 23:26:09 +0000
commitf9b9ccef8e30c20c68b185db50bafaf823552f9c (patch)
treeb34ecea2f4ea30f42133ed7cd7398b85dbecd2ab /src
parentbfe1a3f79b809357d4f6babe97a5343523860274 (diff)
downloademacs-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.c10
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
1126DEFUN ("try-completion", Ftry_completion, Stry_completion, 2, 3, 0, 1128DEFUN ("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.
1128Each car of each element of ALIST is tested to see if it begins with STRING. 1130Each car of each element of ALIST (or each element if it is not a cons cell)
1131is tested to see if it begins with STRING.
1129All that match are compared together; the longest initial sequence 1132All that match are compared together; the longest initial sequence
1130common to all matches is returned as a string. 1133common to all matches is returned as a string.
1131If there is no match at all, nil is returned. 1134If there is no match at all, nil is returned.
@@ -1367,7 +1370,8 @@ is used to further constrain the set of candidates. */)
1367 1370
1368DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 4, 0, 1371DEFUN ("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.
1370Each car of each element of ALIST is tested to see if it begins with STRING. 1373Each car of each element of ALIST (or each element if it is not a cons cell)
1374is tested to see if it begins with STRING.
1371The value is a list of all the strings from ALIST that match. 1375The value is a list of all the strings from ALIST that match.
1372 1376
1373If ALIST is a hash-table, all the string keys are the possible matches. 1377If ALIST is a hash-table, all the string keys are the possible matches.