aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Kifer2008-01-10 06:54:12 +0000
committerMichael Kifer2008-01-10 06:54:12 +0000
commitacb93bb2a68eac61448a2da39e9f7f0b14d6869b (patch)
tree8fddf5d4d4fd25c4c1e05a52e25a5c50c98ff6e8 /lisp
parentc0323133334f70c2e25f4ace22084e3696bf2a5a (diff)
downloademacs-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')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/ediff-util.el7
-rw-r--r--lisp/ediff-wind.el10
-rw-r--r--lisp/ediff.el8
-rw-r--r--lisp/emulation/viper-cmd.el10
-rw-r--r--lisp/emulation/viper-keym.el10
-rw-r--r--lisp/emulation/viper-util.el6
7 files changed, 38 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 798ed9ec3a6..e0244aa5d4b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-01-10 Michael Kifer <kifer@cs.stonybrook.edu>
2
3 * ediff*.el: uncommented declare-function.
4
5 * viper*.el: uncommented declare-function.
6
12008-01-09 Tassilo Horn <tassilo@member.fsf.org> 72008-01-09 Tassilo Horn <tassilo@member.fsf.org>
2 8
3 * doc-view.el (doc-view-mode): Support tramp, compressed files and 9 * doc-view.el (doc-view-mode): Support tramp, compressed files and
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el
index 94e0d87bf9c..058e20f6a19 100644
--- a/lisp/ediff-util.el
+++ b/lisp/ediff-util.el
@@ -41,6 +41,9 @@
41 41
42(defvar ediff-after-quit-hook-internal nil) 42(defvar ediff-after-quit-hook-internal nil)
43 43
44(eval-and-compile
45 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
46
44(eval-when-compile 47(eval-when-compile
45 (let ((load-path (cons (expand-file-name ".") load-path))) 48 (let ((load-path (cons (expand-file-name ".") load-path)))
46 (provide 'ediff-util) ; to break recursive load cycle 49 (provide 'ediff-util) ; to break recursive load cycle
@@ -2820,10 +2823,8 @@ up an appropriate window config."
2820 (message 2823 (message
2821 "To resume, type M-x eregistry and select the desired Ediff session")) 2824 "To resume, type M-x eregistry and select the desired Ediff session"))
2822 2825
2823
2824;; ediff-barf-if-not-control-buffer ensures only called from ediff. 2826;; ediff-barf-if-not-control-buffer ensures only called from ediff.
2825;; declare-function does not exist in XEmacs 2827(declare-function ediff-version "ediff" ())
2826;;(declare-function ediff-version "ediff" ()))
2827 2828
2828(defun ediff-status-info () 2829(defun ediff-status-info ()
2829 "Show the names of the buffers or files being operated on by Ediff. 2830 "Show the names of the buffers or files being operated on by Ediff.
diff --git a/lisp/ediff-wind.el b/lisp/ediff-wind.el
index 7e5eff6392e..26aa19f38a4 100644
--- a/lisp/ediff-wind.el
+++ b/lisp/ediff-wind.el
@@ -40,6 +40,11 @@
40(defvar frame-icon-title-format) 40(defvar frame-icon-title-format)
41(defvar ediff-diff-status) 41(defvar ediff-diff-status)
42 42
43;; declare-function does not exist in XEmacs
44(eval-and-compile
45 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
46
47
43(eval-when-compile 48(eval-when-compile
44 (let ((load-path (cons (expand-file-name ".") load-path))) 49 (let ((load-path (cons (expand-file-name ".") load-path)))
45 (or (featurep 'ediff-init) 50 (or (featurep 'ediff-init)
@@ -147,10 +152,9 @@ In this case, Ediff will use those frames to display these buffers."
147 :type 'function 152 :type 'function
148 :group 'ediff-window) 153 :group 'ediff-window)
149 154
150;; declare-function does not exist in XEmacs
151;; Definitions hidden from the compiler by compat wrappers. 155;; Definitions hidden from the compiler by compat wrappers.
152;;(declare-function ediff-display-pixel-width "ediff-init") 156(declare-function ediff-display-pixel-width "ediff-init")
153;;(declare-function ediff-display-pixel-height "ediff-init") 157(declare-function ediff-display-pixel-height "ediff-init")
154 158
155(defconst ediff-control-frame-parameters 159(defconst ediff-control-frame-parameters
156 (list 160 (list
diff --git a/lisp/ediff.el b/lisp/ediff.el
index 2caa3715f48..cdfb66d9c00 100644
--- a/lisp/ediff.el
+++ b/lisp/ediff.el
@@ -113,6 +113,9 @@
113(defvar ediff-last-dir-patch) 113(defvar ediff-last-dir-patch)
114(defvar ediff-patch-default-directory) 114(defvar ediff-patch-default-directory)
115 115
116(eval-and-compile
117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
118
116 119
117(eval-when-compile 120(eval-when-compile
118 (and noninteractive 121 (and noninteractive
@@ -361,8 +364,7 @@
361 (list (cons 'ediff-job-name job-name)) 364 (list (cons 'ediff-job-name job-name))
362 merge-buffer-file))) 365 merge-buffer-file)))
363 366
364;; declare-function does not exist in XEmacs 367(declare-function diff-latest-backup-file "diff" (fn))
365;;(declare-function diff-latest-backup-file "diff" (fn)))
366 368
367;;;###autoload 369;;;###autoload
368(defalias 'ediff 'ediff-files) 370(defalias 'ediff 'ediff-files)
@@ -1428,7 +1430,7 @@ When called interactively, displays the version."
1428 (format "Ediff %s of %s" ediff-version ediff-date))) 1430 (format "Ediff %s of %s" ediff-version ediff-date)))
1429 1431
1430;; info is run first, and will autoload info.el. 1432;; info is run first, and will autoload info.el.
1431;;(declare-function Info-goto-node "info" (nodename &optional fork)) 1433(declare-function Info-goto-node "info" (nodename &optional fork))
1432 1434
1433;;;###autoload 1435;;;###autoload
1434(defun ediff-documentation (&optional node) 1436(defun ediff-documentation (&optional node)
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