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)
This commit is contained in:
parent
74deafe921
commit
b9b78b2631
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue