aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-07-22 23:07:07 +0000
committerRichard M. Stallman1992-07-22 23:07:07 +0000
commit924f0a2420709765dfe93c7c31f81de6dbcecbb7 (patch)
treee69ec53ed797abdd918a224de3d98e29fccba379
parent067ffa38a5d8f117efb94afa8a2edba3d832ee1a (diff)
downloademacs-924f0a2420709765dfe93c7c31f81de6dbcecbb7.tar.gz
emacs-924f0a2420709765dfe93c7c31f81de6dbcecbb7.zip
*** empty log message ***
-rw-r--r--lisp/emerge.el33
-rw-r--r--lisp/files.el2
2 files changed, 15 insertions, 20 deletions
diff --git a/lisp/emerge.el b/lisp/emerge.el
index cf9fcebe94c..f4faf572935 100644
--- a/lisp/emerge.el
+++ b/lisp/emerge.el
@@ -1,11 +1,10 @@
1;;; emerge.el --- merge diffs inder Emacs control (version 4) 1;;; emerge.el --- merge diffs under Emacs control
2 2
3;;; 13 Dec 1991 3;; Author: Dale R. Worley <drw@math.mit.edu>
4;; Version: 4
5;; Keywords: unix, tools
4 6
5;; LCD Archive Entry: 7;;; Commentary:
6;; emerge|Dale R. Worley|drw@math.mit.edu
7;; |File merge documentation
8;; |91-12-13|version 4|~/packages/emerge.doc.Z
9 8
10; - Changes from version 3 to version 4 9; - Changes from version 3 to version 4
11; 10;
@@ -78,7 +77,7 @@
78; 77;
79; Added x 1 command to shrink the merge window to one line. 78; Added x 1 command to shrink the merge window to one line.
80; 79;
81; Added emerge-startup-hooks to allow customization. 80; Added emerge-startup-hook to allow customization.
82; 81;
83; Fixed a bug that is activated when a remote merge request is made when 82; Fixed a bug that is activated when a remote merge request is made when
84; the minibuffer window is selected. 83; the minibuffer window is selected.
@@ -198,7 +197,7 @@
198; error message.) 197; error message.)
199; 198;
200; After the merge has been set up, Emerge runs the hooks in 199; After the merge has been set up, Emerge runs the hooks in
201; emerge-startup-hooks. 200; emerge-startup-hook.
202; 201;
203; - Merging 202; - Merging
204; 203;
@@ -558,11 +557,7 @@
558; 557;
559; ================================================================ 558; ================================================================
560 559
561;; Declare that we've got the subsystem loaded 560;;; Code:
562;; LCD Archive Entry:
563;; emerge|Dale R. Worley|drw@math.mit.edu
564;; |File merge
565;; |91-12-13|version 4|~/packages/emerge.el.Z
566 561
567;;; Macros 562;;; Macros
568 563
@@ -876,9 +871,9 @@ the next difference.")
876(emerge-defvar-local emerge-skip-prefers nil 871(emerge-defvar-local emerge-skip-prefers nil
877 "*If non-nil, differences for which there is a preference are automatically 872 "*If non-nil, differences for which there is a preference are automatically
878skipped.") 873skipped.")
879(emerge-defvar-local emerge-startup-hooks nil 874(emerge-defvar-local emerge-startup-hook nil
880 "*Hooks to run in the merge buffer after the merge has been set up.") 875 "*Hooks to run in the merge buffer after the merge has been set up.")
881(emerge-defvar-local emerge-quit-hooks nil 876(emerge-defvar-local emerge-quit-hook nil
882 "Hooks to run in the merge buffer after the merge has been finished. 877 "Hooks to run in the merge buffer after the merge has been finished.
883emerge-prefix-argument will be bound to the prefix argument of the emerge-quit 878emerge-prefix-argument will be bound to the prefix argument of the emerge-quit
884command. 879command.
@@ -938,7 +933,7 @@ emerge-file-names.")
938 (emerge-remember-buffer-characteristics)) 933 (emerge-remember-buffer-characteristics))
939 (emerge-setup-windows buffer-A buffer-B merge-buffer t) 934 (emerge-setup-windows buffer-A buffer-B merge-buffer t)
940 (emerge-eval-in-buffer merge-buffer 935 (emerge-eval-in-buffer merge-buffer
941 (run-hooks 'startup-hooks 'emerge-startup-hooks) 936 (run-hooks 'startup-hooks 'emerge-startup-hook)
942 (setq buffer-read-only t)))) 937 (setq buffer-read-only t))))
943 938
944;; Generate the Emerge difference list between two files 939;; Generate the Emerge difference list between two files
@@ -1065,12 +1060,12 @@ emerge-file-names.")
1065 (emerge-make-diff3-list file-A file-B file-ancestor)) 1060 (emerge-make-diff3-list file-A file-B file-ancestor))
1066 (setq emerge-number-of-differences (length emerge-difference-list)) 1061 (setq emerge-number-of-differences (length emerge-difference-list))
1067 (setq emerge-current-difference -1) 1062 (setq emerge-current-difference -1)
1068 (setq emerge-quit-hooks quit-hooks) 1063 (setq emerge-quit-hook quit-hooks)
1069 (emerge-remember-buffer-characteristics) 1064 (emerge-remember-buffer-characteristics)
1070 (emerge-select-prefer-Bs)) 1065 (emerge-select-prefer-Bs))
1071 (emerge-setup-windows buffer-A buffer-B merge-buffer t) 1066 (emerge-setup-windows buffer-A buffer-B merge-buffer t)
1072 (emerge-eval-in-buffer merge-buffer 1067 (emerge-eval-in-buffer merge-buffer
1073 (run-hooks 'startup-hooks 'emerge-startup-hooks) 1068 (run-hooks 'startup-hooks 'emerge-startup-hook)
1074 (setq buffer-read-only t)))) 1069 (setq buffer-read-only t))))
1075 1070
1076;; Generate the Emerge difference list between two files with an ancestor 1071;; Generate the Emerge difference list between two files with an ancestor
@@ -1816,7 +1811,7 @@ buffer after this will cause serious problems."
1816 ;; restore mode line 1811 ;; restore mode line
1817 (kill-local-variable 'mode-line-buffer-identification) 1812 (kill-local-variable 'mode-line-buffer-identification)
1818 (let ((emerge-prefix-argument arg)) 1813 (let ((emerge-prefix-argument arg))
1819 (run-hooks 'emerge-quit-hooks))) 1814 (run-hooks 'emerge-quit-hook)))
1820 1815
1821(defun emerge-select-A (&optional force) 1816(defun emerge-select-A (&optional force)
1822 "Select the A variant of this difference. Refuses to function if this 1817 "Select the A variant of this difference. Refuses to function if this
diff --git a/lisp/files.el b/lisp/files.el
index b3807a73c57..f1fde0575e0 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1402,7 +1402,7 @@ With prefix arg, silently save all file-visiting buffers, then kill."
1402(define-key ctl-x-4-map "r" 'find-file-read-only-other-window) 1402(define-key ctl-x-4-map "r" 'find-file-read-only-other-window)
1403(define-key ctl-x-4-map "\C-f" 'find-file-other-window) 1403(define-key ctl-x-4-map "\C-f" 'find-file-other-window)
1404(define-key ctl-x-4-map "b" 'switch-to-buffer-other-window) 1404(define-key ctl-x-4-map "b" 'switch-to-buffer-other-window)
1405(define-key ctl-x-4-map "o" 'display-buffer) 1405(define-key ctl-x-4-map "\C-o" 'display-buffer)
1406 1406
1407(define-key ctl-x-5-map "b" 'switch-to-buffer-other-frame) 1407(define-key ctl-x-5-map "b" 'switch-to-buffer-other-frame)
1408(define-key ctl-x-5-map "f" 'find-file-other-frame) 1408(define-key ctl-x-5-map "f" 'find-file-other-frame)