1 ;;; viper-mous.el --- mouse support for Viper
3 ;; Copyright (C) 1994, 1995, 1996, 1997, 2001, 2002, 2003, 2004,
4 ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 ;; Boston, MA 02110-1301, USA.
32 (defvar double-click-time
)
33 (defvar mouse-track-multi-click-time
)
34 (defvar viper-search-start-marker
)
35 (defvar viper-local-search-start-marker
)
36 (defvar viper-search-history
)
37 (defvar viper-s-string
)
38 (defvar viper-re-search
)
40 ;; loading happens only in non-interactive compilation
41 ;; in order to spare non-viperized emacs from being viperized
44 (let ((load-path (cons (expand-file-name ".") load-path
)))
45 (or (featurep 'viper-cmd
)
46 (load "viper-cmd.el" nil t
'nosuffix
))
53 (defgroup viper-mouse nil
54 "Support for Viper special mouse-bound commands."
61 ;; Variable used for catching the switch-frame event.
62 ;; If non-nil, indicates that previous-frame should be the selected
63 ;; one. Used by viper-mouse-click-get-word. Not a user option.
64 (defvar viper-frame-of-focus nil
)
66 ;; Frame that was selected before the switch-frame event.
67 (defvar viper-current-frame-saved
(selected-frame))
69 (defcustom viper-surrounding-word-function
'viper-surrounding-word
70 "*Function that determines what constitutes a word for clicking events.
71 Takes two parameters: a COUNT, indicating how many words to return,
72 and CLICK-COUNT, telling whether this is the first click, a double-click,
77 ;; time interval in millisecond within which successive clicks are
79 (defcustom viper-multiclick-timeout
(if (viper-window-display-p)
80 (if (featurep 'xemacs
)
81 mouse-track-multi-click-time
84 "*Time interval in millisecond within which successive mouse clicks are
89 ;; current event click count; XEmacs only
90 (defvar viper-current-click-count
0)
91 ;; time stamp of the last click event; XEmacs only
92 (defvar viper-last-click-event-timestamp
0)
94 ;; Local variable used to toggle wraparound search on click.
95 (viper-deflocalvar viper-mouse-click-search-noerror t
)
97 ;; Local variable used to delimit search after wraparound.
98 (viper-deflocalvar viper-mouse-click-search-limit nil
)
100 ;; remembers prefix argument to pass along to commands invoked by second
102 ;; This is needed because in Emacs (not XEmacs), assigning to preix-arg
103 ;; causes Emacs to count the second click as if it was a single click
104 (defvar viper-global-prefix-argument nil
)
107 ;; same keys, but parsed
108 (defvar viper-mouse-up-search-key-parsed nil
)
109 (defvar viper-mouse-down-search-key-parsed nil
)
110 (defvar viper-mouse-up-insert-key-parsed nil
)
111 (defvar viper-mouse-down-insert-key-parsed nil
)
118 (defsubst viper-multiclick-p
()
119 (not (viper-sit-for-short viper-multiclick-timeout t
)))
121 ;; Returns window where click occurs
122 (defun viper-mouse-click-window (click)
123 (let ((win (if (featurep 'xemacs
) (event-window click
)
124 (posn-window (event-start click
)))))
125 (if (window-live-p win
)
127 (error "Click was not over a live window"))))
129 ;; Returns window where click occurs
130 (defsubst viper-mouse-click-frame
(click)
131 (window-frame (viper-mouse-click-window click
)))
133 ;; Returns the buffer of the window where click occurs
134 (defsubst viper-mouse-click-window-buffer
(click)
135 (window-buffer (viper-mouse-click-window click
)))
137 ;; Returns the name of the buffer in the window where click occurs
138 (defsubst viper-mouse-click-window-buffer-name
(click)
139 (buffer-name (viper-mouse-click-window-buffer click
)))
141 ;; Returns position of a click
142 (defsubst viper-mouse-click-posn
(click)
143 (if (featurep 'xemacs
) (event-point click
)
144 (posn-point (event-start click
))))
147 (defun viper-surrounding-word (count click-count
)
148 "Returns word surrounding point according to a heuristic.
149 COUNT indicates how many regions to return.
150 If CLICK-COUNT is 1, `word' is a word in Vi sense.
151 If CLICK-COUNT is 2,then `word' is a Word in Vi sense.
152 If the character clicked on is a non-separator and is non-alphanumeric but
153 is adjacent to an alphanumeric symbol, then it is considered alphanumeric
154 for the purpose of this command. If this character has a matching
155 character, such as `\(' is a match for `\)', then the matching character is
156 also considered alphanumeric.
157 For convenience, in Lisp modes, `-' is considered alphanumeric.
159 If CLICK-COUNT is 3 or more, returns the line clicked on with leading and
160 trailing space and tabs removed. In that case, the first argument, COUNT,
162 (let ((modifiers "_")
165 (if (> click-count
2)
168 (viper-skip-all-separators-forward 'within-line
)
171 (setq result
(buffer-substring beg
(point))))
173 (if (and (not (viper-looking-at-alphasep))
174 (or (save-excursion (viper-backward-char-carefully)
175 (viper-looking-at-alpha))
176 (save-excursion (viper-forward-char-carefully)
177 (viper-looking-at-alpha))))
180 (cond ((looking-at "\\\\") "\\\\")
181 ((looking-at "-") "C-C-")
182 ((looking-at "[][]") "][")
183 ((looking-at "[()]") ")(")
184 ((looking-at "[{}]") "{}")
185 ((looking-at "[<>]") "<>")
186 ((looking-at "[`']") "`'")
187 ((looking-at "\\^") "\\^")
188 ((viper-looking-at-separator) "")
189 (t (char-to-string (following-char))))
193 ;; Add `-' to alphanum, if it wasn't added and if we are in Lisp
195 (not (string-match "lisp" (symbol-name major-mode
)))
196 (setq modifiers
(concat modifiers
"C-C-")))
200 (cond ((> click-count
1) (viper-skip-nonseparators 'backward
))
201 ((viper-looking-at-alpha modifiers
)
202 (viper-skip-alpha-backward modifiers
))
203 ((not (viper-looking-at-alphasep modifiers
))
204 (viper-skip-nonalphasep-backward))
205 (t (if (> click-count
1)
206 (viper-skip-nonseparators 'backward
)
207 (viper-skip-alpha-backward modifiers
))))
209 (setq word-beg
(point))
211 (setq skip-flag nil
) ; don't move 1 char forw the first time
213 (if skip-flag
(viper-forward-char-carefully 1))
214 (setq skip-flag t
) ; now always move 1 char forward
215 (if (> click-count
1)
216 (viper-skip-nonseparators 'forward
)
217 (viper-skip-alpha-forward modifiers
))
218 (setq count
(1- count
)))
220 (setq result
(buffer-substring word-beg
(point))))
222 ;; XEmacs doesn't have set-text-properties, but there buffer-substring
223 ;; doesn't return properties together with the string, so it's not needed.
224 (if (featurep 'emacs
)
225 (set-text-properties 0 (length result
) nil result
))
230 (defun viper-mouse-click-get-word (click count click-count
)
231 "Returns word surrounding the position of a mouse click.
232 Click may be in another window. Current window and buffer isn't changed.
233 On single or double click, returns the word as determined by
234 `viper-surrounding-word-function'."
236 (let ((click-word "")
237 (click-pos (viper-mouse-click-posn click
))
238 (click-buf (viper-mouse-click-window-buffer click
)))
239 (or (natnump count
) (setq count
1))
240 (or (natnump click-count
) (setq click-count
1))
243 (save-window-excursion
246 (set-buffer click-buf
)
248 (goto-char click-pos
)
250 (funcall viper-surrounding-word-function count click-count
)))
251 (error "Click must be over a window"))
255 (defun viper-mouse-click-insert-word (click arg
)
256 "Insert word clicked or double-clicked on.
257 With prefix argument, N, insert that many words.
258 This command must be bound to a mouse click.
259 The double-click action of the same mouse button must not be bound
260 \(or it must be bound to the same function\).
261 See `viper-surrounding-word' for the definition of a word in this case."
263 (if viper-frame-of-focus
;; to handle clicks in another frame
264 (select-frame viper-frame-of-focus
))
266 (or (not (eq (key-binding viper-mouse-down-insert-key-parsed
)
267 'viper-mouse-catch-frame-switch
))
268 (not (eq (key-binding viper-mouse-up-insert-key-parsed
)
269 'viper-mouse-click-insert-word
))
270 (and (featurep 'xemacs
) (not (event-over-text-area-p click
)))))
271 () ; do nothing, if binding isn't right or not over text
272 ;; turn arg into a number
273 (cond ((integerp arg
) nil
)
274 ;; prefix arg is a list when one hits C-u then command
275 ((and (listp arg
) (integerp (car arg
)))
276 (setq arg
(car arg
)))
279 (if (not (eq (key-binding viper-mouse-down-insert-key-parsed
)
280 'viper-mouse-catch-frame-switch
))
282 (let (click-count interrupting-event
)
285 ;; This trick checks if there is a pending mouse event if so, we
286 ;; use this latter event and discard the current mouse click If
287 ;; the next pending event is not a mouse event, we execute the
288 ;; current mouse event
290 (setq interrupting-event
(viper-read-event))
291 (viper-mouse-event-p last-input-event
)))
292 (progn ; interrupted wait
293 (setq viper-global-prefix-argument arg
)
294 ;; count this click for XEmacs
295 (viper-event-click-count click
))
296 ;; uninterrupted wait or the interrupting event wasn't a mouse event
297 (setq click-count
(viper-event-click-count click
))
298 (if (> click-count
1)
299 (setq arg viper-global-prefix-argument
300 viper-global-prefix-argument nil
))
301 (insert (viper-mouse-click-get-word click arg click-count
))
302 (if (and interrupting-event
303 (eventp interrupting-event
)
304 (not (viper-mouse-event-p interrupting-event
)))
305 (viper-set-unread-command-events interrupting-event
))
308 ;; Arg is an event. Accepts symbols and numbers, too
309 (defun viper-mouse-event-p (event)
311 (string-match "\\(mouse-\\|frame\\|screen\\|track\\)"
312 (prin1-to-string (viper-event-key event
)))))
314 ;; XEmacs has no double-click events. So, we must simulate.
315 ;; So, we have to simulate event-click-count.
316 (defun viper-event-click-count (click)
317 (if (featurep 'xemacs
) (viper-event-click-count-xemacs click
)
318 (event-click-count click
)))
320 (when (featurep 'xemacs
)
322 ;; kind of semaphore for updating viper-current-click-count
323 (defvar viper-counting-clicks-p nil
)
325 (defun viper-event-click-count-xemacs (click)
326 (let ((time-delta (- (event-timestamp click
)
327 viper-last-click-event-timestamp
))
329 (while viper-counting-clicks-p
331 (setq viper-counting-clicks-p t
)
332 (if (> time-delta viper-multiclick-timeout
)
333 (setq viper-current-click-count
0))
335 (setq viper-current-click-count
(1+ viper-current-click-count
)
336 viper-last-click-event-timestamp
(event-timestamp click
))
337 (setq viper-counting-clicks-p nil
)
338 (if (viper-sit-for-short viper-multiclick-timeout t
)
339 viper-current-click-count
343 (defun viper-mouse-click-search-word (click arg
)
344 "Find the word clicked or double-clicked on. Word may be in another window.
345 With prefix argument, N, search for N-th occurrence.
346 This command must be bound to a mouse click. The double-click action of the
347 same button must not be bound \(or it must be bound to the same function\).
348 See `viper-surrounding-word' for the details on what constitutes a word for
351 (if viper-frame-of-focus
;; to handle clicks in another frame
352 (select-frame viper-frame-of-focus
))
354 (or (not (eq (key-binding viper-mouse-down-search-key-parsed
)
355 'viper-mouse-catch-frame-switch
))
356 (not (eq (key-binding viper-mouse-up-search-key-parsed
)
357 'viper-mouse-click-search-word
))
358 (and (featurep 'xemacs
) (not (event-over-text-area-p click
)))))
359 () ; do nothing, if binding isn't right or not over text
360 (let ((previous-search-string viper-s-string
)
361 click-word click-count
)
365 ;; This trick checks if there is a pending mouse event if so, we use
366 ;; this latter event and discard the current mouse click If the next
367 ;; pending event is not a mouse event, we execute the current mouse
371 (viper-mouse-event-p last-input-event
)))
372 (progn ; interrupted wait
373 (setq viper-global-prefix-argument
(or viper-global-prefix-argument
375 ;; remember command that was before the multiclick
376 this-command last-command
)
377 ;; make sure we counted this event---needed for XEmacs only
378 (viper-event-click-count click
))
379 ;; uninterrupted wait
380 (setq click-count
(viper-event-click-count click
))
381 (setq click-word
(viper-mouse-click-get-word click nil click-count
))
383 (if (> click-count
1)
384 (setq arg viper-global-prefix-argument
385 viper-global-prefix-argument nil
))
386 (setq arg
(or arg
1))
388 (viper-deactivate-mark)
389 (if (or (not (string= click-word viper-s-string
))
390 (not (markerp viper-search-start-marker
))
391 (not (equal (marker-buffer viper-search-start-marker
)
393 (not (eq last-command
'viper-mouse-click-search-word
)))
395 (setq viper-search-start-marker
(point-marker)
396 viper-local-search-start-marker viper-search-start-marker
397 viper-mouse-click-search-noerror t
398 viper-mouse-click-search-limit nil
)
400 ;; make search string known to Viper
401 (setq viper-s-string
(if viper-re-search
402 (regexp-quote click-word
)
404 (if (not (string= viper-s-string
(car viper-search-history
)))
405 (setq viper-search-history
406 (cons viper-s-string viper-search-history
)))
411 (viper-forward-word 1)
414 (if (not (search-forward
415 click-word viper-mouse-click-search-limit
416 viper-mouse-click-search-noerror
))
418 (setq viper-mouse-click-search-noerror nil
)
419 (setq viper-mouse-click-search-limit
422 (markerp viper-local-search-start-marker
)
423 (marker-buffer viper-local-search-start-marker
))
424 (goto-char viper-local-search-start-marker
))
425 (viper-line-pos 'end
)))
427 (goto-char (point-min))
428 (search-forward click-word
429 viper-mouse-click-search-limit nil
)))
430 (goto-char (match-beginning 0))
431 (message "Searching for: %s" viper-s-string
)
432 (if (<= arg
1) ; found the right occurrence of the pattern
434 (viper-adjust-window)
435 (viper-flash-search-pattern)))
438 (if (or (not (string= click-word previous-search-string
))
439 (not (eq last-command
'viper-mouse-click-search-word
)))
440 (message "`%s': String not found in %s"
441 viper-s-string
(buffer-name (current-buffer)))
443 "`%s': Last occurrence in %s. Back to beginning of search"
444 click-word
(buffer-name (current-buffer)))
445 (setq arg
1) ;; to terminate the loop
447 (setq viper-mouse-click-search-noerror t
)
448 (setq viper-mouse-click-search-limit nil
)
449 (if (and (markerp viper-local-search-start-marker
)
450 (marker-buffer viper-local-search-start-marker
))
451 (goto-char viper-local-search-start-marker
))))
455 (defun viper-mouse-catch-frame-switch (event arg
)
456 "Catch the event of switching frame.
457 Usually is bound to a `down-mouse' event to work properly. See sample
458 bindings in the Viper manual."
460 (setq viper-frame-of-focus nil
)
461 ;; pass prefix arg along to viper-mouse-click-search/insert-word
462 (setq prefix-arg arg
)
463 (if (eq last-command
'handle-switch-frame
)
464 (setq viper-frame-of-focus viper-current-frame-saved
))
465 ;; make Emacs forget that it executed viper-mouse-catch-frame-switch
466 (setq this-command last-command
))
468 ;; Called just before switching frames. Saves the old selected frame.
469 ;; Sets last-command to handle-switch-frame (this is done automatically in
471 ;; The semantics of switching frames is different in Emacs and XEmacs.
472 ;; In Emacs, if you select-frame A while mouse is over frame B and then
473 ;; start typing, input goes to frame B, which becomes selected.
474 ;; In XEmacs, input will go to frame A. This may be a bug in one of the
475 ;; Emacsen, but also may be a design decision.
476 ;; Also, in Emacs sending input to frame B generates handle-switch-frame
477 ;; event, while in XEmacs it doesn't.
478 ;; All this accounts for the difference in the behavior of
479 ;; viper-mouse-click-* commands when you click in a frame other than the one
480 ;; that was the last to receive input. In Emacs, focus will be in frame A
481 ;; until you do something other than viper-mouse-click-* command.
482 ;; In XEmacs, you have to manually select frame B (with the mouse click) in
483 ;; order to shift focus to frame B.
484 (defsubst viper-remember-current-frame
(frame)
485 (setq last-command
'handle-switch-frame
486 viper-current-frame-saved
(selected-frame)))
489 ;; The key is of the form (MODIFIER ... BUTTON-NUMBER)
490 ;; Converts into a valid mouse button spec for the appropriate version of
491 ;; Emacs. EVENT-TYPE is either `up' or `down'. Up returns button-up key; down
492 ;; returns button-down key.
493 (defun viper-parse-mouse-key (key-var event-type
)
494 (let ((key (eval key-var
))
495 button-spec meta-spec shift-spec control-spec key-spec
)
501 (if (featurep 'emacs
)
502 (if (eq 'up event-type
)
503 "mouse-1" "down-mouse-1")
504 (if (eq 'up event-type
)
505 'button1up
'button1
)))
507 (if (featurep 'emacs
)
508 (if (eq 'up event-type
)
509 "mouse-2" "down-mouse-2")
510 (if (eq 'up event-type
)
511 'button2up
'button2
)))
513 (if (featurep 'emacs
)
514 (if (eq 'up event-type
)
515 "mouse-3" "down-mouse-3")
516 (if (eq 'up event-type
)
517 'button3up
'button3
)))
519 "%S: invalid button number, %S" key-var key
)))
522 (if (featurep 'emacs
) "M-" 'meta
)
523 (if (featurep 'emacs
) "" nil
))
525 (if (memq 'shift key
)
526 (if (featurep 'emacs
) "S-" 'shift
)
527 (if (featurep 'emacs
) "" nil
))
529 (if (memq 'control key
)
530 (if (featurep 'emacs
) "C-" 'control
)
531 (if (featurep 'emacs
) "" nil
)))
533 (setq key-spec
(if (featurep 'emacs
)
537 control-spec meta-spec shift-spec button-spec
)))
542 control-spec meta-spec shift-spec button-spec
)))))
545 (defun viper-unbind-mouse-search-key ()
546 (if viper-mouse-up-search-key-parsed
547 (global-unset-key viper-mouse-up-search-key-parsed
))
548 (if viper-mouse-down-search-key-parsed
549 (global-unset-key viper-mouse-down-search-key-parsed
))
550 (setq viper-mouse-up-search-key-parsed nil
551 viper-mouse-down-search-key-parsed nil
))
553 (defun viper-unbind-mouse-insert-key ()
554 (if viper-mouse-up-insert-key-parsed
555 (global-unset-key viper-mouse-up-insert-key-parsed
))
556 (if viper-mouse-down-insert-key-parsed
557 (global-unset-key viper-mouse-down-insert-key-parsed
))
558 (setq viper-mouse-up-insert-key-parsed nil
559 viper-mouse-down-insert-key-parsed nil
))
561 ;; If FORCE, bind even if this mouse action is already bound to something else
562 (defun viper-bind-mouse-search-key (&optional force
)
563 (setq viper-mouse-up-search-key-parsed
564 (viper-parse-mouse-key 'viper-mouse-search-key
'up
)
565 viper-mouse-down-search-key-parsed
566 (viper-parse-mouse-key 'viper-mouse-search-key
'down
))
567 (cond ((or (null viper-mouse-up-search-key-parsed
)
568 (null viper-mouse-down-search-key-parsed
))
571 (key-binding viper-mouse-up-search-key-parsed
)
572 (not (eq (key-binding viper-mouse-up-search-key-parsed
)
573 'viper-mouse-click-search-word
)))
575 "%S already bound to a mouse event. Viper mouse-search feature disabled"
576 viper-mouse-up-search-key-parsed
))
578 (key-binding viper-mouse-down-search-key-parsed
)
579 (not (eq (key-binding viper-mouse-down-search-key-parsed
)
580 'viper-mouse-catch-frame-switch
)))
582 "%S already bound to a mouse event. Viper mouse-search feature disabled"
583 viper-mouse-down-search-key-parsed
))
585 (global-set-key viper-mouse-up-search-key-parsed
586 'viper-mouse-click-search-word
)
587 (global-set-key viper-mouse-down-search-key-parsed
588 'viper-mouse-catch-frame-switch
))))
590 ;; If FORCE, bind even if this mouse action is already bound to something else
591 (defun viper-bind-mouse-insert-key (&optional force
)
592 (setq viper-mouse-up-insert-key-parsed
593 (viper-parse-mouse-key 'viper-mouse-insert-key
'up
)
594 viper-mouse-down-insert-key-parsed
595 (viper-parse-mouse-key 'viper-mouse-insert-key
'down
))
596 (cond ((or (null viper-mouse-up-insert-key-parsed
)
597 (null viper-mouse-down-insert-key-parsed
))
600 (key-binding viper-mouse-up-insert-key-parsed
)
601 (not (eq (key-binding viper-mouse-up-insert-key-parsed
)
602 'viper-mouse-click-insert-word
)))
604 "%S already bound to a mouse event. Viper mouse-insert feature disabled"
605 viper-mouse-up-insert-key-parsed
))
607 (key-binding viper-mouse-down-insert-key-parsed
)
608 (not (eq (key-binding viper-mouse-down-insert-key-parsed
)
609 'viper-mouse-catch-frame-switch
)))
611 "%S already bound to a mouse event. Viper mouse-insert feature disabled"
612 viper-mouse-down-insert-key-parsed
))
614 (global-set-key viper-mouse-up-insert-key-parsed
615 'viper-mouse-click-insert-word
)
616 (global-set-key viper-mouse-down-insert-key-parsed
617 'viper-mouse-catch-frame-switch
))))
619 (defun viper-reset-mouse-search-key (symb val
)
620 (viper-unbind-mouse-search-key)
622 (viper-bind-mouse-search-key 'force
))
624 (defun viper-reset-mouse-insert-key (symb val
)
625 (viper-unbind-mouse-insert-key)
627 (viper-bind-mouse-insert-key 'force
))
630 (defcustom viper-mouse-search-key
'(meta shift
1)
631 "*Key used to click-search in Viper.
632 This must be a list that specifies the mouse button and modifiers.
633 The supported modifiers are `meta', `shift', and `control'.
634 For instance, `(meta shift 1)' means that holding the meta and shift
635 keys down and clicking on a word with mouse button 1
636 will search for that word in the buffer that was current before the click.
637 This buffer may be different from the one where the click occurred."
638 :type
'(list (set :inline t
:tag
"Modifiers" :format
"%t: %v"
639 (const :format
"%v " meta
)
640 (const :format
"%v " shift
)
642 (integer :tag
"Button"))
643 :set
'viper-reset-mouse-search-key
646 (defcustom viper-mouse-insert-key
'(meta shift
2)
647 "*Key used to click-insert in Viper.
648 Must be a list that specifies the mouse button and modifiers.
649 The supported modifiers are `meta', `shift', and `control'.
650 For instance, `(meta shift 2)' means that holding the meta and shift keys
651 down, and clicking on a word with mouse button 2, will insert that word
652 at the cursor in the buffer that was current just before the click.
653 This buffer may be different from the one where the click occurred."
654 :type
'(list (set :inline t
:tag
"Modifiers" :format
"%t: %v"
655 (const :format
"%v " meta
)
656 (const :format
"%v " shift
)
658 (integer :tag
"Button"))
659 :set
'viper-reset-mouse-insert-key
665 ;;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun)
669 ;;; arch-tag: e56b2390-06c4-4dd1-96f5-c7876e2d8c2f
670 ;;; viper-mous.el ends here