X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/9f46df23a3d01f82a24f2a3dd8730f0263fa9fde..4d0108a132788e0c3903eb4d5875321ed6e8eef1:/lisp/emulation/viper-mous.el diff --git a/lisp/emulation/viper-mous.el b/lisp/emulation/viper-mous.el index eda1a7ec93..4d5c86fd6a 100644 --- a/lisp/emulation/viper-mous.el +++ b/lisp/emulation/viper-mous.el @@ -1,6 +1,6 @@ ;;; viper-mous.el --- mouse support for Viper -;; Copyright (C) 1994-1997, 2001-2012 Free Software Foundation, Inc. +;; Copyright (C) 1994-1997, 2001-2015 Free Software Foundation, Inc. ;; Author: Michael Kifer ;; Package: viper @@ -35,15 +35,8 @@ (defvar viper-s-string) (defvar viper-re-search) -;; loading happens only in non-interactive compilation -;; in order to spare non-viperized emacs from being viperized -(if noninteractive - (eval-when-compile - (require 'viper-cmd) - )) -;; end pacifier - (require 'viper-util) +;; end pacifier (defgroup viper-mouse nil @@ -140,6 +133,10 @@ considered related." (posn-point (event-start click)))) + +(declare-function viper-backward-char-carefully "viper-cmd" (&optional arg)) +(declare-function viper-forward-char-carefully "viper-cmd" (&optional arg)) + (defun viper-surrounding-word (count click-count) "Returns word surrounding point according to a heuristic. COUNT indicates how many regions to return. @@ -335,6 +332,8 @@ See `viper-surrounding-word' for the definition of a word in this case." viper-current-click-count 0)))) +(declare-function viper-forward-word "viper-cmd" (arg)) +(declare-function viper-adjust-window "viper-cmd" ()) (defun viper-mouse-click-search-word (click arg) "Find the word clicked or double-clicked on. Word may be in another window.