comparison lisp/emulation/viper-mous.el @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 0d8b17d428b5
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 ;;; viper-mous.el --- mouse support for Viper 1 ;;; viper-mous.el --- mouse support for Viper
2 2
3 ;; Copyright (C) 1994, 95, 96, 97, 2001, 02 Free Software Foundation, Inc. 3 ;; Copyright (C) 1994, 1995, 1996, 1997, 2001, 2002, 2003, 2004,
4 ;; 2005 Free Software Foundation, Inc.
4 5
5 ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> 6 ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
6 7
7 ;; This file is part of GNU Emacs. 8 ;; This file is part of GNU Emacs.
8 9
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details. 18 ;; GNU General Public License for more details.
18 19
19 ;; You should have received a copy of the GNU General Public License 20 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02111-1307, USA. 23 ;; Boston, MA 02110-1301, USA.
23 24
24 ;;; Commentary: 25 ;;; Commentary:
25 26
26 ;;; Code: 27 ;;; Code:
27 28
50 51
51 (require 'viper-util) 52 (require 'viper-util)
52 53
53 54
54 (defgroup viper-mouse nil 55 (defgroup viper-mouse nil
55 "Support for Viper special mouse-bound commands" 56 "Support for Viper special mouse-bound commands."
56 :prefix "viper-" 57 :prefix "viper-"
57 :group 'viper) 58 :group 'viper)
58 59
59 60
60 ;;; Variables 61 ;;; Variables
63 ;; If non-nil, indicates that previous-frame should be the selected 64 ;; If non-nil, indicates that previous-frame should be the selected
64 ;; one. Used by viper-mouse-click-get-word. Not a user option. 65 ;; one. Used by viper-mouse-click-get-word. Not a user option.
65 (defvar viper-frame-of-focus nil) 66 (defvar viper-frame-of-focus nil)
66 67
67 ;; Frame that was selected before the switch-frame event. 68 ;; Frame that was selected before the switch-frame event.
68 (defconst viper-current-frame-saved (selected-frame)) 69 (defvar viper-current-frame-saved (selected-frame))
69 70
70 (defcustom viper-surrounding-word-function 'viper-surrounding-word 71 (defcustom viper-surrounding-word-function 'viper-surrounding-word
71 "*Function that determines what constitutes a word for clicking events. 72 "*Function that determines what constitutes a word for clicking events.
72 Takes two parameters: a COUNT, indicating how many words to return, 73 Takes two parameters: a COUNT, indicating how many words to return,
73 and CLICK-COUNT, telling whether this is the first click, a double-click, 74 and CLICK-COUNT, telling whether this is the first click, a double-click,
672 ;;; Local Variables: 673 ;;; Local Variables:
673 ;;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun) 674 ;;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun)
674 ;;; End: 675 ;;; End:
675 676
676 677
678 ;;; arch-tag: e56b2390-06c4-4dd1-96f5-c7876e2d8c2f
677 ;;; viper-mous.el ends here 679 ;;; viper-mous.el ends here