comparison lisp/emulation/viper-cmd.el @ 87691:f2c8fd594360

2008-01-10 Michael Kifer <kifer@cs.stonybrook.edu> * ediff*.el: uncommented declare-function. * viper*.el: uncommented declare-function.
author Michael Kifer <kifer@cs.stonybrook.edu>
date Thu, 10 Jan 2008 06:54:12 +0000
parents ae3fe9150b36
children c70e45a7acfd 3b2c0edcb428
comparison
equal deleted inserted replaced
87690:9cbad7267d3d 87691:f2c8fd594360
45 (defvar mark-even-if-inactive) 45 (defvar mark-even-if-inactive)
46 (defvar init-message) 46 (defvar init-message)
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
53 (require 'viper-util) 56 (require 'viper-util)
54 (require 'viper-keym) 57 (require 'viper-keym)
3081 (if viper-ex-style-motion 3084 (if viper-ex-style-motion
3082 (if (and (eolp) (not (bolp))) (backward-char 1))) 3085 (if (and (eolp) (not (bolp))) (backward-char 1)))
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.
3093 If point is on a widget or a button, simulate clicking on that widget/button." 3095 If point is on a widget or a button, simulate clicking on that widget/button."
3094 (interactive "P") 3096 (interactive "P")