diff options
| author | Michael Kifer | 2008-01-10 06:54:12 +0000 |
|---|---|---|
| committer | Michael Kifer | 2008-01-10 06:54:12 +0000 |
| commit | acb93bb2a68eac61448a2da39e9f7f0b14d6869b (patch) | |
| tree | 8fddf5d4d4fd25c4c1e05a52e25a5c50c98ff6e8 /lisp/emulation | |
| parent | c0323133334f70c2e25f4ace22084e3696bf2a5a (diff) | |
| download | emacs-acb93bb2a68eac61448a2da39e9f7f0b14d6869b.tar.gz emacs-acb93bb2a68eac61448a2da39e9f7f0b14d6869b.zip | |
2008-01-10 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff*.el: uncommented declare-function.
* viper*.el: uncommented declare-function.
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 10 | ||||
| -rw-r--r-- | lisp/emulation/viper-keym.el | 10 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 6 |
3 files changed, 16 insertions, 10 deletions
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index fbebacb16b5..68116cde092 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -47,6 +47,9 @@ | |||
| 47 | (defvar initial) | 47 | (defvar initial) |
| 48 | (defvar undo-beg-posn) | 48 | (defvar undo-beg-posn) |
| 49 | (defvar undo-end-posn) | 49 | (defvar undo-end-posn) |
| 50 | |||
| 51 | (eval-and-compile | ||
| 52 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 50 | ;; end pacifier | 53 | ;; end pacifier |
| 51 | 54 | ||
| 52 | 55 | ||
| @@ -3083,10 +3086,9 @@ On reaching beginning of line, stop and signal error." | |||
| 3083 | (setq this-command 'next-line) | 3086 | (setq this-command 'next-line) |
| 3084 | (if com (viper-execute-com 'viper-next-line val com)))) | 3087 | (if com (viper-execute-com 'viper-next-line val com)))) |
| 3085 | 3088 | ||
| 3086 | ;; declare-function is not defined in XEmacs | 3089 | (declare-function widget-type "wid-edit" (widget)) |
| 3087 | ;;(declare-function widget-type "wid-edit" (widget)) | 3090 | (declare-function widget-button-press "wid-edit" (pos &optional event)) |
| 3088 | ;;(declare-function widget-button-press "wid-edit" (pos &optional event)) | 3091 | (declare-function viper-set-hooks "viper" ()) |
| 3089 | ;;(declare-function viper-set-hooks "viper" ()) | ||
| 3090 | 3092 | ||
| 3091 | (defun viper-next-line-at-bol (arg) | 3093 | (defun viper-next-line-at-bol (arg) |
| 3092 | "Next line at beginning of line. | 3094 | "Next line at beginning of line. |
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el index 02df3fe3084..05c90f995ab 100644 --- a/lisp/emulation/viper-keym.el +++ b/lisp/emulation/viper-keym.el | |||
| @@ -33,14 +33,16 @@ | |||
| 33 | (defvar viper-expert-level) | 33 | (defvar viper-expert-level) |
| 34 | (defvar viper-ex-style-editing) | 34 | (defvar viper-ex-style-editing) |
| 35 | (defvar viper-ex-style-motion) | 35 | (defvar viper-ex-style-motion) |
| 36 | |||
| 37 | (eval-and-compile | ||
| 38 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 36 | ;; end pacifier | 39 | ;; end pacifier |
| 37 | 40 | ||
| 38 | (require 'viper-util) | 41 | (require 'viper-util) |
| 39 | 42 | ||
| 40 | ;; declare-function is not defined in XEmacs | 43 | (declare-function viper-ex "viper-ex" (arg &optional string)) |
| 41 | ;;(declare-function viper-ex "viper-ex" (arg &optional string)) | 44 | (declare-function viper-normalize-minor-mode-map-alist "viper-cmd" ()) |
| 42 | ;;(declare-function viper-normalize-minor-mode-map-alist "viper-cmd" ()) | 45 | (declare-function viper-set-mode-vars-for "viper-cmd" (state)) |
| 43 | ;;(declare-function viper-set-mode-vars-for "viper-cmd" (state)) | ||
| 44 | 46 | ||
| 45 | ;;; Variables | 47 | ;;; Variables |
| 46 | 48 | ||
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 2bd2a3e276a..b838d8ce80e 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -44,6 +44,9 @@ | |||
| 44 | 44 | ||
| 45 | (require 'ring) | 45 | (require 'ring) |
| 46 | 46 | ||
| 47 | (eval-and-compile | ||
| 48 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 49 | |||
| 47 | ;; end pacifier | 50 | ;; end pacifier |
| 48 | 51 | ||
| 49 | (require 'viper-init) | 52 | (require 'viper-init) |
| @@ -374,8 +377,7 @@ | |||
| 374 | 377 | ||
| 375 | 378 | ||
| 376 | 379 | ||
| 377 | ;; declare-function is not defined in XEmacs | 380 | (declare-function viper-forward-Word "viper-cmd" (arg)) |
| 378 | ;;(declare-function viper-forward-Word "viper-cmd" (arg)) | ||
| 379 | 381 | ||
| 380 | ;;; Support for :e, :r, :w file globbing | 382 | ;;; Support for :e, :r, :w file globbing |
| 381 | 383 | ||