changeset 82857:2a4d4f565ad8

(hi-lock-unface-buffer): Show a x-menu only if the mouse was used.
author Michaël Cadilhac <michael.cadilhac@lrde.org>
date Sun, 26 Aug 2007 19:34:31 +0000
parents 85c3b71c088a
children 38b2d9f837b9
files lisp/hi-lock.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/hi-lock.el	Sun Aug 26 19:20:20 2007 +0000
+++ b/lisp/hi-lock.el	Sun Aug 26 19:34:31 2007 +0000
@@ -462,7 +462,7 @@
 \\<minibuffer-local-must-match-map>Use \\[minibuffer-complete] to complete a partially typed regexp.
 \(See info node `Minibuffer History'.\)"
   (interactive
-   (if (and (display-popup-menus-p) (vectorp (this-command-keys)))
+   (if (and (display-popup-menus-p) (not last-nonmenu-event))
        (catch 'snafu
 	 (or
 	  (x-popup-menu