Mercurial > emacs
annotate lisp/ediff-hook.el @ 101633:c92166611a26
(rmail-summary-disable): Fix declaration.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 29 Jan 2009 03:42:17 +0000 |
parents | a9dc0e7c3f2b |
children | 801834237f9c 4b7d5275d592 |
rev | line source |
---|---|
13130 | 1 ;;; ediff-hook.el --- setup for Ediff's menus and autoloads |
14169 | 2 |
64762
41bb365f41c4
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64091
diff
changeset
|
3 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, |
100908 | 4 ;; 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
13130 | 5 |
42602
633233bf2bbf
2002-01-07 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
38422
diff
changeset
|
6 ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> |
13130 | 7 |
8 ;; This file is part of GNU Emacs. | |
9 | |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
10 ;; GNU Emacs is free software: you can redistribute it and/or modify |
13130 | 11 ;; it under the terms of the GNU General Public License as published by |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
12 ;; the Free Software Foundation, either version 3 of the License, or |
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
13 ;; (at your option) any later version. |
13130 | 14 |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
13130 | 22 |
38422
7a94f1c588c4
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
35411
diff
changeset
|
23 ;;; Commentary: |
7a94f1c588c4
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
35411
diff
changeset
|
24 |
14169 | 25 ;;; Code: |
13130 | 26 |
14582
c768f6d7daaa
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14169
diff
changeset
|
27 ;;; These must be placed in menu-bar.el in Emacs |
13130 | 28 ;; |
18054 | 29 ;; (define-key menu-bar-tools-menu [ediff-misc] |
30 ;; '("Ediff Miscellanea" . menu-bar-ediff-misc-menu)) | |
13130 | 31 ;; (define-key menu-bar-tools-menu [epatch] |
32 ;; '("Apply Patch" . menu-bar-epatch-menu)) | |
33 ;; (define-key menu-bar-tools-menu [ediff-merge] | |
34 ;; '("Merge" . menu-bar-ediff-merge-menu)) | |
35 ;; (define-key menu-bar-tools-menu [ediff] | |
36 ;; '("Compare" . menu-bar-ediff-menu)) | |
37 | |
15480
43a3308fcf61
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14582
diff
changeset
|
38 ;; Compiler pacifier |
43a3308fcf61
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14582
diff
changeset
|
39 (defvar ediff-menu) |
43a3308fcf61
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14582
diff
changeset
|
40 (defvar ediff-merge-menu) |
43a3308fcf61
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14582
diff
changeset
|
41 (defvar epatch-menu) |
18054 | 42 (defvar ediff-misc-menu) |
15480
43a3308fcf61
*** empty log message ***
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
14582
diff
changeset
|
43 ;; end pacifier |
13130 | 44 |
18054 | 45 ;; allow menus to be set up without ediff-wind.el being loaded |
46 (defvar ediff-window-setup-function) | |
42602
633233bf2bbf
2002-01-07 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
38422
diff
changeset
|
47 |
44872
9247dfe141e4
2002-04-25 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
43029
diff
changeset
|
48 ;; This autoload is useless in Emacs because ediff-hook.el is dumped with |
9247dfe141e4
2002-04-25 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
43029
diff
changeset
|
49 ;; emacs, but it is needed in XEmacs |
47520
a37b476e1aec
2002-09-18 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
45034
diff
changeset
|
50 ;;;###autoload |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
51 (if (featurep 'xemacs) |
92948
73a01bf5cb80
* faces.el (xw-defined-colors):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
92503
diff
changeset
|
52 (progn |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
53 (defun ediff-xemacs-init-menus () |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
54 (when (featurep 'menubar) |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
55 (add-submenu |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
56 '("Tools") ediff-menu "OO-Browser...") |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
57 (add-submenu |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
58 '("Tools") ediff-merge-menu "OO-Browser...") |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
59 (add-submenu |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
60 '("Tools") epatch-menu "OO-Browser...") |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
61 (add-submenu |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
62 '("Tools") ediff-misc-menu "OO-Browser...") |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
63 (add-menu-button |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
64 '("Tools") "-------" "OO-Browser...") |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
65 )) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
66 (defvar ediff-menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
67 '("Compare" |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
68 ["Two Files..." ediff-files t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
69 ["Two Buffers..." ediff-buffers t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
70 ["Three Files..." ediff-files3 t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
71 ["Three Buffers..." ediff-buffers3 t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
72 "---" |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
73 ["Two Directories..." ediff-directories t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
74 ["Three Directories..." ediff-directories3 t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
75 "---" |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
76 ["File with Revision..." ediff-revision t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
77 ["Directory Revisions..." ediff-directory-revisions t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
78 "---" |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
79 ["Windows Word-by-word..." ediff-windows-wordwise t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
80 ["Windows Line-by-line..." ediff-windows-linewise t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
81 "---" |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
82 ["Regions Word-by-word..." ediff-regions-wordwise t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
83 ["Regions Line-by-line..." ediff-regions-linewise t] |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
84 )) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
85 (defvar ediff-merge-menu |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
86 '("Merge" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
87 ["Files..." ediff-merge-files t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
88 ["Files with Ancestor..." ediff-merge-files-with-ancestor t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
89 ["Buffers..." ediff-merge-buffers t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
90 ["Buffers with Ancestor..." |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
91 ediff-merge-buffers-with-ancestor t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
92 "---" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
93 ["Directories..." ediff-merge-directories t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
94 ["Directories with Ancestor..." |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
95 ediff-merge-directories-with-ancestor t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
96 "---" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
97 ["Revisions..." ediff-merge-revisions t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
98 ["Revisions with Ancestor..." |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
99 ediff-merge-revisions-with-ancestor t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
100 ["Directory Revisions..." ediff-merge-directory-revisions t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
101 ["Directory Revisions with Ancestor..." |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
102 ediff-merge-directory-revisions-with-ancestor t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
103 )) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
104 (defvar epatch-menu |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
105 '("Apply Patch" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
106 ["To a file..." ediff-patch-file t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
107 ["To a buffer..." ediff-patch-buffer t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
108 )) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
109 (defvar ediff-misc-menu |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
110 '("Ediff Miscellanea" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
111 ["Ediff Manual" ediff-documentation t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
112 ["Customize Ediff" ediff-customize t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
113 ["List Ediff Sessions" ediff-show-registry t] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
114 ["Use separate frame for Ediff control buffer" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
115 ediff-toggle-multiframe |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
116 :style toggle |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
117 :selected (if (and (featurep 'ediff-util) |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
118 (boundp 'ediff-window-setup-function)) |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
119 (eq ediff-window-setup-function |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
120 'ediff-setup-windows-multiframe))] |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
121 ["Use a toolbar with Ediff control buffer" |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
122 ediff-toggle-use-toolbar |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
123 :style toggle |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
124 :selected (if (featurep 'ediff-tbar) |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
125 (ediff-use-toolbar-p))])) |
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
126 |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
127 ;; put these menus before Object-Oriented-Browser in Tools menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
128 (if (and (featurep 'menubar) (not (featurep 'infodock)) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
129 (not (featurep 'ediff-hook))) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
130 (ediff-xemacs-init-menus))) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
131 ;; Emacs |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
132 ;; initialize menu bar keymaps |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
133 (defvar menu-bar-ediff-misc-menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
134 (make-sparse-keymap "Ediff Miscellanea")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
135 (fset 'menu-bar-ediff-misc-menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
136 (symbol-value 'menu-bar-ediff-misc-menu)) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
137 (defvar menu-bar-epatch-menu (make-sparse-keymap "Apply Patch")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
138 (fset 'menu-bar-epatch-menu (symbol-value 'menu-bar-epatch-menu)) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
139 (defvar menu-bar-ediff-merge-menu (make-sparse-keymap "Merge")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
140 (fset 'menu-bar-ediff-merge-menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
141 (symbol-value 'menu-bar-ediff-merge-menu)) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
142 (defvar menu-bar-ediff-menu (make-sparse-keymap "Compare")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
143 (fset 'menu-bar-ediff-menu (symbol-value 'menu-bar-ediff-menu)) |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
144 |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
145 ;; define ediff compare menu |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
146 (define-key menu-bar-ediff-menu [window] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
147 '(menu-item "This Window and Next Window" compare-windows |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
148 :help "Compare the current window and the next window")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
149 (define-key menu-bar-ediff-menu [ediff-windows-linewise] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
150 '(menu-item "Windows Line-by-line..." ediff-windows-linewise |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
151 :help "Compare windows line-wise")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
152 (define-key menu-bar-ediff-menu [ediff-windows-wordwise] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
153 '(menu-item "Windows Word-by-word..." ediff-windows-wordwise |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
154 :help "Compare windows word-wise")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
155 (define-key menu-bar-ediff-menu [separator-ediff-windows] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
156 (define-key menu-bar-ediff-menu [ediff-regions-linewise] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
157 '(menu-item "Regions Line-by-line..." ediff-regions-linewise |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
158 :help "Compare regions line-wise")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
159 (define-key menu-bar-ediff-menu [ediff-regions-wordwise] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
160 '(menu-item "Regions Word-by-word..." ediff-regions-wordwise |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
161 :help "Compare regions word-wise")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
162 (define-key menu-bar-ediff-menu [separator-ediff-regions] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
163 (define-key menu-bar-ediff-menu [ediff-dir-revision] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
164 '(menu-item "Directory Revisions..." ediff-directory-revisions |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
165 :help "Compare directory files with their older versions")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
166 (define-key menu-bar-ediff-menu [ediff-revision] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
167 '(menu-item "File with Revision..." ediff-revision |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
168 :help "Compare file with its older versions")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
169 (define-key menu-bar-ediff-menu [separator-ediff-directories] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
170 (define-key menu-bar-ediff-menu [ediff-directories3] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
171 '(menu-item "Three Directories..." ediff-directories3 |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
172 :help "Compare files common to three directories simultaneously")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
173 (define-key menu-bar-ediff-menu [ediff-directories] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
174 '(menu-item "Two Directories..." ediff-directories |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
175 :help "Compare files common to two directories simultaneously")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
176 (define-key menu-bar-ediff-menu [separator-ediff-files] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
177 (define-key menu-bar-ediff-menu [ediff-buffers3] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
178 '(menu-item "Three Buffers..." ediff-buffers3 |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
179 :help "Compare three buffers simultaneously")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
180 (define-key menu-bar-ediff-menu [ediff-files3] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
181 '(menu-item "Three Files..." ediff-files3 |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
182 :help "Compare three files simultaneously")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
183 (define-key menu-bar-ediff-menu [ediff-buffers] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
184 '(menu-item "Two Buffers..." ediff-buffers |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
185 :help "Compare two buffers simultaneously")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
186 (define-key menu-bar-ediff-menu [ediff-files] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
187 '(menu-item "Two Files..." ediff-files |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
188 :help "Compare two files simultaneously")) |
13130 | 189 |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
190 ;; define ediff merge menu |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
191 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
192 menu-bar-ediff-merge-menu [ediff-merge-dir-revisions-with-ancestor] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
193 '(menu-item "Directory Revisions with Ancestor..." |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
194 ediff-merge-directory-revisions-with-ancestor |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
195 :help "Merge versions of the files in the same directory by comparing the files with common ancestors")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
196 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
197 menu-bar-ediff-merge-menu [ediff-merge-dir-revisions] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
198 '(menu-item "Directory Revisions..." ediff-merge-directory-revisions |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
199 :help "Merge versions of the files in the same directory (without using ancestor information)")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
200 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
201 menu-bar-ediff-merge-menu [ediff-merge-revisions-with-ancestor] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
202 '(menu-item "Revisions with Ancestor..." |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
203 ediff-merge-revisions-with-ancestor |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
204 :help "Merge versions of the same file by comparing them with a common ancestor")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
205 (define-key menu-bar-ediff-merge-menu [ediff-merge-revisions] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
206 '(menu-item "Revisions..." ediff-merge-revisions |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
207 :help "Merge versions of the same file (without using ancestor information)")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
208 (define-key menu-bar-ediff-merge-menu [separator-ediff-merge] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
209 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
210 menu-bar-ediff-merge-menu [ediff-merge-directories-with-ancestor] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
211 '(menu-item "Directories with Ancestor..." |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
212 ediff-merge-directories-with-ancestor |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
213 :help "Merge files common to a pair of directories by comparing the files with common ancestors")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
214 (define-key menu-bar-ediff-merge-menu [ediff-merge-directories] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
215 '(menu-item "Directories..." ediff-merge-directories |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
216 :help "Merge files common to a pair of directories")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
217 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
218 menu-bar-ediff-merge-menu [separator-ediff-merge-dirs] '("--")) |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
219 (define-key |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
220 menu-bar-ediff-merge-menu [ediff-merge-buffers-with-ancestor] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
221 '(menu-item "Buffers with Ancestor..." ediff-merge-buffers-with-ancestor |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
222 :help "Merge buffers by comparing their contents with a common ancestor")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
223 (define-key menu-bar-ediff-merge-menu [ediff-merge-buffers] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
224 '(menu-item "Buffers..." ediff-merge-buffers |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
225 :help "Merge buffers (without using ancestor information)")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
226 (define-key menu-bar-ediff-merge-menu [ediff-merge-files-with-ancestor] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
227 '(menu-item "Files with Ancestor..." ediff-merge-files-with-ancestor |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
228 :help "Merge files by comparing them with a common ancestor")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
229 (define-key menu-bar-ediff-merge-menu [ediff-merge-files] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
230 '(menu-item "Files..." ediff-merge-files |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
231 :help "Merge files (without using ancestor information)")) |
13130 | 232 |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
233 ;; define epatch menu |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
234 (define-key menu-bar-epatch-menu [ediff-patch-buffer] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
235 '(menu-item "To a Buffer..." ediff-patch-buffer |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
236 :help "Apply a patch to the contents of a buffer")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
237 (define-key menu-bar-epatch-menu [ediff-patch-file] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
238 '(menu-item "To a File..." ediff-patch-file |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
239 :help "Apply a patch to a file")) |
18054 | 240 |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
241 ;; define ediff miscellanea |
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
242 (define-key menu-bar-ediff-misc-menu [emultiframe] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
243 '(menu-item "Toggle use of separate control buffer frame" |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
244 ediff-toggle-multiframe |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
245 :help "Switch between the single-frame presentation mode and the multi-frame mode")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
246 (define-key menu-bar-ediff-misc-menu [eregistry] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
247 '(menu-item "List Ediff Sessions" ediff-show-registry |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
248 :help "List all active Ediff sessions; it is a convenient way to find and resume such a session")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
249 (define-key menu-bar-ediff-misc-menu [ediff-cust] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
250 '(menu-item "Customize Ediff" ediff-customize |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
251 :help "Change some of the parameters that govern the behavior of Ediff")) |
92503
b3aa17396fef
Expand all ediff-cond-compile-for-xemacs-or-emacs calls to a featurep test.
Glenn Morris <rgm@gnu.org>
parents:
92493
diff
changeset
|
252 (define-key menu-bar-ediff-misc-menu [ediff-doc] |
99829
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
253 '(menu-item "Ediff Manual" ediff-documentation |
46834e8b7d0f
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
94678
diff
changeset
|
254 :help "Bring up the Ediff manual"))) |
13130 | 255 |
256 (provide 'ediff-hook) | |
257 | |
93652
6523ed37006c
2008-04-04 Michael Kifer <kifer@cs.stonybrook.edu>
Michael Kifer <kifer@cs.stonybrook.edu>
parents:
92951
diff
changeset
|
258 |
93975
1e3a407766b9
Fix up comment convention on the arch-tag lines.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
93652
diff
changeset
|
259 ;; arch-tag: 512f8656-8a4b-4789-af5d-5c6144498df3 |
13130 | 260 ;;; ediff-hook.el ends here |