diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-02-18 10:58:00 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-02-18 10:58:00 +0200 |
commit | 1769a588300f471a85fe8887864ae33340dececb (patch) | |
tree | 3143e7f8d87c64f6218b4f2649ed029658b1dba5 /lisp/hi-lock.el | |
parent | deef41a82590658455bfd6468b2811147dd5f845 (diff) | |
download | emacs-1769a588300f471a85fe8887864ae33340dececb.tar.gz emacs-1769a588300f471a85fe8887864ae33340dececb.tar.bz2 emacs-1769a588300f471a85fe8887864ae33340dececb.zip |
Fix some uses of 'use-dialog-box'
* lisp/frame.el (display-mouse-p): Fix return value on MS-Windows
in batch invocations.
* lisp/hi-lock.el (hi-lock-unface-buffer): Don't consider
'last-nonmenu-event' being nil as a mouse event, for the purpose
of using dialog boxes.
Diffstat (limited to 'lisp/hi-lock.el')
-rw-r--r-- | lisp/hi-lock.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 78fc5e6f716..5c536b190fb 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -611,6 +611,7 @@ then remove all hi-lock highlighting." (cond (current-prefix-arg (list t)) ((and (display-popup-menus-p) + last-nonmenu-event (listp last-nonmenu-event) use-dialog-box) (catch 'snafu |