aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-23 00:10:05 -0700
committerGlenn Morris2013-05-23 00:10:05 -0700
commita5c7df1a4bb8cf7efe5acc7313667a63d7f660c5 (patch)
treedc0d5211d6755a5af10dcafae131047fa7ed3889
parentc7641e3c89bbd310dea7d81da8599823b821057e (diff)
downloademacs-a5c7df1a4bb8cf7efe5acc7313667a63d7f660c5.tar.gz
emacs-a5c7df1a4bb8cf7efe5acc7313667a63d7f660c5.zip
Silence ediff compilation
* lisp/vc/ediff-diff.el, lisp/vc/ediff-merg.el: Require ediff-util at run-time. * lisp/vc/ediff-mult.el: Adjust requires. (ediff-directories-internal, ediff-directory-revisions-internal) (ediff-patch-file-internal): Declare. * lisp/vc/ediff-ptch.el: Adjust requires. (ediff-use-last-dir, ediff-buffers-internal): Declare. (ediff-find-file): Autoload. * lisp/vc/ediff-util.el: No need to load ediff when compiling. (ediff-regions-internal): Declare. * lisp/vc/ediff-wind.el: Adjust requires. (ediff-compute-toolbar-width): Define when compiling. (ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare. * lisp/vc/ediff.el: No need to load dired, ediff-ptch when compiling. (dired-get-filename, dired-get-marked-files) (ediff-last-dir-patch, ediff-patch-default-directory) (ediff-get-patch-buffer, ediff-dispatch-file-patching-job) (ediff-patch-buffer-internal): Declare.
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/vc/ediff-diff.el4
-rw-r--r--lisp/vc/ediff-merg.el5
-rw-r--r--lisp/vc/ediff-mult.el21
-rw-r--r--lisp/vc/ediff-ptch.el13
-rw-r--r--lisp/vc/ediff-util.el6
-rw-r--r--lisp/vc/ediff-wind.el17
-rw-r--r--lisp/vc/ediff.el20
8 files changed, 70 insertions, 34 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ffd7e13ea5..992c6e9f42c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,23 @@
12013-05-23 Glenn Morris <rgm@gnu.org> 12013-05-23 Glenn Morris <rgm@gnu.org>
2 2
3 * vc/ediff-diff.el, vc/ediff-merg.el: Require ediff-util at run-time.
4 * vc/ediff-mult.el: Adjust requires.
5 (ediff-directories-internal, ediff-directory-revisions-internal)
6 (ediff-patch-file-internal): Declare.
7 * vc/ediff-ptch.el: Adjust requires.
8 (ediff-use-last-dir, ediff-buffers-internal): Declare.
9 (ediff-find-file): Autoload.
10 * vc/ediff-util.el: No need to load ediff when compiling.
11 (ediff-regions-internal): Declare.
12 * vc/ediff-wind.el: Adjust requires.
13 (ediff-compute-toolbar-width): Define when compiling.
14 (ediff-setup-control-buffer, ediff-make-bottom-toolbar): Declare.
15 * vc/ediff.el: No need to load dired, ediff-ptch when compiling.
16 (dired-get-filename, dired-get-marked-files)
17 (ediff-last-dir-patch, ediff-patch-default-directory)
18 (ediff-get-patch-buffer, ediff-dispatch-file-patching-job)
19 (ediff-patch-buffer-internal): Declare.
20
3 * emacs-lisp/checkdoc.el: No need to load ispell when compiling. 21 * emacs-lisp/checkdoc.el: No need to load ispell when compiling.
4 (ispell-process, ispell-buffer-local-words, lm-summary) 22 (ispell-process, ispell-buffer-local-words, lm-summary)
5 (lm-section-start, lm-section-end): Declare. 23 (lm-section-start, lm-section-end): Declare.
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index b4d986fb036..3e64250d1a7 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -27,10 +27,8 @@
27 27
28(provide 'ediff-diff) 28(provide 'ediff-diff)
29 29
30(eval-when-compile
31 (require 'ediff-util))
32
33(require 'ediff-init) 30(require 'ediff-init)
31(require 'ediff-util)
34 32
35(defgroup ediff-diff nil 33(defgroup ediff-diff nil
36 "Diff related utilities." 34 "Diff related utilities."
diff --git a/lisp/vc/ediff-merg.el b/lisp/vc/ediff-merg.el
index dea872bd142..a1f4d4f5d78 100644
--- a/lisp/vc/ediff-merg.el
+++ b/lisp/vc/ediff-merg.el
@@ -32,11 +32,8 @@
32(defvar ediff-merge-window-share) 32(defvar ediff-merge-window-share)
33(defvar ediff-window-config-saved) 33(defvar ediff-window-config-saved)
34 34
35(eval-when-compile
36 (require 'ediff-util))
37;; end pacifier
38
39(require 'ediff-init) 35(require 'ediff-init)
36(require 'ediff-util)
40 37
41(defcustom ediff-quit-merge-hook 'ediff-maybe-save-and-delete-merge 38(defcustom ediff-quit-merge-hook 'ediff-maybe-save-and-delete-merge
42 "Hooks to run before quitting a merge job. 39 "Hooks to run before quitting a merge job.
diff --git a/lisp/vc/ediff-mult.el b/lisp/vc/ediff-mult.el
index 3e3bc6c9663..58e10819a30 100644
--- a/lisp/vc/ediff-mult.el
+++ b/lisp/vc/ediff-mult.el
@@ -110,14 +110,11 @@
110 :prefix "ediff-" 110 :prefix "ediff-"
111 :group 'ediff) 111 :group 'ediff)
112 112
113
114;; compiler pacifier
115(eval-when-compile
116 (require 'ediff-ptch)
117 (require 'ediff))
118;; end pacifier
119
120(require 'ediff-init) 113(require 'ediff-init)
114(require 'ediff-diff)
115(require 'ediff-wind)
116(require 'ediff-util)
117
121 118
122;; meta-buffer 119;; meta-buffer
123(ediff-defvar-local ediff-meta-buffer nil "") 120(ediff-defvar-local ediff-meta-buffer nil "")
@@ -1795,6 +1792,14 @@ all marked sessions must be active."
1795 )) 1792 ))
1796 (error "The patch buffer wasn't found")))) 1793 (error "The patch buffer wasn't found"))))
1797 1794
1795(declare-function ediff-directories-internal "ediff"
1796 (dir1 dir2 dir3 regexp action jobname
1797 &optional startup-hooks merge-autostore-dir))
1798
1799(declare-function ediff-directory-revisions-internal "ediff"
1800 (dir1 regexp action jobname
1801 &optional startup-hooks merge-autostore-dir))
1802
1798 1803
1799;; This function executes in meta buffer. It knows where event happened. 1804;; This function executes in meta buffer. It knows where event happened.
1800(defun ediff-filegroup-action () 1805(defun ediff-filegroup-action ()
@@ -2360,6 +2365,8 @@ If this is a session registry buffer then just bury it."
2360 (setq point (point-min))) 2365 (setq point (point-min)))
2361 point)))) 2366 point))))
2362 2367
2368(autoload 'ediff-patch-file-internal "ediff-ptch")
2369
2363;; this is the action invoked when the user selects a patch from the meta 2370;; this is the action invoked when the user selects a patch from the meta
2364;; buffer. 2371;; buffer.
2365(defun ediff-patch-file-form-meta (file &optional startup-hooks) 2372(defun ediff-patch-file-form-meta (file &optional startup-hooks)
diff --git a/lisp/vc/ediff-ptch.el b/lisp/vc/ediff-ptch.el
index 64f4ee4a6ac..e22b31ed048 100644
--- a/lisp/vc/ediff-ptch.el
+++ b/lisp/vc/ediff-ptch.el
@@ -33,12 +33,8 @@
33 :prefix "ediff-" 33 :prefix "ediff-"
34 :group 'ediff) 34 :group 'ediff)
35 35
36;; compiler pacifier
37(eval-when-compile
38 (require 'ediff))
39;; end pacifier
40
41(require 'ediff-init) 36(require 'ediff-init)
37(require 'ediff-util)
42 38
43(defcustom ediff-patch-program "patch" 39(defcustom ediff-patch-program "patch"
44 "Name of the program that applies patches. 40 "Name of the program that applies patches.
@@ -472,6 +468,8 @@ are two possible targets for this patch. However, these files do not exist."
472 (set-window-buffer ediff-window-B ediff-patch-diagnostics)) 468 (set-window-buffer ediff-window-B ediff-patch-diagnostics))
473 (t (display-buffer ediff-patch-diagnostics 'not-this-window)))) 469 (t (display-buffer ediff-patch-diagnostics 'not-this-window))))
474 470
471(defvar ediff-use-last-dir)
472
475;; prompt for file, get the buffer 473;; prompt for file, get the buffer
476(defun ediff-prompt-for-patch-file () 474(defun ediff-prompt-for-patch-file ()
477 (let ((dir (cond (ediff-use-last-dir ediff-last-dir-patch) 475 (let ((dir (cond (ediff-use-last-dir ediff-last-dir-patch)
@@ -642,6 +640,11 @@ optional argument, then use it."
642;;; (eq code 0) 640;;; (eq code 0)
643;;; (not (eq code 2)))) 641;;; (not (eq code 2))))
644 642
643(autoload 'ediff-find-file "ediff")
644(declare-function ediff-buffers-internal "ediff"
645 (buf-a buf-b buf-c startup-hooks job-name
646 &optional merge-buffer-file))
647
645(defun ediff-patch-file-internal (patch-buf source-filename 648(defun ediff-patch-file-internal (patch-buf source-filename
646 &optional startup-hooks) 649 &optional startup-hooks)
647 (setq source-filename (expand-file-name source-filename)) 650 (setq source-filename (expand-file-name source-filename))
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 81146c0c931..ec227f44e8f 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -42,9 +42,6 @@
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
44 44
45(eval-when-compile
46 (require 'ediff))
47
48;; end pacifier 45;; end pacifier
49 46
50 47
@@ -3477,6 +3474,9 @@ Without an argument, it saves customized diff argument, if available
3477 (if (window-live-p ediff-control-window) 3474 (if (window-live-p ediff-control-window)
3478 (select-window ediff-control-window))) 3475 (select-window ediff-control-window)))
3479 3476
3477(declare-function ediff-regions-internal "ediff"
3478 (buffer-a beg-a end-a buffer-b beg-b end-b
3479 startup-hooks job-name word-mode setup-parameters))
3480 3480
3481(defun ediff-inferior-compare-regions () 3481(defun ediff-inferior-compare-regions ()
3482 "Compare regions in an active Ediff session. 3482 "Compare regions in an active Ediff session.
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el
index 81109906262..124bdbd26df 100644
--- a/lisp/vc/ediff-wind.el
+++ b/lisp/vc/ediff-wind.el
@@ -42,17 +42,16 @@
42(eval-and-compile 42(eval-and-compile
43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 43 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
44 44
45(eval-when-compile 45(require 'ediff-init)
46 (require 'ediff-util) 46(require 'ediff-help)
47 (require 'ediff-help))
48;; end pacifier 47;; end pacifier
49 48
50(require 'ediff-init)
51 49
52;; be careful with ediff-tbar 50;; be careful with ediff-tbar
53(if (featurep 'xemacs) 51(eval-and-compile
54 (require 'ediff-tbar) 52 (if (featurep 'xemacs)
55 (defun ediff-compute-toolbar-width () 0)) 53 (require 'ediff-tbar)
54 (defun ediff-compute-toolbar-width () 0)))
56 55
57(defgroup ediff-window nil 56(defgroup ediff-window nil
58 "Ediff window manipulation." 57 "Ediff window manipulation."
@@ -358,6 +357,8 @@ into icons, regardless of the window manager."
358 (ediff-setup-windows-plain-compare 357 (ediff-setup-windows-plain-compare
359 buffer-A buffer-B buffer-C control-buffer))) 358 buffer-A buffer-B buffer-C control-buffer)))
360 359
360(autoload 'ediff-setup-control-buffer "ediff-util")
361
361(defun ediff-setup-windows-plain-merge (buf-A buf-B buf-C control-buffer) 362(defun ediff-setup-windows-plain-merge (buf-A buf-B buf-C control-buffer)
362 ;; skip dedicated and unsplittable frames 363 ;; skip dedicated and unsplittable frames
363 (ediff-destroy-control-frame control-buffer) 364 (ediff-destroy-control-frame control-buffer)
@@ -908,6 +909,8 @@ into icons, regardless of the window manager."
908 (not (ediff-frame-has-dedicated-windows (window-frame wind))) 909 (not (ediff-frame-has-dedicated-windows (window-frame wind)))
909 ))) 910 )))
910 911
912(declare-function ediff-make-bottom-toolbar "ediff-util" (&optional frame))
913
911;; Prepare or refresh control frame 914;; Prepare or refresh control frame
912(defun ediff-setup-control-frame (ctl-buffer designated-minibuffer-frame) 915(defun ediff-setup-control-frame (ctl-buffer designated-minibuffer-frame)
913 (let ((window-min-height 1) 916 (let ((window-min-height 1)
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el
index 4a4aab75144..7a8f399a6ce 100644
--- a/lisp/vc/ediff.el
+++ b/lisp/vc/ediff.el
@@ -116,11 +116,7 @@
116(eval-and-compile 116(eval-and-compile
117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) 117 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
118 118
119 119(require 'ediff-util)
120(eval-when-compile
121 (require 'dired)
122 (require 'ediff-util)
123 (require 'ediff-ptch))
124;; end pacifier 120;; end pacifier
125 121
126(require 'ediff-init) 122(require 'ediff-init)
@@ -154,6 +150,11 @@
154 (ediff-with-current-buffer ediff-buffer-A 150 (ediff-with-current-buffer ediff-buffer-A
155 (setq buffer-read-only t))) 151 (setq buffer-read-only t)))
156 152
153(declare-function dired-get-filename "dired"
154 (&optional localp no-error-if-not-filep))
155(declare-function dired-get-marked-files "dired"
156 (&optional localp arg filter distinguish-one-marked))
157
157;; Return a plausible default for ediff's first file: 158;; Return a plausible default for ediff's first file:
158;; In dired, return the file number FILENO (or 0) in the list 159;; In dired, return the file number FILENO (or 0) in the list
159;; (all-selected-files, filename under the cursor), where directories are 160;; (all-selected-files, filename under the cursor), where directories are
@@ -1345,6 +1346,12 @@ buffer."
1345 rev1 rev2 ancestor-rev startup-hooks merge-buffer-file))) 1346 rev1 rev2 ancestor-rev startup-hooks merge-buffer-file)))
1346 1347
1347;;; Apply patch 1348;;; Apply patch
1349(defvar ediff-last-dir-patch)
1350(defvar ediff-patch-default-directory)
1351(declare-function ediff-get-patch-buffer "ediff-ptch"
1352 (&optional arg patch-buf))
1353(declare-function ediff-dispatch-file-patching-job "ediff-ptch"
1354 (patch-buf filename &optional startup-hooks))
1348 1355
1349;;;###autoload 1356;;;###autoload
1350(defun ediff-patch-file (&optional arg patch-buf) 1357(defun ediff-patch-file (&optional arg patch-buf)
@@ -1373,6 +1380,9 @@ buffer. If odd -- assume it is in a file."
1373 source-dir nil nil (ediff-get-default-file-name))) 1380 source-dir nil nil (ediff-get-default-file-name)))
1374 (ediff-dispatch-file-patching-job patch-buf source-file))) 1381 (ediff-dispatch-file-patching-job patch-buf source-file)))
1375 1382
1383(declare-function ediff-patch-buffer-internal "ediff-ptch"
1384 (patch-buf buf-to-patch-name &optional startup-hooks))
1385
1376;;;###autoload 1386;;;###autoload
1377(defun ediff-patch-buffer (&optional arg patch-buf) 1387(defun ediff-patch-buffer (&optional arg patch-buf)
1378 "Run Ediff by patching the buffer specified at prompt. 1388 "Run Ediff by patching the buffer specified at prompt.