> We should also restore the current tab, then. Because right now we're > restoring the window configuration, but not the current tab. > > If we did that, then this would behave as expected: We'd restore the > current tab, then restore the window configuration in that tab. I was unaware about this problem because I have customized read-minibuffer-restore-windows to nil. Now that you found the problem, I looked at it from the point of view of users who don't mind the default value t of read-minibuffer-restore-windows, and agree now that for read-minibuffer-restore-windows to continue doing what it's intended to do, the only way is to switch to the original tab back. Here is a preliminary patch that might need more testing: