annotate man/ediff.texi @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
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 \input texinfo @c -*-texinfo-*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @c documentation for Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @c Written by Michael Kifer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 @comment %**start of header (This is for running Texinfo on a region.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 @comment Using ediff.info instead of ediff in setfilename breaks DOS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 @setfilename ../info/ediff.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 @comment @setfilename ediff.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 @settitle Ediff User's Manual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 @synindex vr cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 @synindex fn cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 @synindex pg cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 @iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 @finalout
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 @end iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 @c @smallbook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 @comment %**end of header (This is for running Texinfo on a region.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 @ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 This file documents Ediff, a comprehensive visual interface to Unix diff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 and patch utilities.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 Permission is granted to make and distribute verbatim copies of this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 manual provided the copyright notice and this permission notice are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 @ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 Permission is granted to process this file through TeX and print the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 results, provided the printed document carries copying permission notice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 identical to this one except for the removal of this paragraph (this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 paragraph not being relevant to the printed manual).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 @end ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 @end ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 @titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 @title Ediff User's Manual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 @sp 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 @subtitle Ediff version 2.61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 @sp 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 @subtitle June 1996
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 @sp 5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 @author Michael Kifer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @page
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 @vskip 0pt plus 1filll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 Copyright @copyright{} 1995, 1996 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 Permission is granted to make and distribute verbatim copies of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 this manual provided the copyright notice and this permission notice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 are preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 @end titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @page
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 @end iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 @node Top, Introduction, (dir), (dir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 * Introduction:: About Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 * Major Entry Points:: How to use Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 * Commands:: Ediff commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 * Registry of Ediff Sessions:: Keeping track of multiple Ediff sessions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 * Session Groups:: Comparing and merging directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 * Remote and Compressed Files:: You may want to know about this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 * Customization:: How to make Ediff work the way YOU want.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 * Credits:: Thanks to those who helped.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 * Index::
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 @node Introduction, Major Entry Points, Top, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 @chapter Introduction
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 @cindex Comparing files and buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @cindex Merging files and buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 @cindex Patching files and buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 @cindex Finding differences
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 Ediff provides a convenient way for simultaneous browsing through
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 the differences between a pair (or a triple) of files or buffers. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 files being compared, file-A, file-B, and file-C (if applicable) are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 shown in separate windows (side by side, one above the another, or in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 separate frames), and the differences are highlighted as you step
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 through them. You can also copy difference regions from one buffer to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 another (and recover old differences if you change your mind).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 Another powerful feature is the ability to merge a pair of files into a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 third buffer. Merging with an ancestor file is also supported.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 Furthermore, Ediff is equipped with directory-level capabilities that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 allow the user to conveniently launch browsing or merging sessions on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 groups of files in two (or three) different directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 In addition, Ediff can apply a patch to a file and then let you step though
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 both files, the patched and the original one, simultaneously,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 difference-by-difference. You can even apply a patch right out of a mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 buffer, i.e., patches received by mail don't even have to be saved. Since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 Ediff lets you copy differences between buffers, you can, in effect, apply
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 patches selectively (i.e., you can copy a difference region from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 @file{file_orig} to @file{file}, thereby undoing any particular patch that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 you don't like).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 Ediff even understands multi-file patches and can apply them interactively!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 (Ediff can recognize multi-file patches only if they are in the context or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 GNU unified format. All other patches are treated as 1-file patches. Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 is [hopefully] using the same algorithm as patch to determine which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 files need to be patched.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 Ediff is aware of version control, which lets you compare
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 files with their older versions. Ediff also works with remote and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 compressed files, automatically ftp'ing them over and uncompressing them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 @xref{Remote and Compressed Files}, for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 This package builds upon ideas borrowed from Emerge and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 several Ediff's functions are adaptations from Emerge.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 Although Ediff subsumes Emerge,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 much of the functionality of Ediff is influenced by Emerge.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 The architecture and the interface are, of course, drastically different.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 @node Major Entry Points, Commands, Introduction, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 @chapter Major Entry Points
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 Ediff can be invoked interactively using the following functions, which can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 be run either from the minibuffer or from the menu bar. In the menu bar,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 all Ediff's entry points belong to three submenus of the Tools menu:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 Compare, Merge, and Apply Patch.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 @item ediff-files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 @itemx ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @findex ediff-files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 @findex ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 Compare two files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 @item ediff-buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 @findex ediff-buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 Compare two buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 @item ediff-files3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 @itemx ediff3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @findex ediff-files3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 @findex ediff3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 Compare three files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 @item ediff-buffers3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 @findex ediff-buffers3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Compare three buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 @item edirs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @itemx ediff-directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 @findex edirs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 @findex ediff-directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 Compare files common to two directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 @item edirs3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 @itemx ediff-directories3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 @findex edirs3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 @findex ediff-directories3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 Compare files common to three directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @item edir-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @itemx ediff-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 @findex ediff-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 @findex edir-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 Compare versions of files in a given directory. Ediff selects only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 files that are under version control.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 @item edir-merge-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 @itemx ediff-merge-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @findex edir-merge-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 @findex ediff-merge-directory-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 Merge versions of files in a given directory. Ediff selects only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 files that are under version control.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 @item edir-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 @itemx ediff-merge-directory-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 @findex edir-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 @findex ediff-merge-directory-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 Merge versions of files in a given directory using other versions as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 ancestors. Ediff selects only the files that are under version control.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 @item ediff-windows-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 @findex ediff-windows-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 Compare windows word-by-word.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 @item ediff-windows-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 @findex ediff-windows-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 Compare windows line-by-line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 @item ediff-regions-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 @findex ediff-regions-wordwise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 Compare regions word-by-word.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 @item ediff-regions-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 @findex ediff-regions-linewise
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 Compare regions line-by-line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 @item ediff-revision
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @findex ediff-revision
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 Compare versions of the current buffer, if the buffer is visiting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 a file under version control.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 @item ediff-patch-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 @itemx epatch
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 @findex ediff-patch-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 @findex epatch
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 Patch a file, then compare.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 @item ediff-patch-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 @itemx epatch-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 @findex ediff-patch-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 Patch a buffer, then compare.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 @item ediff-merge-files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @itemx ediff-merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 @findex ediff-merge-files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 @findex ediff-merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 Merge two files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 @item ediff-merge-files-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 @itemx ediff-merge-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 @findex ediff-merge-files-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 @findex ediff-merge-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 Like @code{ediff-merge}, but with a third ancestor file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 @item ediff-merge-buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 @findex ediff-merge-buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 Merge two buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @item ediff-merge-buffers-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 @findex ediff-merge-buffers-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 Same but with ancestor.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 @item edirs-merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 @itemx ediff-merge-directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 @findex edirs-merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 @findex ediff-merge-directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 Merge files common to two directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 @item edirs-merge-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 @itemx ediff-merge-directories-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 @findex edirs-merge-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 @findex ediff-merge-directories-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 Same but using files in a third directory as ancestors.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 @item ediff-merge-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 @findex ediff-merge-revisions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 Merge two versions of the file visited by the current buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 @item ediff-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 @findex ediff-merge-revisions-with-ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 Same but with ancestor.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 If you want Ediff to be loaded from the very beginning of your Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 session, you should put this line in your @file{~/.emacs} file:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (require 'ediff)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 Otherwise, Ediff will be loaded automatically when you use one of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 above functions, either directly or through the menus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 When the above functions are invoked, they prompt the user for the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 information they need---typically the files or buffers to compare or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 patch. Ediff tries to be smart about these prompts. For instance, in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 comparing/merging files, it will offer the visible buffers as defaults. In
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 prompting for files, if the user enters a directory, the previously input
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 file name will be appended to that directory. In addition, if the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 @code{ediff-use-last-dir} is not @code{nil}, Ediff will offer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 previously entered directories as defaults (which will be maintained
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 separately for each type of file, A, B, or C).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 @vindex @code{ediff-use-last-dir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 All the above functions use the POSIX @code{diff} program to find
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 differences between two files. They process the @code{diff} output and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 display it in a convenient form. At present, Ediff understands only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 plain output from diff. Options such as @samp{-c} are not supported,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 nor is the format produced by incompatible file comparison programs such
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 as the VMS version of @code{diff}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 The functions @code{ediff-files}, @code{ediff-buffers},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 @code{ediff-files3}, @code{ediff-buffers3} first display the coarse,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 line-based difference regions, as reported by the @file{diff} program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 Since diff may report fairly large chunks of text as being different,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 even though the difference may be localized to just a few words or even
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 to the white space or line breaks, Ediff further @emph{refines} the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 regions to indicate which exact words differ. If the only difference is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 in the white space and line breaks, Ediff says so.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 On a color display, fine differences are highlighted with color; on a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 monochrome display, they are underlined. @xref{Highlighting Difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 Regions}, for information on how to customize this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 The functions @code{ediff-windows-wordwise},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 @code{ediff-windows-linewise}, @code{ediff-regions-wordwise} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 @code{ediff-regions-linewise} do comparison on parts of existing Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 buffers. Since @code{ediff-windows-wordwise} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 @code{ediff-regions-wordwise} are intended for relatively small segments
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 of buffers, comparison is done on the basis of words rather than lines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 No refinement is necessary in this case. These commands are recommended
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 only for relatively small regions (perhaps, up to 100 lines), because
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 these functions have a relatively slow startup.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 To compare large regions, use @code{ediff-regions-linewise}. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 command displays differences much like @code{ediff-files} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 @code{ediff-buffers}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 The functions @code{ediff-patch-file} and @code{ediff-patch-buffer} apply a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 patch to a file or a buffer and then run Ediff on these buffers, displaying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 the difference regions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 The entry points @code{ediff-directories}, @code{ediff-merge-directories},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 etc., provide a convenient interface for comparing and merging files in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 different directories. The user is presented with Dired-like interface from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 which one can run a group of related Ediff sessions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 For files under version control, @code{ediff-revisions} lets you compare
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 the file visited by the current buffer to one of its checked-in versions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 You can also compare two checked-in versions of the visited file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 Moreover, the functions @code{ediff-directory-revisions},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 @code{ediff-merge-directory-revisions}, etc., let you run a group of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 related Ediff sessions by taking a directory and comparing (or merging)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 versions of files in that directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 @node Commands, Registry of Ediff Sessions, Major Entry Points, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 @chapter Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 All Ediff commands are displayed in a quick
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 help window, unless you type @kbd{?} to shrink the window to just one line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 You can redisplay the help window by typing @kbd{?} again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 In this section
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 we comment only on the features that cannot be readily deduced from the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 quick help window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 You can always type @kbd{E} in the control window to display this manual.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 Many Ediff commands take numeric prefix arguments. For instance, if you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 type a number, say 3, and then @kbd{j} (@code{ediff-jump-to-difference}), Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 moves to the third difference region. Typing 3 and then @kbd{a}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 (@code{ediff-diff-to-diff}) copies the 3d difference region from buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 A to buffer B. Typing @kbd{b} does copying in the opposite
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 direction. (In 3-way comparison mode, the commands for copying are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 @kbd{ab}, @kbd{ba}, @kbd{ca}, etc.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 Likewise, 4 followed by @kbd{ra}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 restores the 4th difference region in buffer A (if it was previously
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 saved as a result of copying from, say, buffer B to A).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 Some commands take negative prefix arguments as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 For instance, typing @kbd{-} and then @kbd{j} will take Ediff to the last
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 difference. Typing @kbd{-2} then @kbd{j} takes Ediff to to the penultimate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 difference region, etc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 Without the prefix argument, all commands operate on the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 selected difference region. You can select any difference region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 as the current one using other Ediff commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 For some commands, the value of the prefix argument is immaterial. However,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 if supplied, the prefix argument modifies the command. For instance,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 normally the commands @kbd{ga}/@kbd{gb}/@kbd{gc}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 (@code{ediff-jump-to-difference-at-point}) causes Ediff to jump to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 difference region that is closest to the point in a specified buffer (the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 buffer, A, B, or C, is specified by the last character of the command,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 i.e., for @code{gb}, the specified buffer is B).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 However, with a prefix argument, Ediff would position all these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 buffers around the area indicated by the current point in the specified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 buffer: if the point is inside a difference region, then the buffers will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 be positioned at this difference region. If the point is not in any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 difference region, then it is in an area where all buffers agree with each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 other. In this case, all buffers will be positioned so that they would
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 display this area.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 The total number of differences and the current difference number are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373 always displayed in the mode line of the control window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 If, after making changes to buffers A, B, or C, you decide to save them, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 is best to use @code{ediff-save-buffer}, which is bound to @kbd{wa},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377 @kbd{wb}, and @kbd{wc} (@kbd{wa} will save buffer A, @kbd{wb} saves buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 B, etc.).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 Typing @kbd{wd} saves the output from the @code{diff} utility to a file, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 you can later refer to it. With prefix argument, this command saves the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 plain output from @file{diff} (see @code{ediff-diff-program} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 @code{ediff-diff-options}). Without the argument, it saves customized
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 @file{diff} output (see @code{ediff-custom-diff-program} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 @code{ediff-custom-diff-options}), if it is available.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 Instead of saving it, @file{diff} output can be @emph{displayed} using the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 command @kbd{D}. Without the prefix argument, it displays the customized
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 @file{diff} output of the session. With the prefix argument, it displays
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 the plain @file{diff} output If either of the @file{diff} outputs is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 unavailable (because it wasn't generated or the user killed the respective
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 buffer), then Ediff will try to display the other @file{diff} output. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 none is available, a warning is issued.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 The command @kbd{z} suspends the current ediff session. It hides the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 control buffer and the variants. The easiest way to resume a suspended
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 Ediff session is through the registry of active sessions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 @xref{Registry of Ediff Sessions}, for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 The command @kbd{q} quits the current Ediff session. With a prefix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 argument, it will ask the user whether to delete the variant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 The command @kbd{s} is used only for merging. It shrinks window C (the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 merge window) to its minimal size, thereby exposing as much of buffers A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 and B as possible. This command is intended only for temporary viewing;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 therefore, Ediff restores window C to its original size whenever it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 makes any other change in the window configuration. Typing @kbd{s}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 again also restores the original size of window C. However, recentering and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 jumping to a difference does not affect window C's size.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 With a positive prefix argument, the command @kbd{s} makes the merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 window, window C, slightly taller. With @kbd{-} or a negative prefix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 argument, @kbd{s} makes window C slightly shorter.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 Another command used only for merging is @kbd{+}. Its effect is to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 combine the current difference regions of buffers A and B and put the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 combination into the merge buffer. @xref{Merging and diff3}, specifically,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 the variables @code{ediff-combine-diffs} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 @code{ediff-combination-pattern}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 In merge mode, Ediff uses a default variant (one of the two files being
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 merged) when it cannot decide which of the difference regions (that of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 buffer A or buffer B) should be copied into the merge buffer. You might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 decide to use the other variant instead. To facilitate this, Ediff has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 a command, bound to @kbd{&}, which selects another default variant for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 the current difference and subsequent differences. You can specify as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 the new default any of @samp{default-A}, @samp{default-B}, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 @samp{combined}. @xref{Merging and diff3}, for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 Such repeated merging affects only difference regions that have
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 default-A/B status, and only if they were not changed with respect to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 their originals.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 Some commands are not bound to any key:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 @item eregistry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 @itemx ediff-show-registry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 @findex eregistry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 @findex ediff-show-registry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 This command brings up the registry of active Ediff sessions. Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 registry is a useful device that can be used for resuming Ediff sessions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 when the user switched to some other work before finishing a comparison or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 merging job. It is also useful for switching between multiple active Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446 sessions that are run at the same time. The function @code{eregistry} is an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 alias for @code{ediff-show-registry}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 @item ediff-toggle-multiframe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 @findex ediff-toggle-multiframe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450 Changes the display from the multi-frame mode (where the quick help window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 is in a separate frame) to the single-frame mode (where all Ediff buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 share the same frame), and vice versa.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 @item ediff-revert-buffers-then-recompute-diffs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 @findex ediff-revert-buffers-then-recompute-diffs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 This command reverts the buffers you are comparing and recomputes their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 differences. It is useful when, after making changes, you decided to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 make a fresh start, or if at some point you changed the files being
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 compared but want to discard any changes to comparison buffers that were
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 done since then.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 This command normally asks for confirmation before reverting files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 With a prefix argument, it reverts files without asking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 @item ediff-profile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 @findex ediff-profile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 Ediff has an admittedly primitive (but useful) facility for profiling
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 Ediff's commands. It is meant for Ediff maintenance---specifically, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469 making it run faster. The function @code{ediff-profile} toggles
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 profiling of ediff commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 @node Registry of Ediff Sessions, Session Groups, Commands, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 @chapter Registry of Ediff Sessions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 Ediff maintains a registry of all its invocations that are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 still @emph{active}. This feature is very convenient for switching among
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 active Ediff sessions or for quickly restarting a suspended Ediff session.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 The focal point of this activity is a buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 called @emph{*Ediff Registry*}. You can display this buffer by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 @kbd{R} in any Ediff Control Buffer or Session Group Buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 (@pxref{Session Groups}), or by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 @kbd{M-x eregistry} into the Minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 The latter would be the fastest way to bring up the registry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 buffer if no control or group buffer is displayed in any of the visible
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 Emacs windows.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 If you are in a habit of running multiple long Ediff sessions and often need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 suspend, resume, or switch between them, it may be a good idea to have the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 registry buffer permanently displayed in a separate, dedicated window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 The registry buffer has several convenient key bindings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 For instance, clicking mouse button 2 or typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 @kbd{RET} or @kbd{v} over any session record resumes that session.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 Session records in the registry buffer provide a fairly complete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 description of each session, so it is usually easy to identify the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497 session to resume.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 Other useful commands are bound to @kbd{SPC} (next registry record)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 and @kbd{DEL} (previous registry record). There are other commands as well,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 but you don't need to memorize them, since they are listed at the top of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 the registry buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 @node Session Groups, Remote and Compressed Files, Registry of Ediff Sessions, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 @chapter Session Groups
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 Several major entries of Ediff perform comparison and merging on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 directories. On entering @code{ediff-directories},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 @code{ediff-directories3},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 @code{ediff-merge-directories},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511 @code{ediff-merge-directories-with-ancestor},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 @code{ediff-directory-revisions},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 @code{ediff-merge-directory-revisions}, or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 @code{ediff-merge-directory-revisions-with-ancestor},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 the user is presented with a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 Dired-like buffer that lists files common to the directories involved along
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 with their sizes. (The list of common files can be further filtered through
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 a regular expression, which the user is prompted for.) We call this buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 @emph{Session Group Panel} because all Ediff sessions associated with the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 listed files will have this buffer as a common focal point.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 Clicking button 2 or typing @kbd{RET} or @kbd{v} over a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 record describing files invokes Ediff in the appropriate mode on these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 files. You can come back to the session group buffer associated with a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525 particular invocation of Ediff by typing @kbd{M} in Ediff control buffer of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 that invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 Many commands are available in the session group buffer; some are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 applicable only for certain types of work. The relevant commands are always
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 listed at the top of each session group buffer, so there is no need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 memorize them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533 In directory comparison or merging, a session group panel displays only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 files common to all directories involved. The differences are kept in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 separate buffer and are conveniently displayed by typing @kbd{D} to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 corresponding session group panel. Thus, as an added benefit, Ediff can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537 used to compare the contents of up to three directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 Session records in session group panels are also marked with @kbd{+}, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 active sessions, and with @kbd{-}, for finished sessions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542 Sometimes, it is convenient to exclude certain session records from a group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 Usually this happens when the user doesn't intend to run Ediff of certain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 files in the group, and the corresponding session records just add clutter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 to the session group buffer. To help alleviate this problem, the user can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 type @kbd{h} to mark a session as a candidate for exclusion and @kbd{x} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 actually hide the marked sessions. There actions are reversible: with a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 prefix argument, @kbd{h} unmarks the session under the cursor, and @kbd{x}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 brings the hidden sessions into the view (@kbd{x} doesn't unmark them,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 though, so the user has to explicitly unmark the sessions of interest).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 Group sessions also understand the command @kbd{m}, which marks sessions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 for future operations (other than hiding) on a group of sessions. At present,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 the only such group-level operation is the creation of a multi-file patch.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 @cindex Multi-file patches
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 A multi-file patch is a concatenated output of several runs of the Unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 @file{diff} command (some versions of @file{diff} let you create a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 multi-file patch in just one run). In a session group buffer created in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 response to @code{ediff-directories} or @code{ediff-directory-revisions},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 the user can type @kbd{P} to create a multi-file patch of marked sessions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 (which must be marked using the @kbd{m} command). Ediff then will display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 a buffer containing the patch. In an @code{ediff-directories} session, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564 is enough to just mark the requisite sessions. In
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 @code{ediff-directory-revisions} revisions, the marked sessions must also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 be active, or else Ediff will refuse to produce a multi-file patch. This is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567 because, in the latter-style sessions, there are many ways to create diff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 output, and it is easier to handle by running Ediff on the inactive
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 sessions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 @node Remote and Compressed Files, Customization, Session Groups, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 @chapter Remote and Compressed Files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 Ediff works with remote, compressed, and encrypted files. Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 supports @file{ange-ftp.el}, @file{jka-compr.el}, @file{uncompress.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 and @file{crypt++.el}, but it may work with other similar packages as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578 well. This means that you can compare files residing on another
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 machine, or you can apply a patch to a file on another machine. Even
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 the patch itself can be a remote file!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 When patching compressed or remote files, Ediff does not rename the source
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 file (unlike what the @code{patch} utility would usually do). Instead, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 source file retains its name and the result of applying the patch is placed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585 in a temporary file that has the suffix @file{_patched} attached.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 Generally, this applies to files that are handled using black magic, such
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 as special file handlers (ange-ftp and some compression and encryption
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 packages all use this method).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 Regular files are treated by the @code{patch} utility in the usual manner,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 i.e., the original is renamed into @file{source-name.orig} and the result
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 of the patch is placed into the file source-name. (Ediff @file{_orig}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 on systems like VMS, DOS, etc.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 @node Customization, Credits, Remote and Compressed Files, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 @chapter Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 Ediff has a rather self-explanatory interface, and in most cases you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 won't need to change anything. However, should the need arise, there are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 extensive facilities to change the default behavior.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 Most of the customization can be done by setting various variables in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 @file{.emacs} file. Some customization (mostly window-related
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 customization and faces) can be done by putting appropriate lines in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 @file{.Xdefaults}, @file{.xrdb}, or whatever X resource file is in use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 With respect to the latter, please note that the X resource
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 for Ediff customization is `Ediff', @emph{not} `emacs'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 @xref{Window and Frame Configuration},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 @xref{Highlighting Difference Regions}, for further details. Please also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 refer to Emacs manual for the information on how to set Emacs X resources.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 * Hooks:: Customization via the hooks.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 * Quick Help:: How to customize Ediff's quick help feature.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 * Window and Frame Configuration:: Controlling the way Ediff displays things.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617 * Selective Browsing:: Advanced browsing through difference regions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 * Highlighting Difference Regions:: Controlling highlighting.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 * Narrowing:: Comparing regions, windows, etc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 * Refinement of Difference Regions:: How to control the refinement process.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 * Patch and Diff Programs:: Changing the utilities that compute differences
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 and apply patches.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 * Merging and diff3:: How to customize Ediff in its Merge Mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 * Support for Version Control:: Changing the version control package.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 You are not likely to do that.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 * Customizing the Mode Line:: Changing the look of the mode line in Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 * Miscellaneous:: Other customization.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 * Notes on Heavy-duty Customization:: Customization for the gurus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 @node Hooks, Quick Help, Customization, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 @section Hooks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 The bulk of customization can be done via the following hooks:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 @item ediff-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 @vindex ediff-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 This hook can be used to change defaults after Ediff is loaded.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 @item ediff-keymap-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 @vindex ediff-keymap-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 This hook can be used to alter bindings in Ediff's keymap. These hooks are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 run right after the default bindings are set but before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 @code{ediff-load-hook}. The regular user needs not be concerned with this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 hook---it is provided for implementors of other Emacs packages built on top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 of Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 @item ediff-before-setup-windows-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 @itemx ediff-after-setup-windows-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 @vindex ediff-before-setup-windows-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 @vindex ediff-after-setup-windows-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 These two hooks are called before and after Ediff sets up its window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 configuration. Can be used to save the configuration that existed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 before Ediff starts or for whatever other purposes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 @item ediff-suspend-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 @itemx ediff-quit-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 @vindex ediff-suspend-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 @vindex ediff-quit-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 These two hooks are run when you suspend or quit Ediff. They can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 used to set desired window configurations, delete files Ediff didn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 want to clean up after exiting, etc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 By default, @code{ediff-quit-hook} holds one hook function,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 @code{ediff-cleanup-mess}, which cleans after Ediff, as appropriate in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 most cases. You probably won't want to change it, but you might
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 want to add other hook functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 Keep in mind that hooks executing before @code{ediff-cleanup-mess} start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 in @code{ediff-control-buffer;} they should also leave
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 @code{ediff-control-buffer} as the current buffer when they finish.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 Hooks that are executed after @code{ediff-cleanup-mess} should expect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 the current buffer be either buffer A or buffer B.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 @code{ediff-cleanup-mess} doesn't kill the buffers being compared or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 merged (see @code{ediff-cleanup-hook}, below).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 @item ediff-cleanup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 @vindex ediff-cleanup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 This hook is run just before @code{ediff-quit-hook}. This is a good
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 place to do various cleanups, such as deleting the variant buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 Ediff provides a function, @code{ediff-janitor}, as one such possible
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 hook, which you can add to @code{ediff-cleanup-hook} with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 @code{add-hooks}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 @findex ediff-janitor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 This function kills buffers A, B, and, possibly, C, if these buffers aren't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 modified. In merge jobs, buffer C is never deleted. However, the side
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 effect of using this function is that you may not be able to compare the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 same buffer in two separate Ediff sessions: quitting one of them will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 delete this buffer in another session as well.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 @item ediff-before-setup-control-frame-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 @itemx ediff-after-setup-control-frame-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 @vindex ediff-before-setup-control-frame-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 @vindex ediff-after-setup-control-frame-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 These two hooks run before and after Ediff sets up the control frame.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 They can be used to relocate Ediff control frame when Ediff runs in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 multiframe mode (i.e., when the control buffer is in its own dedicated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 frame). Be aware that many variables that drive Ediff are local to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 Ediff Control Panel (@code{ediff-control-buffer}), which requires
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 special care in writing these hooks. Take a look at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 @code{ediff-default-suspend-hook} and @code{ediff-default-quit-hook} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 see what's involved.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 @item ediff-startup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 @vindex ediff-startup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 This hook is run at the end of Ediff startup.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 @item ediff-select-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 @vindex ediff-select-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 This hook is run after Ediff selects the next difference region.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 @item ediff-unselect-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 @vindex ediff-unselect-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 This hook is run after Ediff unselects the current difference region.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 @item ediff-prepare-buffer-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 @vindex ediff-prepare-buffer-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 This hook is run for each Ediff buffer (A, B, C) right after the buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 is arranged.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 @item ediff-display-help-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 @vindex ediff-display-help-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 Ediff runs this hook each time after setting up the help message. It
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 can be used to alter the help message for custom packages that run on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 top of Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 @item ediff-mode-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 @vindex ediff-mode-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 This hook is run just after Ediff mode is set up in the control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 buffer. This is done before any Ediff window is created. You can use it to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 set local variables that alter the look of the display.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 @item ediff-registry-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 @vindex ediff-registry-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 Hooks run after setting up the registry for all active Ediff session.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 @xref{Session Groups}, for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 @item ediff-session-group-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 @vindex ediff-session-group-setup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 Hooks run after setting up a control panel for a group of related Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 sessions. @xref{Session Groups}, for details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 @node Quick Help, Window and Frame Configuration, Hooks, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 @section Quick Help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747 @vindex ediff-use-long-help-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 @vindex ediff-control-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 @vindex ediff-startup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 @vindex ediff-help-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 Ediff provides quick help using its control panel window. Since this window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 takes a fair share of the screen real estate, you can toggle it off by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 typing @kbd{?}. The control window will then shrink to just one line and a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 mode line, displaying a short help message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 The variable @code{ediff-use-long-help-message} tells Ediff whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 you use the short message or the long one. By default, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 is set to @code{nil}, meaning that the short message is used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 Set this to @code{t}, if you want Ediff to use the long
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 message by default. This property can always be changed interactively, by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 typing @kbd{?} into Ediff Control Buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 If you want to change the appearance of the help message on a per-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 basis, you must use @code{ediff-startup-hook} to change the value of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 the variable @code{ediff-help-message}, which is local to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 @code{ediff-control-buffer}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 @node Window and Frame Configuration, Selective Browsing, Quick Help, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 @section Window and Frame Configuration
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 On a non-windowing display, Ediff sets things up in one frame, splitting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 it between a small control window and the windows for buffers A, B, and C.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 The split between these windows can be horizontal or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 vertical, which can be changed interactively by typing @kbd{|} while the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 cursor is in the control window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 On a window display, Ediff sets up a dedicated frame for Ediff Control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 Panel and then it chooses windows as follows: If one of the buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 is invisible, it is displayed in the currently selected frame. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 a buffer is visible, it is displayed in the frame where it is visible.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 If, according to the above criteria, the two buffers fall into the same
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 frame, then so be it---the frame will be shared by the two. The same
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 algorithm works when you type @kbd{C-l} (@code{ediff-recenter}), @kbd{p}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 (@code{ediff-previous-difference}), @kbd{n}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 (@code{ediff-next-difference}), etc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 The above behavior also depends on whether the current frame is splittable,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 dedicated, etc. Unfortunately, the margin is too small to present this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 remarkable algorithm.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 The bottom line of all this is that you can compare buffers in one frame or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 in different frames. The former is done by default, while the latter can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 be achieved by arranging buffers A, B (and C, if applicable) to be seen in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 different frames. Ediff respects these arrangements, automatically
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 adapting itself to the multi-frame mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 Ediff uses the following variables to set up its control panel
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 (a.k.a. control buffer, a.k.a. quick help window):
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 @item ediff-control-frame-parameters
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 @vindex ediff-control-frame-parameters
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 You can change or augment this variable including the font, color,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 etc. The X resource name of Ediff Control Panel frames is @samp{Ediff}. Under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806 X-windows, you can use this name to set up preferences in your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 @file{~/.Xdefaults}, @file{~/.xrdb}, or whatever X resource file is in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 use. Usually this is preferable to changing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 @code{ediff-control-frame-parameters} directly. For instance, you can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 specify in @file{~/.Xdefaults} the color of the control frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 using the resource @samp{Ediff*background}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 In general, any X resource pertaining the control frame can be reached
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 via the prefix @code{Ediff*}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 @item ediff-control-frame-position-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 @vindex ediff-control-frame-position-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 The preferred way of specifying the position of the control frame is by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 setting the variable @code{ediff-control-frame-position-function} to an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 appropriate function.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 The default value of this variable is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 @code{ediff-make-frame-position}. This function places the control frame in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 the vicinity of the North-East corner of the frame displaying buffer A.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 @findex ediff-make-frame-position
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 The following variables can be used to adjust the location produced by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 @code{ediff-make-frame-position} and for related customization.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 @item ediff-narrow-control-frame-leftward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 @vindex ediff-narrow-control-frame-leftward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 Specifies the number of characters for shifting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 the control frame from the rightmost edge of frame A when the control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 frame is displayed as a small window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 @item ediff-wide-control-frame-rightward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 @vindex ediff-wide-control-frame-rightward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 Specifies the rightward shift of the control frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 from the left edge of frame A when the control frame shows the full
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 menu of options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 @item ediff-control-frame-upward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 @vindex ediff-control-frame-upward-shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 Specifies the number of pixels for the upward shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 of the control frame.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 @item ediff-prefer-iconified-control-frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 @vindex ediff-prefer-iconified-control-frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 If this variable is @code{t}, the control frame becomes iconified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 automatically when you toggle the quick help message off. This saves
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 valuable real estate on the screen. Toggling help back will deiconify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 the control frame.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 To start Ediff with an iconified Control Panel, you should set this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 variable to @code{t} and @code{ediff-prefer-long-help-message} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 @code{nil} (@pxref{Quick Help}). This behavior is useful only if the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 window manager is TWM or a derivative. Also, this doesn't work under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 XEmacs, since this editor ignores input from icons.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 @findex ediff-setup-windows
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 To make more creative changes in the way Ediff sets up windows, you can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 rewrite the function @code{ediff-setup-windows}. However, we believe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 that detaching Ediff Control Panel from the rest and making it into a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 separate frame offers an important opportunity by allowing you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 iconify that frame. Under Emacs, the icon will usually accept all of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 the Ediff commands, but will free up valuable real estate on your screen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 (this may depend on the window manager, though). Iconifying won't do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 any good under XEmacs since XEmacs icons are not sensitive to keyboard
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 input. The saving grace is that, even if not iconified, the control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 frame is very small, smaller than some icons, so it does not take much
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 space in any case.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 The following variable controls how windows are set up:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 @item ediff-window-setup-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 @vindex ediff-window-setup-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 The multiframe setup is done by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 @code{ediff-setup-windows-multiframe} function, which is the default on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 windowing displays. The plain setup, one where all windows are always
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 in one frame, is done by @code{ediff-setup-windows-plain}, which is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 default on a non-windowing display (or in an xterm window). In fact,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 under Emacs, you can switch freely between these two setups by executing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 the command @code{ediff-toggle-multiframe} using the Minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 @findex ediff-setup-windows-multiframe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889 @findex ediff-setup-windows-plain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 @findex ediff-toggle-multiframe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 If you don't like any of these setups, write your own function. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 documentation for @code{ediff-window-setup-function} for the basic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 guidelines. However, writing window setups is not easy, so you should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 first take a close look at @code{ediff-setup-windows-plain} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 @code{ediff-setup-windows-multiframe}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 You can run multiple Ediff sessions at once, by invoking Ediff several
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 times without exiting previous Ediff sessions. Different sessions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 may even operate on the same pair of files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 Each session has its own Ediff Control Panel and all the regarding a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 particular session is local to the associated control panel buffer. You
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 can switch between sessions by suspending one session and then switching
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 to another control panel. (Different control panel buffers are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 distinguished by a numerical suffix, e.g., @samp{Ediff Control Panel<3>}.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 @node Selective Browsing, Highlighting Difference Regions, Window and Frame Configuration, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 @section Selective Browsing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 Sometimes it is convenient to be able to step through only some difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 regions, those that satisfy certain regular expressions, and to ignore all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 others. On other occasions, you may want to ignore difference regions that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 satisfy some regular expressions, and to look only at the rest.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 The commands @kbd{#f} and @kbd{#h} let you do precisely this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 Typing @kbd{#f} lets you specify regular expressions that match difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 regions you want to focus on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 We shall call these regular expressions @var{regexp-A}, @var{regexp-B} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 @var{regexp-C}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 Ediff will then start stepping through only those difference regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 where the region in buffer A matches @var{regexp-A} and/or the region in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 buffer B matches @var{regexp-B}, etc. Whether `and' or `or' will be used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 depends on how you respond to a question.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 When scanning difference regions for the aforesaid regular expressions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 Ediff narrows the buffers to those regions. This means that you can use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 the expressions @kbd{\`} and @kbd{\'} to tie search to the beginning or end
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931 of the difference regions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 On the other hand, typing @kbd{#h} lets you specify (hide) uninteresting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 regions. That is, if a difference region in buffer A matches
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 @var{regexp-A}, the corresponding region in buffer B matches @var{regexp-B}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 and (if applicable) buffer-C's region matches @var{regexp-C}, then the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 region will be ignored by the commands @kbd{n}/@key{SPC}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 (@code{ediff-next-difference}) and @kbd{p}/@key{DEL}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 (@code{ediff-previous-difference}) commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 Typing @kbd{#f} and @kbd{#h} toggles selective browsing on and off.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 Note that selective browsing affects only @code{ediff-next-difference}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 and @code{ediff-previous-difference}, i.e., the commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945 @kbd{n}/@key{SPC} and @kbd{p}/@key{DEL}. @kbd{#f} and @kbd{#h} do not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 change the position of the point in the buffers. And you can still jump
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 directly (using @kbd{j}) to any numbered
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 difference.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 Users can supply their own functions to specify how Ediff should do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951 selective browsing. To change the default Ediff function, add a function to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 @code{ediff-load-hook} which will do the following assignments:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955 (setq ediff-hide-regexp-matches-function 'your-hide-function)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 (setq ediff-focus-on-regexp-matches-function 'your-focus-function)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 @strong{Useful hint}: To specify a regexp that matches everything, don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 simply type @key{RET} in response to a prompt. Typing @key{RET} tells Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 to accept the default value, which may not be what you want. Instead, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 should enter something like @key{^} or @key{$}. These match every
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963 line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 You can use the status command, @kbd{i}, to find out whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966 selective browsing is currently in use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 The regular expressions you specified are kept in the local variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 @code{ediff-regexp-focus-A}, @code{ediff-regexp-focus-B},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970 @code{ediff-regexp-focus-C}, @code{ediff-regexp-hide-A},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 @code{ediff-regexp-hide-B}, @code{ediff-regexp-hide-C}. Their default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 is the empty string (i.e., nothing is hidden or focused on). To change the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973 default, set these variables in @file{.emacs} using @code{setq-default}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 In addition to the ability to ignore regions that match regular
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 expressions, Ediff can be ordered to start skipping over certain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 ``inessential'' regions. This is controlled by the following variable:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 @item ediff-ignore-similar-regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981 @vindex ediff-ignore-similar-regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
982 If @code{t}, causes Ediff to skip over difference regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 that deemed inessential, i.e., where the only differences are those
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 in the white space and newlines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 @strong{Note:} In order for this feature to work, auto-refining of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 difference regions must be on, since otherwise Ediff won't know if there
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 are fine differences between regions. On devices where Emacs can display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 faces, auto-refining is a default, but it is not turned on by default on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 text-only terminals. In that case, you must explicitly turn auto-refining
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992 on (such as, by typing @kbd{@@}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 @strong{Reassurance:} If many inessential regions appear in a row, Ediff may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 take a long time to jump to the next region because it has to compute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 fine differences of all intermediate regions. This delay does not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 indicate any problem.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 @node Highlighting Difference Regions, Narrowing, Selective Browsing, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000 @section Highlighting Difference Regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 The following variables control the way Ediff highlights difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 regions:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006 @item ediff-before-flag-bol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1007 @itemx ediff-after-flag-eol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008 @itemx ediff-before-flag-mol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1009 @itemx ediff-after-flag-mol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1010 @vindex ediff-before-flag-bol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011 @vindex ediff-after-flag-eol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1012 @vindex ediff-before-flag-mol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013 @vindex ediff-after-flag-mol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 These variables hold strings that Ediff uses to mark the beginning and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1015 end of the differences found in files A, B, and C on devices where Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1016 cannot display faces. Ediff uses different flags to highlight regions that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1017 begin/end at the beginning/end of a line or in a middle of a line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1018
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1019 @item ediff-current-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1020 @itemx ediff-current-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1021 @itemx ediff-current-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1022 @vindex ediff-current-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1023 @vindex ediff-current-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1024 @vindex ediff-current-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1025 Ediff uses these faces to highlight current differences on devices where
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1026 Emacs can display faces. These and subsequently described faces can be set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1027 either in @file{.emacs} or in @file{.Xdefaults}. The X resource for Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1028 is @samp{Ediff}, @emph{not} @samp{emacs}. Please refer to Emacs manual for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1029 the information on how to set X resources.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1030 @item ediff-fine-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031 @itemx ediff-fine-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 @itemx ediff-fine-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033 @vindex ediff-fine-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 @vindex ediff-fine-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 @vindex ediff-fine-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036 Ediff uses these faces to show the fine differences between the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 differences regions in buffers A, B, and C, respectively.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 @item ediff-even-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 @itemx ediff-even-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 @itemx ediff-even-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 @itemx ediff-odd-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 @itemx ediff-odd-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 @itemx ediff-odd-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 @vindex ediff-even-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 @vindex ediff-even-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 @vindex ediff-even-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 @vindex ediff-odd-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 @vindex ediff-odd-diff-face-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 @vindex ediff-odd-diff-face-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051 Non-current difference regions are displayed using these alternating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 faces. The odd and the even faces are actually identical on monochrome
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053 displays, because without colors options are limited.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 So, Ediff uses italics to highlight non-current differences.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1055
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056 @item ediff-force-faces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 @vindex ediff-force-faces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1058 Ediff generally can detect when Emacs is running on a device where it can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1059 use highlighting with faces. However, if it fails to determine that faces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060 can be used, the user can set this variable to @code{t} to make sure that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 Ediff uses faces to highlight differences.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1062
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063 @item ediff-highlight-all-diffs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 @vindex ediff-highlight-all-diffs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1065 Indicates whether---on a window system---Ediff should highlight differences
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066 using inserted strings (as on a text-only terminal) or using colors and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 highlighting. Normally, Ediff highlights all differences, but the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1068 selected difference is highlighted more visibly. One can cycle through
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1069 various modes of highlighting by typing @kbd{h}. By default, Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1070 starts in the mode where all difference regions are highlighted. If you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071 prefer to start in the mode where unselected differences are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 highlighted, you should set @code{ediff-highlight-all-diffs} to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 @code{nil}. Type @kbd{h} to restore highlighting of all differences.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 Ediff lets you switch between the two modes of highlighting. That is,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 you can switch interactively from highlighting using faces to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1077 highlighting using string flags, and back. Of course, switching has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1078 effect only under a windowing system. On a text-only terminal or in an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 xterm window, the only available option is highlighting with strings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1083 If you want to change the above variables, you must do it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 @strong{before} Ediff is loaded.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 There are two ways to change the default setting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 for highlighting faces: either change the variables, as shown here,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 (setq ediff-current-diff-face-A 'bold-italic)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1091 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1094 or here,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1095
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1096 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1097 (setq ediff-current-diff-face-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 (copy-face 'bold-italic 'ediff-current-diff-face-A))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1099 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1101 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1102 or modify the defaults selectively:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1104 @smallexample
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1105 (add-hook 'ediff-load-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1106 (function (lambda ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1107 (set-face-foreground
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1108 ediff-current-diff-face-B "blue")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1109 (set-face-background
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1110 ediff-current-diff-face-B "red")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1111 (make-face-italic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1112 ediff-current-diff-face-B))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1113 @end smallexample
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1115 You may also want to take a look at how the above faces are defined in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1116 source code of Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1118 @strong{Note:} it is not recommended to use @code{internal-get-face} (or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1119 @code{get-face} in XEmacs) when defining Ediff's faces, since this may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1120 cause problems when there are several frames with different font sizes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1121 Instead, use @code{copy-face} or @code{set/make-face-@dots{}} as shown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1122 above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1124 @node Narrowing, Refinement of Difference Regions, Highlighting Difference Regions, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1125 @section Narrowing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1127 If buffers being compared are narrowed at the time of invocation of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1128 Ediff, @code{ediff-buffers} will preserve the narrowing range. However,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1129 if @code{ediff-files} is invoked on the files visited by these buffers,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1130 that widens the buffers, since this command is defined to compare the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131 entire files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1133 Calling @code{ediff-regions-linewise} or @code{ediff-windows-linewise},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134 or the corresponding @samp{-wordwise} commands, narrows the buffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 being compared (corresponding to the regions being compared). The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1136 original accessible ranges are restored when you quit Ediff.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1137 During the command, you can toggle this narrowing on and off
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138 with the @kbd{%} command.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1140 These two variables control this narrowing behavior:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1141
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1142 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1143 @item ediff-start-narrowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1144 @vindex ediff-start-narrowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1145 If @code{t}, Ediff narrows the display to the appropriate range when it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1146 is invoked with an @samp{ediff-regions@dots{}} or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1147 @samp{ediff-windows@dots{}} command. If @code{nil}, these commands do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1148 not automatically narrow, but you can still toggle narrowing on and off
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1149 by typing @kbd{%}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1151 @item ediff-quit-widened
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1152 @vindex ediff-quit-widened
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1153 Controls whether on quitting Ediff should restore the accessible range
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1154 that existed before the current invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1155 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157 @node Refinement of Difference Regions, Patch and Diff Programs, Narrowing, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 @section Refinement of Difference Regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1159
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1160 Ediff has variables to control the way fine differences are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161 highlighted. This feature gives you control over the process of refinement.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 Note that refinement ignores spaces, tabs, and newlines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 @item ediff-auto-refine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1166 @vindex ediff-auto-refine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167 This variable controls whether fine differences within regions are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 highlighted automatically (``auto-refining''). The default is yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1169 (@samp{on}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171 On a slow machine, automatic refinement may be painful. In that case,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 you can turn auto-refining on or off interactively by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1173 @kbd{@@}. You can also turn off display of refining that has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 already been done.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1176 When auto-refining is off, fine differences are shown only for regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177 for which these differences have been computed and saved before. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 auto-refining and display of refining are both turned off, fine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1179 differences are not shown at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1181 Typing @kbd{*} computes and displays fine differences for the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 difference region, regardless of whether auto-refining is turned on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184 @item ediff-auto-refine-limit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185 @vindex ediff-auto-refine-limit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1186 If auto-refining is on, this variable limits the size of the regions to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1187 be auto-refined. This guards against the possible slowdown that may be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188 caused by extraordinary large difference regions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 You can always refine the current region by typing @kbd{*}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1192 @item ediff-forward-word-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1193 @vindex ediff-forward-word-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194 This variable gives control over how fine differences are computed. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 value must be a Lisp function that determines how the current difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1196 region should be split into words.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1198 @vindex ediff-diff-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199 @vindex ediff-forward-word-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 @findex ediff-forward-word
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201 Fine differences are computed by first splitting the current difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202 region into words and then passing this along to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203 @code{ediff-diff-program}. For the default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1204 @code{ediff-forward-word-function} (which is @code{ediff-forward-word}), a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 word is a string consisting of letters, @samp{-}, or @samp{_}; a string of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 punctuation symbols; a string of digits, or a string consisting of symbols
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 that are neither space, nor a letter.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 This default behavior is controlled by four variables: @code{ediff-word-1},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 ..., @code{ediff-word-4}. See the on-line documentation for these variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1211 and for the function @code{ediff-forward-word} for an explanation of how to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212 modify these variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1213 @vindex ediff-word-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1214 @vindex ediff-word-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1215 @vindex ediff-word-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216 @vindex ediff-word-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1217 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1218
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1219 Sometimes, when a region has too many differences between the variants,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1220 highlighting of fine differences is inconvenient, especially on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 color displays. If that is the case, type @kbd{*} with a negative
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1222 prefix argument. This unhighlights fine differences for the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1223 region.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1225 To unhighlight fine differences in all difference regions, use the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1226 command @kbd{@@}. Repeated typing of this key cycles through three
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227 different states: auto-refining, no-auto-refining, and no-highlighting
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1228 of fine differences.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1229
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230 @node Patch and Diff Programs, Merging and diff3, Refinement of Difference Regions, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 @section Patch and Diff Programs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1233 This section describes variables that specify the programs to be used for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234 applying patches and for computing the main difference regions (not the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235 fine difference regions):
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 @item ediff-patch-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1239 @itemx ediff-diff-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240 @itemx ediff-diff3-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 @vindex ediff-patch-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1242 @vindex ediff-diff-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243 @vindex ediff-diff3-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 These variables specify the programs to use to produce differences
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 and do patching.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1247 @item ediff-patch-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1248 @itemx ediff-diff-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 @itemx ediff-diff3-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1250 @vindex ediff-patch-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1251 @vindex ediff-diff-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1252 @vindex ediff-diff3-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253 These variables specify the options to pass to the above utilities.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 In @code{ediff-diff-options}, it may be useful to specify options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 such as @samp{-w} that ignore certain kinds of changes. However,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257 Ediff does not let you use the option @samp{-c}, as it doesn't recognize this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1258 format yet.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1261 @item ediff-custom-diff-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1262 @itemx ediff-custom-diff-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1263 @vindex ediff-custom-diff-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 @vindex ediff-custom-diff-options
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1265 @findex ediff-save-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1266 Because Ediff limits the options you may want to pass to the @code{diff}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1267 program, it partially makes up for this drawback by letting you save the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1268 output from @code{diff} in your preferred format, which is specified via
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1269 the above two variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1270
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1271 The output generated by @code{ediff-custom-diff-program} (which doesn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272 even have to be a standard-style @file{diff}!) is not used by Ediff. It is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 provided exclusively so that you can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1274 refer to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1275 it later, send it over email, etc. For instance, after reviewing the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1276 differences, you may want to send context differences to a colleague.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1277 Since Ediff ignores the @samp{-c} option in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1278 @code{ediff-diff-program}, you would have to run @code{diff -c} separately
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279 just to produce the list of differences. Fortunately,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 @code{ediff-custom-diff-program} and @code{ediff-custom-diff-options}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1281 eliminate this nuisance by keeping a copy of a difference list in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282 desired format in a buffer that can be displayed via the command @kbd{D}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1284 @item ediff-patch-default-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285 @vindex ediff-patch-default-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286 Specifies the default directory to look for patches.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 @strong{Warning:} Ediff does not support the output format of VMS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1292 @code{diff}. Instead, make sure to use some implementation of POSIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1293 @code{diff}, such as @code{gnudiff}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 @node Merging and diff3, Support for Version Control, Patch and Diff Programs, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 @section Merging and diff3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 Ediff supports three-way comparison via the functions @code{ediff-files3} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299 @code{ediff-buffers3}. The interface is the same as for two-way comparison.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300 In three-way comparison and merging, Ediff reports if any two difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 regions are identical. For instance, if the current region in buffer A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1302 is the same as the region in buffer C, then the mode line of buffer A will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1303 display @samp{[=diff(C)]} and the mode line of buffer C will display
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1304 @samp{[=diff(A)]}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1305
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1306 Merging is done according to the following algorithm.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 If a difference region in one of the buffers, say B, differs from the ancestor
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1309 file while the region in the other buffer, A, doesn't, then the merge buffer,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1310 C, gets B's region. Similarly when buffer A's region differs from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1311 the ancestor and B's doesn't, A's region is used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1313 @vindex ediff-default-variant
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1314 If both regions in buffers A and B differ from the ancestor file, Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1315 chooses the region according to the value of the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1316 @code{ediff-default-variant}. If its value is @code{default-A} then A's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1317 region is chosen. If it is @code{default-B} then B's region is chosen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1318 If it is @code{combined} then the region in buffer C will look like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1319 this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1320
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1321 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322 #ifdef NEW /* variant A */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1323 difference region from buffer A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1324 #else /* variant B */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1325 difference region from buffer B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1326 #endif /* NEW */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1327 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1328
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1329 @vindex ediff-combination-pattern
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1330 The actual strings that separate the regions copied from buffer A and B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1331 are controlled by the variable @code{ediff-combination-pattern}. Its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1332 value should be a list of three strings. The first is inserted before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1333 the difference region of buffer A; the second string goes between the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1334 regions; the third goes after region B, as shown in the above example.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1335
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1336 In addition to the state of the difference, during merging Ediff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1337 displays the state of the merge for each region. If a difference came
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 from buffer A by default (because both regions A and B were different
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1339 from the ancestor and @code{ediff-default-variant} was set to @code{default-A})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1340 then @samp{[=diff(A) default-A]} is displayed in the mode line. If the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1341 difference in buffer C came, say, from buffer B because the difference region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1342 in that buffer differs from the ancestor, but the region in buffer A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 does not (if merging with an ancestor) then @samp{[=diff(B) prefer-B]} is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1344 displayed. The indicators default-A/B and prefer-A/B are inspired by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345 Emerge and have the same meaning.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1347 Another indicator of the state of merge is @samp{combined}. It appears
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1348 with any difference region in buffer C that was obtained by combining
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1349 the difference regions in buffers A and B as explained above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1350
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1351 In addition to state of merge and difference indicator, while merging with an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1352 ancestor file or buffer, Ediff informs the user when the current difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1353 region in the (normally invisible) ancestor buffer is empty via the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1354 @emph{AncestorEmpty} indicator. This helps determine if the changes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1355 made to the original in variants A and B represent pure insertion or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1356 deletion of text: if the mode line shows @emph{AncestorEmpty} and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1357 corresponding region in buffers A or B is not empty, this means that new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1358 text was inserted. If this indicator is not present and the difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1359 regions in buffers A or B are non-empty, this means that text was
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1360 modified. Otherwise, the original text was deleted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1361
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1362 Although the ancestor buffer is normally invisible, Ediff maintains
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1363 difference regions there and advances the current difference region
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1364 accordingly. All highlighting of difference regions is provided in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365 ancestor buffer, except for the fine differences. Therefore, if desired, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 user can put the ancestor buffer in a separate frame and watch it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1367 there. However, on a TTY, only one frame can be visible at any given time,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368 and Ediff doesn't support any single-frame window configuration where all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1369 buffers, including the ancestor buffer, would be visible. However, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1370 ancestor buffer can be displayed by typing @kbd{/} to the control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1371 window. (Type @kbd{C-l} to hide it again.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1373 Note that the state-of-difference indicators @samp{=diff(A)} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1374 @samp{=diff(B)} above are not redundant, even in the presence of a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375 state-of-merge indicator. In fact, the two serve different purposes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1376
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1377 For instance, if the mode line displays @samp{=diff(B) prefer(B)} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1378 you copy a difference region from buffer A to buffer C then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1379 @samp{=diff(B)} will change to @samp{diff-A} and the mode line will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1380 display @samp{=diff(A) prefer-B}. This indicates that the difference
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1381 region in buffer C is identical to that in buffer A, but originally
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 buffer C's region came from buffer B. This is useful to know because
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1383 you can recover the original difference region in buffer C by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1384 @kbd{r}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1387 Ediff never changes the state-of-merge indicator, except in response to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1388 the @kbd{!} command (see below), in which case the indicator is lost.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1389 On the other hand, the state-of-difference indicator is changed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1390 automatically by the copying/recovery commands, @kbd{a}, @kbd{b}, @kbd{r},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1391 @kbd{+}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1392
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1393 The @kbd{!} command loses the information about origins of the regions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1394 in the merge buffer (default-A, prefer-B, or combined). This is because
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1395 recomputing differences in this case means running @code{diff3} on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1396 buffers A, B, and the merge buffer, not on the ancestor buffer. (It
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1397 makes no sense to recompute differences using the ancestor file, since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398 in the merging mode Ediff assumes that you have not edited buffers A and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399 B, but that you may have edited buffer C, and these changes are to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1400 preserved.) Since some difference regions may disappear as a result of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1401 editing buffer C and others may arise, there is generally no simple way
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 to tell where the various regions in the merge buffer came from.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1404 In three-way comparison, Ediff tries to disregard regions that consist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405 entirely of white space. For instance, if, say, the current region in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 buffer A consists of the white space only (or if it is empty), Ediff will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 not take it into account for the purpose of computing fine differences. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1408 result is that Ediff can provide a better visual information regarding the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1409 actual fine differences in the non-white regions in buffers B and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1410 C. Moreover, if the regions in buffers B and C differ in the white space
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1411 only, then a message to this effect will be displayed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1412
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1413 @vindex ediff-merge-window-share
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1414 In the merge mode, the share of the split between window C (the window
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1415 displaying the merge-buffer) and the windows displaying buffers A and B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1416 is controlled by the variable @code{ediff-merge-window-share}. Its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1417 default value is 0.5. To make the merge-buffer window smaller, reduce
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1418 this amount.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1419
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1420 We don't recommend increasing the size of the merge-window to more than
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1421 half the frame (i.e., to increase the value of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1422 @code{ediff-merge-window-share}) to more than 0.5, since it would be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1423 hard to see the contents of buffers A and B.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1424
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1425 You can temporarily shrink the merge window to just one line by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1426 typing @kbd{s}. This change is temporary, until Ediff finds a reason to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1427 redraw the screen. Typing @kbd{s} again restores the original window size.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1428
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1429 With a positive prefix argument, the @kbd{s} command will make the merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1430 window slightly taller. This change is persistent. With `@kbd{-}' or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1431 with a negative prefix argument, the command @kbd{s} makes the merge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1432 window slightly shorter. This change also persistent.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1433
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1434 @vindex ediff-show-clashes-only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 Ediff lets you automatically ignore the regions where only one of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436 buffers A and B disagrees with the ancestor. To do this, set the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1437 variable @code{ediff-show-clashes-only} to non-@code{nil}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439 You can toggle this feature interactively by typing @kbd{$}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1440
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1441 Note that this variable controls only how Ediff chooses the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1442 next/previous difference to show. You can still jump directly to any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1443 difference using the command @kbd{j} (with a prefix argument specifying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 the difference number).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 @node Support for Version Control, Customizing the Mode Line, Merging and diff3, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 @section Support for Version Control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 Ediff supports version control and lets you compare versions of files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 visited by Emacs buffers via the function @code{ediff-revision}. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1452 feature is controlled by the following variables:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1454 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1455 @item ediff-version-control-package
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1456 @vindex ediff-version-control-package
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1457 A symbol. The default is @samp{vc}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1458
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1459 If you are like most Emacs users, Ediff will use VC as the version control
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1460 package. This is the standard Emacs interface to RCS, CVS, and SCCS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1461
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1462 However, if your needs are better served by other interfaces, you will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1463 have to tell Ediff which version control package you are using, e.g.,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1464 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1465 (setq ediff-version-control-package 'rcs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1466 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1467
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1468 Apart from the standard @file{vc.el}, Ediff supports three other interfaces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1469 to version control:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 @file{rcs.el}, @file{pcl-cvs.el}, and @file{generic-sc.el}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1471 The package @file{rcs.el} is written by Sebastian Kremer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1472 <sk@@thp.Uni-Koeln.DE> and is available as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1474 @file{ftp.cs.buffalo.edu:pub/Emacs/rcs.tar.Z}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475 @file{ftp.uni-koeln.de:/pub/gnu/emacs/rcs.tar.Z}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1476 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477 The packages @file{pcl-cvs.el} and @file{generic-sc.el} are found in XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1478 distribution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1479 @pindex @file{vc.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1480 @pindex @file{rcs.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 @pindex @file{pcl-cvs.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482 @pindex @file{generic-sc.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1484
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1485 Ediff's interface to the above packages allows the user to compare the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 versions of the current buffer or to merge them (with or without an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1487 ancestor-version). These operations can also be performed on directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 containing files under version control.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1489
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1490 In case of @file{pcl-cvs.el}, Ediff can also be invoked via the function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1491 @code{run-ediff-from-cvs-buffer}---see the documentation string for this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1492 function.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1493
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1494 @node Customizing the Mode Line, Miscellaneous, Support for Version Control, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1495 @section Customizing the Mode Line
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1496
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1497 When Ediff is running, the mode line of @samp{Ediff Control Panel}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1498 buffer shows the current difference number and the total number of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 difference regions in the two files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1500
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1501 The mode line of the buffers being compared displays the type of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1502 buffer (@samp{A:}, @samp{B:}, or @samp{C:}) and (usually) the file name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503 Ediff tries to be intelligent in choosing the mode line buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504 identification. In particular, it works well with the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505 @file{uniquify.el} and @file{mode-line.el} packages (which improve on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506 the default way in which Emacs displays buffer identification). If you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507 don't like the way Ediff changes the mode line, you can use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1508 @code{ediff-prepare-buffer-hook} to modify the mode line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509 @vindex ediff-prepare-buffer-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 @pindex @file{uniquify.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 @pindex @file{mode-line.el}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1513 @node Miscellaneous, Notes on Heavy-duty Customization, Customizing the Mode Line, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 @section Miscellaneous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 Here are a few other variables for customizing Ediff:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 @item ediff-split-window-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 @vindex ediff-split-window-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521 Controls the way you want the window be split between file-A and file-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 (and file-C, if applicable). It defaults to the vertical split
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 (@code{split-window-vertically}, but you can set it to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 @code{split-window-horizontally}, if you so wish.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 Ediff also lets you switch from vertical to horizontal split and back
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1526 interactively.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1527
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1528 Note that if Ediff detects that all the buffers it compares are displayed in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1529 separate frames, it assumes that the user wants them to be so displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 and stops splitting windows. Instead, it arranges for each buffer to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1531 be displayed in a separate frame. You can switch to the one-frame mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1532 by hiding one of the buffers A/B/C.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1533
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1534 You can also swap the windows where buffers are displayed by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 @kbd{~}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1536
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1537 @item ediff-merge-split-window-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1538 @vindex ediff-merge-split-window-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539 Controls how windows are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1540 split between buffers A and B in the merge mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1541 This variable is like @code{ediff-split-window-function}, but it defaults
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1542 to @code{split-window-horizontally} instead of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1543 @code{split-window-vertically}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1544
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1545 @item ediff-make-wide-display-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1546 @vindex ediff-make-wide-display-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1547 The value is a function to be called to widen the frame for displaying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1548 the Ediff buffers. See the on-line documentation for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1549 @code{ediff-make-wide-display-function} for details. It is also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1550 recommended to look into the source of the default function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1551 @code{ediff-make-wide-display}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1552
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1553 You can toggle wide/regular display by typing @kbd{m}. In the wide
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1554 display mode, buffers A, B (and C, when applicable) are displayed in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1555 single frame that is as wide as the entire workstation screen. This is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1556 useful when files are compared side-by-side. By default, the display is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1557 widened without changing its height.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1559 @item ediff-use-last-dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560 @vindex ediff-use-last-dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1561 Controls the way Ediff presents the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1562 default directory when it prompts the user for files to compare. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1563 @code{nil},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1564 Ediff uses the default directory of the current buffer when it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1565 prompts the user for file names. Otherwise, it will use the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1566 directories it had previously used for files A, B, or C, respectively.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1567
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1568 @item ediff-no-emacs-help-in-control-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1569 @vindex ediff-no-emacs-help-in-control-buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1570 If @code{t}, makes @kbd{C-h}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1571 behave like the @key{DEL} key, i.e., it will move you back to the previous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1572 difference rather than invoking help. This is useful when, in an xterm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573 window or a text-only terminal, the Backspace key is bound to @kbd{C-h} and is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1574 positioned more conveniently than the @key{DEL} key.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1576 @item ediff-toggle-read-only-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1577 @vindex ediff-toggle-read-only-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1578 This variable's value is a function that Ediff uses to toggle
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1579 the read-only property in its buffers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1581 The default function that Ediff uses simply toggles the read-only property,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1582 unless the file is under version control. For a checked-in file under
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1583 version control, Ediff first tries to check the file out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1584
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1585 @item ediff-keep-variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1586 @vindex @code{ediff-keep-variants}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1587 The default is @code{t}, meaning that the buffers being compared or merged will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1588 be preserved when Ediff quits. Setting this to @code{nil} causes Ediff to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1589 offer the user a chance to delete these buffers (if they are not modified).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1590 Supplying a prefix argument to the quit command (@code{q}) temporarily
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1591 reverses the meaning of this variable. This is convenient when the user
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1592 prefers one of the behaviors most of the time, but occasionally needs the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1593 other behavior.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1594
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1595 However, Ediff temporarily resets this variable to @code{t} if it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1596 invoked via one of the "buffer" jobs, such as @code{ediff-buffers}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597 This is because it is all too easy to loose day's work otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1598 Besides, in a "buffer" job, the variant buffers have already been loaded
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1599 prior to starting Ediff, so Ediff just preserves status quo here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1601 Using @code{ediff-cleanup-hook}, one can make Ediff delete the variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1602 unconditionally (e.g., by making @code{ediff-janitor} into one of these hooks).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1603 @item ediff-grab-mouse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1604 @vindex @code{ediff-grab-mouse}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605 Default is @code{t}. Normally, Ediff grabs mouse and puts it in its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 control frame. This is useful since the user can be sure that when he
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607 needs to type an Ediff command the focus will be in an appropriate Ediff's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608 frame. However, some users prefer to move the mouse by themselves. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1609 above variable, if set to @code{maybe}, will prevent Ediff from grabbing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1610 the mouse in many situations, usually after commands that may take more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1611 time than usual. In other situation, Ediff will continue grabbing the mouse
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1612 and putting it where it believes is appropriate. If the value is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1613 @code{nil}, then mouse is entirely user's responsibility.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1614 Try different settings and see which one is for you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1615 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1616
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1617
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1618 @node Notes on Heavy-duty Customization, , Miscellaneous, Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1619 @section Notes on Heavy-duty Customization
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1620
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1621 Some users need to customize Ediff in rather sophisticated ways, which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1622 requires different defaults for different kinds of files (e.g., SGML,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1623 etc.). Ediff supports this kind of customization in several ways. First,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1624 most customization variables are buffer-local. Those that aren't are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1625 usually accessible from within Ediff Control Panel, so one can make them
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1626 local to the panel by calling make-local-variable from within
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1627 @code{ediff-startup-hook}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1628
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1629 Second, the function @code{ediff-setup} accepts an optional sixth
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1630 argument which has the form @code{((@var{var-name-1} . @var{val-1})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1631 (@var{var-name-2} . @var{val-2}) @dots{})}. The function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1632 @code{ediff-setup} sets the variables in the list to the respective
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1633 values, locally in the Ediff control buffer. This is an easy way to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1634 throw in custom variables (which usually should be buffer-local) that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1635 can then be tested in various hooks.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1636
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1637 Make sure the variable @code{ediff-job-name} and @code{ediff-word-mode} are set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1638 properly in this case, as some things in Ediff depend on this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1639
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1640 Finally, if you want custom-tailored help messages, you can set the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1641 variables @code{ediff-brief-help-message-function} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1642 @code{ediff-long-help-message-function}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1643 to functions that return help strings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1644 @vindex ediff-startup-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1645 @findex ediff-setup
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1646 @vindex ediff-job-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1647 @vindex ediff-word-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1648 @vindex ediff-brief-help-message-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1649 @vindex ediff-long-help-message-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1650
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1651 When customizing Ediff, some other variables are useful, although they are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1652 not user-definable. They are local to the Ediff control buffer, so this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1653 buffer must be current when you access these variables. The control buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1654 is accessible via the variable @code{ediff-control-buffer}, which is also
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1655 local to that buffer. It is usually used for checking if the current buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1656 is also the control buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1657
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1658 Other variables of interest are:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1659 @table @code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1660 @item ediff-buffer-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1661 The first of the data buffers being compared.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1662
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1663 @item ediff-buffer-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1664 The second of the data buffers being compared.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1666 @item ediff-buffer-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1667 In three-way comparisons, this is the third buffer being compared.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1668 In merging, this is the merge buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1669 In two-way comparison, this variable is nil.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1670
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1671 @item ediff-window-A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1672 The window displaying buffer A. If buffer A is not visible, this variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1673 is nil or it may be a dead window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1674
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1675 @item ediff-window-B
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1676 The window displaying buffer B.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1677
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1678 @item ediff-window-C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1679 The window displaying buffer C, if any.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1680
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1681 @item ediff-control-frame
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1682 A dedicated frame displaying the control buffer, if it exists.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1683 It is non-nil only if Ediff uses the multiframe display, i.e., when the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1684 control buffer is in its own frame.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1685 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1686
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1687 @node Credits, Index, Customization, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1688 @chapter Credits
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1689
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1690 Ediff was written by Michael Kifer <kifer@@cs.sunysb.edu>. It was inspired
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1691 by emerge.el written by Dale R. Worley <drw@@math.mit.edu>. An idea due to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1692 Boris Goldowsky <boris@@cs.rochester.edu> made it possible to highlight
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1693 fine differences in Ediff buffers. Alastair Burt <burt@@dfki.uni-kl.de>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1694 ported Ediff to XEmacs, and Eric Freudenthal <freudent@@jan.ultra.nyu.edu>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1695 made it work with VC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1696
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1697 Many people provided help with bug reports, patches, and advice.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1698 Without them, Ediff would not be nearly as useful as it is today.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1699 Here is a full list of contributors (I hope I didn't miss anyone):
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1700
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1701 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1702 Neal Becker (neal@@ctd.comsat.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1703 Alastair Burt (burt@@dfki.uni-kl.de), Paul Bibilo (peb@@delcam.co.uk),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1704 Kevin Broadey (KevinB@@bartley.demon.co.uk),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1705 Harald Boegeholz (hwb@@machnix.mathematik.uni-stuttgart.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1706 Bradley A. Bosch (brad@@lachman.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 Michael D. Carney (carney@@ltx-tr.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1708 Jin S. Choi (jin@@atype.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1709 Albert Dvornik (bert@@mit.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1710 Eric Eide (eeide@@asylum.cs.utah.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1711 Kevin Esler (esler@@ch.hp.com), Robert Estes (estes@@ece.ucdavis.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1712 Xavier Fornari (xavier@@europe.cma.fr),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1713 Eric Freudenthal (freudent@@jan.ultra.nyu.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1714 Job Ganzevoort (Job.Ganzevoort@@cwi.nl),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1715 Boris Goldowsky (boris@@cs.rochester.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1716 Allan Gottlieb (gottlieb@@allan.ultra.nyu.edu), Xiaoli Huang (hxl@@epic.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1717 Larry Gouge (larry@@itginc.com), Karl Heuer (kwzh@@gnu.ai.mit.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1718 (irvine@@lks.csi.com), (jaffe@@chipmunk.cita.utoronto.ca),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1719 David Karr (dkarr@@nmo.gtegsc.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1720 Norbert Kiesel (norbert@@i3.informatik.rwth-aachen.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1721 Leigh L Klotz (klotz@@adoc.xerox.com), Fritz Knabe (Fritz.Knabe@@ecrc.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1722 Heinz Knutzen (hk@@informatik.uni-kiel.d400.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1723 Andrew Koenig (ark@@research.att.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1724 Ken Laprade (laprade@@dw3f.ess.harris.com), Will C Lauer (wcl@@cadre.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1725 Richard Levitte (levitte@@e.kth.se), Mike Long (mike.long@@analog.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1726 Martin Maechler (maechler@@stat.math.ethz.ch),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1727 Simon Marshall (Simon.Marshall@@mail.esrin.esa.it),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1728 Richard Mlynarik (mly@@adoc.xerox.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1729 Chris Murphy (murphycm@@sun.aston.ac.uk),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1730 Erik Naggum (erik@@naggum.no),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1731 Eyvind Ness (Eyvind.Ness@@hrp.no), Ray Nickson (nickson@@cs.uq.oz.au),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 David Petchey (petchey_david@@jpmorgan.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1733 Benjamin Pierce (benjamin.pierce@@cl.cam.ac.uk),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1734 Tibor Polgar (tlp00@@spg.amdahl.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1735 David Prince (dave0d@@fegs.co.uk),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1736 Paul Raines (raines@@slac.stanford.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1737 C.S. Roberson (roberson@@aur.alcatel.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1738 Kevin Rodgers (kevin.rodgers@@ihs.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1739 Sandy Rutherford (sandy@@ibm550.sissa.it),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1740 Heribert Schuetz (schuetz@@ecrc.de), Andy Scott (ascott@@pcocd2.intel.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1741 Axel Seibert (axel@@tumbolia.ppp.informatik.uni-muenchen.de),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1742 Richard Stallman (rms@@gnu.ai.mit.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1743 Richard Stanton (stanton@@haas.berkeley.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1744 Ake Stenhoff (etxaksf@@aom.ericsson.se), Stig (stig@@hackvan.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1745 Peter Stout (Peter_Stout@@cs.cmu.edu), Chuck Thompson (cthomp@@cs.uiuc.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1746 Ray Tomlinson (tomlinso@@bbn.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1747 Raymond Toy (toy@@rtp.ericsson.se),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1748 Ben Wing (wing@@666.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1749 Ilya Zakharevich (ilya@@math.ohio-state.edu),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1750 Eli Zaretskii (eliz@@is.elta.co.il)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1751 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1752
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1753 @node Index, , Credits, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1754 @unnumbered Index
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 @printindex cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1756
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1757 @contents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1758 @bye