diff options
| author | Karl Heuer <kwzh@gnu.org> | 1996-10-02 01:03:22 +0000 |
|---|---|---|
| committer | Karl Heuer <kwzh@gnu.org> | 1996-10-02 01:03:22 +0000 |
| commit | 7af7ef389ac8eb504d3f3fac33555e5d9d9f9d08 (patch) | |
| tree | 254b3ffcbfb03dd8edec480f235a9c328747138a | |
| parent | b77087c5721d3c1403a48f9edc56aa092f891cdd (diff) | |
| download | emacs-7af7ef389ac8eb504d3f3fac33555e5d9d9f9d08.tar.gz | |
(store_frame_param): Allow setting a frame's minibuffer
to the value that it already has.
| -rw-r--r-- | src/frame.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index a68aed314d0..27b74d5d595 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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; |
