# HG changeset patch # User Richard M. Stallman # Date 780219695 0 # Node ID 69f0ae06bcdf38598b8d03f108d9868a3f07beee # Parent 49f21ecbda4181b37051e19033a635c3a60a89b1 (Fcompleting_read): Doc fix. (get_minibuffer): Make BUF current to kill its local vars. diff -r 49f21ecbda41 -r 69f0ae06bcdf src/minibuf.c --- a/src/minibuf.c Thu Sep 22 07:29:02 1994 +0000 +++ b/src/minibuf.c Thu Sep 22 07:41:35 1994 +0000 @@ -339,8 +339,13 @@ } else { + int count = specpdl_ptr - specpdl; + reset_buffer (XBUFFER (buf)); - Fkill_all_local_variables (buf); + record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); + Fset_buffer (buf); + Fkill_all_local_variables (); + unbind_to (count, Qnil); } return buf; @@ -925,7 +930,8 @@ PROMPT is a string to prompt with; normally it ends in a colon and a space.\n\ TABLE is an alist whose elements' cars are strings, or an obarray.\n\ PREDICATE limits completion to a subset of TABLE.\n\ -See `try-completion' for more details on completion, TABLE, and PREDICATE.\n\ +See `try-completion' and `all-completions' for more details + on completion, TABLE, and PREDICATE.\n\ \n\ If REQUIRE-MATCH is non-nil, the user is not allowed to exit unless\n\ the input is (or completes to) an element of TABLE or is null.\n\