From: Eli Zaretskii Date: Fri, 31 Aug 2001 17:53:03 +0000 (+0000) Subject: Don't call x-popup-menu if display-popup-menus-p returns nil. X-Git-Tag: emacs-pretest-21.0.106~289 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59b7ded8724b7f35c010150a268b0ef0d0342d17;p=emacs.git Don't call x-popup-menu if display-popup-menus-p returns nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7600943c445..2c2eb84ba64 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-08-31 Eli Zaretskii + + * hi-lock.el (hi-lock-unface-buffer): Don't call x-popup-menu if + display-popup-menus-p returns nil. + 2001-08-31 Gerd Moellmann * isearch.el (isearch-mouse-2): Renamed from isearch-mouse-yank. diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 86e62eea052..6c7fb5d0c58 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -392,7 +392,7 @@ interactive functions. \(See `hi-lock-interactive-patterns'.\) \\Use \\[minibuffer-complete] to complete a partially typed regexp. \(See info node `Minibuffer History'.\)" (interactive - (if (vectorp (this-command-keys)) + (if (and (display-popup-menus-p) (vectorp (this-command-keys))) (catch 'snafu (or (x-popup-menu