From: Gregory Heytings Date: Sun, 11 Oct 2020 14:36:44 +0000 (+0300) Subject: Fix 'message' when there's active minibuffer on another frame X-Git-Tag: emacs-27.1.90~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c31ce18ea;p=emacs.git Fix 'message' when there's active minibuffer on another frame * lisp/minibuffer.el (set-minibuffer-message): Don't reuse the active minibuffer for displaying messages unless the active minibuffer is on the same frame as the selected window. Copyright-paperwork-exempt: yes --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index f6e2b236f3e..10cfca8d587 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -784,7 +784,8 @@ whichever comes first. Unlike `minibuffer-message', this function is called automatically via `set-message-function'." (when (and (not noninteractive) - (window-live-p (active-minibuffer-window))) + (window-live-p (active-minibuffer-window)) + (eq (window-frame) (window-frame (active-minibuffer-window)))) (with-current-buffer (window-buffer (active-minibuffer-window)) (setq message (if (string-match-p "\\` *\\[.+\\]\\'" message) ;; Make sure we can put-text-property.