From c9961ecaeb343d9c8874d92a83672280d90cdf69 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Mon, 6 Sep 1999 21:33:27 +0000 Subject: [PATCH] (isearch-mode-map): Add mouse-2. --- lisp/isearch.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/isearch.el b/lisp/isearch.el index 99fb61e1572..0cd1e76ac98 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -312,6 +312,10 @@ Default value, nil, means edit the string instead." (define-key map "\C-\\" 'isearch-toggle-input-method) (define-key map "\C-^" 'isearch-toggle-specified-input-method) + ;; People expect to be able to paste with the mouse. + (define-key map [mouse-2] #'isearch-yank-kill) + (define-key map [down-mouse-2] nil) + (setq isearch-mode-map map) )) -- 2.39.5