annotate lisp/ediff/ediff-hook.el @ 14:9ee227acff29 r19-15b90

Import from CVS: tag r19-15b90
author cvs
date Mon, 13 Aug 2007 08:48:42 +0200
parents bcdc7deadc19
children 0293115a14e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; ediff-hook.el --- setup for Ediff's menus and autoloads
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995, 1996 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Author: Michael Kifer <kifer@cs.sunysb.edu>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; These must be placed in menu-bar.el in Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;; (define-key menu-bar-tools-menu [epatch]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;; '("Apply Patch" . menu-bar-epatch-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;; (define-key menu-bar-tools-menu [ediff-merge]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;; '("Merge" . menu-bar-ediff-merge-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;; (define-key menu-bar-tools-menu [ediff]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;; '("Compare" . menu-bar-ediff-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ;; Compiler pacifier
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (defvar ediff-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (defvar ediff-merge-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (defvar epatch-menu)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;; end pacifier
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
41 ;; allow menus to be set up without ediff-wind.el being loaded
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
42 (defvar ediff-window-setup-function)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
43
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
44
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defun ediff-xemacs-init-menus ()
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
46 (setq ediff-window-setup-function
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
47 (if (console-on-window-system-p)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
48 'ediff-setup-windows-multiframe
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
49 'ediff-setup-windows-plain))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (if (featurep 'menubar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (progn
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
52 (add-menu-button
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
53 '("Tools")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
54 ["Use separate frame for Ediff control buffer"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
55 ediff-toggle-multiframe
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
56 :style toggle
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
57 :selected (eq ediff-window-setup-function 'ediff-setup-windows-multiframe)]
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
58 "00-Browser...")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
59 ;;(add-menu-button
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
60 ;; '("Tools")
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
61 ;; ["Use a toolbar with Ediff control buffer"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
62 ;; ediff-toggle-use-toolbar
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
63 ;; :style toggle
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
64 ;; :selected (ediff-use-toolbar-p)]
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
65 ;; "00-Browser...")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (add-submenu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 '("Tools") ediff-menu "OO-Browser...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (add-submenu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 '("Tools") ediff-merge-menu "OO-Browser...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (add-submenu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 '("Tools") epatch-menu "OO-Browser...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 (add-menu-button
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 '("Tools")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 ["-------" nil nil] "OO-Browser...")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 )))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ;; explicit string-match is needed: ediff-xemacs-p is not defined at build time
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (cond ((string-match "XEmacs" emacs-version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (defvar ediff-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 '("Compare"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ["Two Files..." ediff-files t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ["Two Buffers..." ediff-buffers t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ["Three Files..." ediff-files3 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ["Three Buffers..." ediff-buffers3 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 ["Two Directories..." ediff-directories t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 ["Three Directories..." ediff-directories3 t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 ["File with Revision..." ediff-revision t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 ["Directory Revisions..." ediff-directory-revisions t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 ["Windows Word-by-word..." ediff-windows-wordwise t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 ["Windows Line-by-line..." ediff-windows-linewise t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 ["Regions Word-by-word..." ediff-regions-wordwise t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 ["Regions Line-by-line..." ediff-regions-linewise t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 ["List Ediff Sessions..." ediff-show-registry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 ["Ediff Manual..." ediff-documentation t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 (defvar ediff-merge-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 '("Merge"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 ["Files..." ediff-merge-files t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 ["Files with Ancestor..." ediff-merge-files-with-ancestor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 ["Buffers..." ediff-merge-buffers t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 ["Buffers with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 ediff-merge-buffers-with-ancestor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 ["Directories..." ediff-merge-directories t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 ["Directories with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 ediff-merge-directories-with-ancestor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 ["Revisions..." ediff-merge-revisions t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 ["Revisions with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 ediff-merge-revisions-with-ancestor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 ["Directory Revisions..." ediff-merge-directory-revisions t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 ["Directory Revisions with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 ediff-merge-directory-revisions-with-ancestor t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 ["List Ediff Sessions..." ediff-show-registry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ["Ediff Manual..." ediff-documentation t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 (defvar epatch-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 '("Apply Patch"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 ["To a file..." ediff-patch-file t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 ["To a buffer..." ediff-patch-buffer t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 "---"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 ["List Ediff Sessions..." ediff-show-registry t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 ["Ediff Manual..." ediff-documentation t]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 ;; put these menus before Object-Oriented-Browser in Tools menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 (add-hook 'before-init-hook 'ediff-xemacs-init-menus)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 (if (not purify-flag)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (ediff-xemacs-init-menus))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;; Emacs--only if menu-bar is loaded
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ((featurep 'menu-bar)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ;; initialize menu bar keymaps
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 (defvar menu-bar-epatch-menu (make-sparse-keymap "Apply Patch"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 (fset 'menu-bar-epatch-menu (symbol-value 'menu-bar-epatch-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 (defvar menu-bar-ediff-merge-menu (make-sparse-keymap "Merge"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 (fset 'menu-bar-ediff-merge-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 (symbol-value 'menu-bar-ediff-merge-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 (defvar menu-bar-ediff-menu (make-sparse-keymap "Compare"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 (fset 'menu-bar-ediff-menu (symbol-value 'menu-bar-ediff-menu))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ;; define ediff-menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 (define-key menu-bar-ediff-menu [ediff-doc]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 '("Ediff Manual..." . ediff-documentation))
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
153 (define-key menu-bar-ediff-menu [emultiframe]
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
154 '("Toggle separate control buffer frame..."
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
155 . ediff-toggle-multiframe))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (define-key menu-bar-ediff-menu [eregistry]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 '("List Ediff Sessions..." . ediff-show-registry))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 (define-key menu-bar-ediff-menu [separator-ediff-manual] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 (define-key menu-bar-ediff-menu [window]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 '("This Window and Next Window" . compare-windows))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 (define-key menu-bar-ediff-menu [ediff-windows-linewise]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 '("Windows Line-by-line..." . ediff-windows-linewise))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 (define-key menu-bar-ediff-menu [ediff-windows-wordwise]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 '("Windows Word-by-word..." . ediff-windows-wordwise))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 (define-key menu-bar-ediff-menu [separator-ediff-windows] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 (define-key menu-bar-ediff-menu [ediff-regions-linewise]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 '("Regions Line-by-line..." . ediff-regions-linewise))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 (define-key menu-bar-ediff-menu [ediff-regions-wordwise]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 '("Regions Word-by-word..." . ediff-regions-wordwise))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (define-key menu-bar-ediff-menu [separator-ediff-regions] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 (define-key menu-bar-ediff-menu [ediff-dir-revision]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 '("Directory Revisions..." . ediff-directory-revisions))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (define-key menu-bar-ediff-menu [ediff-revision]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 '("File with Revision..." . ediff-revision))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (define-key menu-bar-ediff-menu [separator-ediff-directories] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (define-key menu-bar-ediff-menu [ediff-directories3]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 '("Three Directories..." . ediff-directories3))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (define-key menu-bar-ediff-menu [ediff-directories]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 '("Two Directories..." . ediff-directories))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (define-key menu-bar-ediff-menu [separator-ediff-files] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (define-key menu-bar-ediff-menu [ediff-buffers3]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 '("Three Buffers..." . ediff-buffers3))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 (define-key menu-bar-ediff-menu [ediff-files3]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 '("Three Files..." . ediff-files3))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 (define-key menu-bar-ediff-menu [ediff-buffers]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 '("Two Buffers..." . ediff-buffers))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 (define-key menu-bar-ediff-menu [ediff-files]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 '("Two Files..." . ediff-files))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 ;; define merge menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 (define-key menu-bar-ediff-merge-menu [ediff-doc2]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 '("Ediff Manual..." . ediff-documentation))
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
193 (define-key menu-bar-ediff-merge-menu [emultiframe2]
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
194 '("Toggle separate control buffer frame..."
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
195 . ediff-toggle-multiframe))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (define-key menu-bar-ediff-merge-menu [eregistry2]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 '("List Ediff Sessions..." . ediff-show-registry))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 menu-bar-ediff-merge-menu [separator-ediff-merge-manual] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 menu-bar-ediff-merge-menu [ediff-merge-dir-revisions-with-ancestor]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 '("Directory Revisions with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 . ediff-merge-directory-revisions-with-ancestor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 menu-bar-ediff-merge-menu [ediff-merge-dir-revisions]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 '("Directory Revisions..." . ediff-merge-directory-revisions))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 menu-bar-ediff-merge-menu [ediff-merge-revisions-with-ancestor]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 '("Revisions with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 . ediff-merge-revisions-with-ancestor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 (define-key menu-bar-ediff-merge-menu [ediff-merge-revisions]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 '("Revisions..." . ediff-merge-revisions))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 (define-key menu-bar-ediff-merge-menu [separator-ediff-merge] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 menu-bar-ediff-merge-menu [ediff-merge-directories-with-ancestor]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 '("Directories with Ancestor..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 . ediff-merge-directories-with-ancestor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 (define-key menu-bar-ediff-merge-menu [ediff-merge-directories]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 '("Directories..." . ediff-merge-directories))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 menu-bar-ediff-merge-menu [separator-ediff-merge-dirs] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 (define-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 menu-bar-ediff-merge-menu [ediff-merge-buffers-with-ancestor]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 '("Buffers with Ancestor..." . ediff-merge-buffers-with-ancestor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 (define-key menu-bar-ediff-merge-menu [ediff-merge-buffers]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 '("Buffers..." . ediff-merge-buffers))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (define-key menu-bar-ediff-merge-menu [ediff-merge-files-with-ancestor]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 '("Files with Ancestor..." . ediff-merge-files-with-ancestor))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 (define-key menu-bar-ediff-merge-menu [ediff-merge-files]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 '("Files..." . ediff-merge-files))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 ;; define epatch menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (define-key menu-bar-epatch-menu [ediff-doc3]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 '("Ediff Manual..." . ediff-documentation))
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
235 (define-key menu-bar-epatch-menu [emultiframe3]
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
236 '("Toggle separate control buffer frame..."
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
237 . ediff-toggle-multiframe))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 (define-key menu-bar-epatch-menu [eregistry3]
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
239 '("List Ediff Sessions..." . ediff-show-registry))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 (define-key menu-bar-epatch-menu [separator-epatch] '("--"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 (define-key menu-bar-epatch-menu [ediff-patch-buffer]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 '("To a Buffer..." . ediff-patch-buffer))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 (define-key menu-bar-epatch-menu [ediff-patch-file]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 '("To a File..." . ediff-patch-file)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ) ; cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ;; arrange for autoloads
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 (if purify-flag
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 () ; if dumping, autoloads are set up in loaddefs.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ;; if the user decides to load this file, set up autoloads
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ;; compare files and buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 (autoload 'ediff "ediff" "Compare two files" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (autoload 'ediff-files "ediff" "Compare two files" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 (autoload 'ediff-buffers "ediff" "Compare two bufers" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (autoload 'ebuffers "ediff" "Compare two bufers" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (autoload 'ediff3 "ediff" "Compare three files" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 (autoload 'ediff-files3 "ediff" "Compare three files" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 (autoload 'ediff-buffers3 "ediff" "Compare three bufers" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 (autoload 'ebuffers3 "ediff" "Compare three bufers" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (autoload 'ediff-revision "ediff" "Compare versions of a file" t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 ;; compare regions and windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 (autoload 'ediff-windows-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 "ediff" "Compare two windows word-by-word." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (autoload 'ediff-regions-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 "ediff" "Compare two regions word-by-word." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 (autoload 'ediff-windows-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 "ediff" "Compare two windows line-by-line." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 (autoload 'ediff-regions-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 "ediff" "Compare two regions line-by-line." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 ;; patch
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 (autoload 'ediff-patch-file "ediff" "Patch a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 (autoload 'epatch "ediff" "Patch a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 (autoload 'ediff-patch-buffer "ediff" "Patch a buffer.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 (autoload 'epatch-buffer "ediff" "Patch a buffer." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 ;; merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 (autoload 'ediff-merge "ediff" "Merge two files." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 (autoload 'ediff-merge-files "ediff" "Merge two files." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 (autoload 'ediff-merge-files-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 "ediff" "Merge two files using a third file as an ancestor." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 (autoload 'ediff-merge-buffers "ediff" "Merge two buffers." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 (autoload 'ediff-merge-buffers-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 "ediff" "Merge two buffers using a third buffer as an ancestor." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 (autoload 'ediff-merge-revisions "ediff" "Merge two versions of a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 (autoload 'ediff-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 "ediff" "Merge two versions of a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 ;; compare directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 (autoload 'edirs "ediff" "Compare files in two directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 (autoload 'ediff-directories "ediff" "Compare files in two directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 (autoload 'edirs3 "ediff" "Compare files in three directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 (autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 'ediff-directories3 "ediff" "Compare files in three directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 (autoload 'edir-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 "ediff" "Compare two versions of a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 (autoload 'ediff-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 "ediff" "Compare two versions of a file." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 ;; merge directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 (autoload 'edirs-merge "ediff" "Merge files in two directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 (autoload 'ediff-merge-directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308 "ediff" "Merge files in two directories." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 (autoload 'edirs-merge-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 "Merge files in two directories using files in a third dir as ancestors."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 (autoload 'ediff-merge-directories-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 "Merge files in two directories using files in a third dir as ancestors."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 (autoload 'edir-merge-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 "ediff" "Merge versions of files in a directory." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 (autoload 'ediff-merge-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 "ediff" "Merge versions of files in a directory." t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 (autoload 'ediff-merge-directory-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 "Merge versions of files in a directory using other versions as ancestors."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 (autoload 'edir-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 "Merge versions of files in a directory using other versions as ancestors."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 ;; misc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 (autoload 'ediff-show-registry
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
333 "ediff-mult"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 "Display the registry of active Ediff sessions."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 (autoload 'ediff-documentation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 "Display Ediff's manual."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 (autoload 'ediff-version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 "ediff"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 "Show Ediff's version and last modification date."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 t)
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
344 (autoload 'ediff-toggle-multiframe
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
345 "ediff-util"
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
346 "Toggle the use of separate frame for Ediff control buffer."
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
347 t)
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
348 (condition-case nil
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
349 (if (string-match "XEmacs" emacs-version)
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
350 (autoload 'ediff-toggle-use-toolbar
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
351 "ediff-tbar"
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
352 "Toggle the use of Ediff toolbar."
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
353 t))
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
354 (error))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 ) ; if purify-flag
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 (provide 'ediff-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 ;;; ediff-hook.el ends here