(flyspell-mouse-map): Undefine mouse-2 to avoid yanks (Bug#2408).
This commit is contained in:
parent
c067b28f3f
commit
770f7c6396
1 changed files with 4 additions and 2 deletions
|
@ -413,8 +413,10 @@ property of the major mode name.")
|
|||
;;*---------------------------------------------------------------------*/
|
||||
(defvar flyspell-mouse-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(define-key map (if (featurep 'xemacs) [button2] [down-mouse-2])
|
||||
#'flyspell-correct-word)
|
||||
(if (featurep 'xemacs)
|
||||
(define-key map [button2] #'flyspell-correct-word)
|
||||
(define-key map [down-mouse-2] #'flyspell-correct-word)
|
||||
(define-key map [mouse-2] 'undefined))
|
||||
map)
|
||||
"Keymap for Flyspell to put on erroneous words.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue