From: Eli Zaretskii Date: Thu, 14 Oct 2021 09:29:43 +0000 (+0300) Subject: Fix Help functions for clicks on tool bar and tab bar X-Git-Tag: emacs-28.0.90~292 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b9b78b263148d26ea585622e98e8e5ccd2602799;p=emacs.git Fix Help functions for clicks on tool bar and tab bar * lisp/mouse.el (mouse-minibuffer-check): Don't assume posn-window returns a window. (Bug#5199) --- diff --git a/lisp/mouse.el b/lisp/mouse.el index bb47d04a3a8..bcb58d153a8 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -571,7 +571,8 @@ This is the keyboard interface to \\[context-menu-map]." (defun mouse-minibuffer-check (event) (let ((w (posn-window (event-start event)))) - (and (window-minibuffer-p w) + (and (windowp w) + (window-minibuffer-p w) (not (minibuffer-window-active-p w)) (user-error "Minibuffer window is not active"))) ;; Give temporary modes such as isearch a chance to turn off.