1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

(store_frame_param): Allow setting a frame's minibuffer

to the value that it already has.
This commit is contained in:
Karl Heuer 1996-10-02 01:03:22 +00:00
parent b77087c572
commit 7af7ef389a

View File

@ -1707,8 +1707,9 @@ store_frame_param (f, prop, val)
if (! MINI_WINDOW_P (XWINDOW (val)))
error ("Surrogate minibuffer windows must be minibuffer windows.");
if (FRAME_HAS_MINIBUF_P (f) || FRAME_MINIBUF_ONLY_P (f))
error ("can't change the surrogate minibuffer of a frame with its own minibuffer");
if (FRAME_HAS_MINIBUF_P (f) || FRAME_MINIBUF_ONLY_P (f)
&& !EQ (val, f->minibuffer_window))
error ("Can't change the surrogate minibuffer of a frame with its own minibuffer");
/* Install the chosen minibuffer window, with proper buffer. */
f->minibuffer_window = val;