# HG changeset patch # User Stefan Monnier # Date 1100618950 0 # Node ID b838f6a6cb4d8d76b2bb45093c70d87eae2a0637 # Parent 769412d0cd5eea62c0192fa252798892eb56f92d (flyspell-mouse-map): Pop the menu when pressing rather than when releasing mouse-2. Simplify. diff -r 769412d0cd5e -r b838f6a6cb4d lisp/textmodes/flyspell.el --- a/lisp/textmodes/flyspell.el Tue Nov 16 15:26:30 2004 +0000 +++ b/lisp/textmodes/flyspell.el Tue Nov 16 15:29:10 2004 +0000 @@ -1,6 +1,6 @@ ;;; flyspell.el --- on-the-fly spell checker -;; Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. +;; Copyright (C) 1998, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. ;; Author: Manuel Serrano ;; Maintainer: FSF @@ -391,13 +391,9 @@ (defvar flyspell-mouse-map (let ((map (make-sparse-keymap))) - (cond - ((eq flyspell-emacs 'xemacs) - (define-key map [(button2)] #'flyspell-correct-word) - (define-key map "\M-\t" #'flyspell-auto-correct-word)) - (flyspell-use-local-map - (define-key map [(mouse-2)] #'flyspell-correct-word) - (define-key map "\M-\t" #'flyspell-auto-correct-word))) + (define-key map (if (featurep 'xemacs) [button2] [down-mouse-2]) + #'flyspell-correct-word) + (define-key map "\M-\t" #'flyspell-auto-correct-word) map)) ;;;###autoload @@ -2123,5 +2119,5 @@ (provide 'flyspell) -;;; arch-tag: 05d915b9-e9cf-44fb-9137-fc28f5eaab2a +;; arch-tag: 05d915b9-e9cf-44fb-9137-fc28f5eaab2a ;;; flyspell.el ends here