Commit be15a518 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(read_minibuf): If not in minibuffer window,

cancel the active minibuffer.
parent adabc3a9
......@@ -191,9 +191,15 @@ read_minibuf (map, initial, prompt, backup_n, expflag, histvar, histpos)
prompt = build_string ("");
if (!enable_recursive_minibuffers
&& minibuf_level > 0
&& (EQ (selected_window, minibuf_window)))
&& minibuf_level > 0)
if (EQ (selected_window, minibuf_window))
error ("Command attempted to use minibuffer while in minibuffer");
/* If we're in another window, cancel the minibuffer that's active. */
Fthrow (Qexit,
build_string ("Command attempted to use minibuffer while in minibuffer"));
/* Choose the minibuffer window and frame, and take action on them. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment