]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't call x-popup-menu if display-popup-menus-p returns nil.
authorEli Zaretskii <eliz@gnu.org>
Fri, 31 Aug 2001 17:53:03 +0000 (17:53 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 31 Aug 2001 17:53:03 +0000 (17:53 +0000)
lisp/ChangeLog
lisp/hi-lock.el

index 7600943c445a2e22e5622a5bc1b4df7e75dff75f..2c2eb84ba64190600c54373590e227b0055d82cc 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * 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  <gerd@gnu.org>
 
        * isearch.el (isearch-mouse-2): Renamed from isearch-mouse-yank.
index 86e62eea052af1667435b2d71554edb0b4165ab6..6c7fb5d0c5854b42c5c1273c1648556d5ec97daa 100644 (file)
@@ -392,7 +392,7 @@ interactive functions.  \(See `hi-lock-interactive-patterns'.\)
 \\<minibuffer-local-must-match-map>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