changeset 16371:906cef1d36bd

(store_frame_param): Allow setting a frame's minibuffer to the value that it already has.
author Karl Heuer <kwzh@gnu.org>
date Wed, 02 Oct 1996 01:03:22 +0000
parents d45a787999ef
children e311d5372d8c
files src/frame.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Tue Oct 01 22:49:15 1996 +0000
+++ b/src/frame.c	Wed Oct 02 01:03:22 1996 +0000
@@ -1707,8 +1707,9 @@
       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;