]> code.delx.au - gnu-emacs/blobdiff - lisp/comint.el
Merge from emacs-24
[gnu-emacs] / lisp / comint.el
index dfc3fee0884c1a3cfea82bb98f6f31c8473a9560..da3782717c03c10fb9dad924d18cbcba613c633e 100644 (file)
@@ -3332,8 +3332,9 @@ the completions."
            (and (consp first) (consp (event-start first))
                 (eq (window-buffer (posn-window (event-start first)))
                     (get-buffer "*Completions*"))
-                (eq (key-binding key) 'mouse-choose-completion)))
-         ;; If the user does mouse-choose-completion with the mouse,
+                (memq (key-binding key)
+                       '(mouse-choose-completion choose-completion))))
+         ;; If the user does choose-completion with the mouse,
          ;; execute the command, then delete the completion window.
          (progn
            (choose-completion first)