aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-11-16 15:29:10 +0000
committerStefan Monnier2004-11-16 15:29:10 +0000
commit27c35b9521d5c9e58d584254ab93d6c53e457a2e (patch)
tree919a051c1d5ea9350acce42430091281eac36bca
parentb0339ffd835406b87caf8d0065b60e2d38f63396 (diff)
downloademacs-27c35b9521d5c9e58d584254ab93d6c53e457a2e.tar.gz
emacs-27c35b9521d5c9e58d584254ab93d6c53e457a2e.zip
(flyspell-mouse-map): Pop the menu
when pressing rather than when releasing mouse-2. Simplify.
-rw-r--r--lisp/textmodes/flyspell.el14
1 files changed, 5 insertions, 9 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 441d9972173..01db2d64b27 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1,6 +1,6 @@
1;;; flyspell.el --- on-the-fly spell checker 1;;; flyspell.el --- on-the-fly spell checker
2 2
3;; Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Manuel Serrano <Manuel.Serrano@sophia.inria.fr> 5;; Author: Manuel Serrano <Manuel.Serrano@sophia.inria.fr>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -391,13 +391,9 @@ property of the major mode name.")
391 391
392(defvar flyspell-mouse-map 392(defvar flyspell-mouse-map
393 (let ((map (make-sparse-keymap))) 393 (let ((map (make-sparse-keymap)))
394 (cond 394 (define-key map (if (featurep 'xemacs) [button2] [down-mouse-2])
395 ((eq flyspell-emacs 'xemacs) 395 #'flyspell-correct-word)
396 (define-key map [(button2)] #'flyspell-correct-word) 396 (define-key map "\M-\t" #'flyspell-auto-correct-word)
397 (define-key map "\M-\t" #'flyspell-auto-correct-word))
398 (flyspell-use-local-map
399 (define-key map [(mouse-2)] #'flyspell-correct-word)
400 (define-key map "\M-\t" #'flyspell-auto-correct-word)))
401 map)) 397 map))
402 398
403;;;###autoload 399;;;###autoload
@@ -2123,5 +2119,5 @@ This function is meant to be added to 'flyspell-incorrect-hook'."
2123 2119
2124(provide 'flyspell) 2120(provide 'flyspell)
2125 2121
2126;;; arch-tag: 05d915b9-e9cf-44fb-9137-fc28f5eaab2a 2122;; arch-tag: 05d915b9-e9cf-44fb-9137-fc28f5eaab2a
2127;;; flyspell.el ends here 2123;;; flyspell.el ends here