aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-09 18:07:28 +0000
committerRichard M. Stallman1994-05-09 18:07:28 +0000
commit17fcf5c535a2f71d099225a1d297f6cf4b48a45a (patch)
treee7d8a10d7802aae293f843d0a740ee4d5319c9f2
parenta9864bafca2075ea92ab7df6d4270dfb5180c5a8 (diff)
downloademacs-17fcf5c535a2f71d099225a1d297f6cf4b48a45a.tar.gz
emacs-17fcf5c535a2f71d099225a1d297f6cf4b48a45a.zip
Doc fixes.
-rw-r--r--lisp/ediff.el220
1 files changed, 110 insertions, 110 deletions
diff --git a/lisp/ediff.el b/lisp/ediff.el
index 7f2584f3848..a3ffdf04229 100644
--- a/lisp/ediff.el
+++ b/lisp/ediff.el
@@ -343,10 +343,10 @@
343;; 343;;
344;; Many Ediff commands take numeric prefix arguments. For instance, if you 344;; Many Ediff commands take numeric prefix arguments. For instance, if you
345;; hit a number, n, and then 'j' (ediff-jump-to-difference), Ediff will 345;; hit a number, n, and then 'j' (ediff-jump-to-difference), Ediff will
346;; take you to n-th difference. Hitting a number, n, and then 'ab' 346;; take you to Nth difference. Hitting a number, n, and then 'ab'
347;; (ediff-diff-to-diff) will copy n-th difference from buffer A to buffer B. 347;; (ediff-diff-to-diff) will copy Nth difference from buffer A to buffer B.
348;; Hitting 'ba' does copying in the other direction. 348;; Hitting 'ba' does copying in the other direction.
349;; Likewise, a number, n, followed by 'ra' will restore the n-th difference 349;; Likewise, a number, n, followed by 'ra' will restore the Nth difference
350;; region in buffer A (if it was previously saved as a result of copying 350;; region in buffer A (if it was previously saved as a result of copying
351;; from B to A). 351;; from B to A).
352;; 352;;
@@ -600,16 +600,16 @@
600(defun ediff-mode () 600(defun ediff-mode ()
601 "Ediff mode is used by the Ediff file-difference package. 601 "Ediff mode is used by the Ediff file-difference package.
602It is entered only through one of the following commands: 602It is entered only through one of the following commands:
603 ``ediff'' 603 `ediff'
604 ``ediff-files'' 604 `ediff-files'
605 ``ediff-buffers'' 605 `ediff-buffers'
606 ``epatch'' 606 `epatch'
607 ``ediff-patch-file'' 607 `ediff-patch-file'
608 ``ediff-patch-buffer'' 608 `ediff-patch-buffer'
609 ``vc-ediff'' 609 `vc-ediff'
610 ``rcs-ediff'' 610 `rcs-ediff'
611or through a non-interactive Emacs Lisp function 611or through a non-interactive Emacs Lisp function
612 ``ediff-files-remote'' 612 `ediff-files-remote'
613 613
614Commands: 614Commands:
615\\{ediff-mode-map}" 615\\{ediff-mode-map}"
@@ -633,9 +633,10 @@ When called interactively, displays the version."
633;; Hook variables 633;; Hook variables
634 634
635(defvar ediff-before-setup-windows-hooks nil 635(defvar ediff-before-setup-windows-hooks nil
636 "* Hooks to run before Ediff sets its own window config. This can be used 636 "* Hooks to run before Ediff sets its own window config.
637to save the previous window config, which can be restored on ediff-quit or 637This can be used to save the previous window config, which can be
638ediff-suspend.") 638restored by `ediff-quit' or `ediff-suspend'.")
639
639(defvar ediff-startup-hooks nil 640(defvar ediff-startup-hooks nil
640 "*Hooks to run in the control buffer after Ediff has been set up.") 641 "*Hooks to run in the control buffer after Ediff has been set up.")
641(defvar ediff-select-hooks nil 642(defvar ediff-select-hooks nil
@@ -645,14 +646,12 @@ ediff-suspend.")
645(defvar ediff-prepare-buffer-hooks nil 646(defvar ediff-prepare-buffer-hooks nil
646 "*Hooks called after buffers A and B are set up.") 647 "*Hooks called after buffers A and B are set up.")
647(defvar ediff-load-hooks nil 648(defvar ediff-load-hooks nil
648 "* Hook run after Ediff is loaded. Can be used to change defaults.") 649 "*Hook run after Ediff is loaded. Can be used to change defaults.")
649 650
650(defvar ediff-suspend-hooks 'ediff-default-suspend-hook 651(defvar ediff-suspend-hooks 'ediff-default-suspend-hook
651 "* Hooks to run in the Ediff control buffer each time Ediff is 652 "*Hooks to run in the Ediff control buffer when Ediff is suspended.")
652suspended.")
653(defvar ediff-quit-hooks 'ediff-default-quit-hook 653(defvar ediff-quit-hooks 'ediff-default-quit-hook
654 "* Hooks to run in the Ediff control buffer after the ediff has been 654 "*Hooks to run in the Ediff control buffer after finishing Ediff.")
655finished.")
656 655
657(make-variable-buffer-local 'local-write-file-hooks) 656(make-variable-buffer-local 'local-write-file-hooks)
658(make-variable-buffer-local 'before-change-function) 657(make-variable-buffer-local 'before-change-function)
@@ -671,32 +670,33 @@ wa/wb - save buf A/B A/B - toggle read-only buf A/B ? - toggle help")
671" ? - toggle help window") 670" ? - toggle help window")
672 671
673(defvar ediff-help-message ediff-help-message-long 672(defvar ediff-help-message ediff-help-message-long
674 "* The actual help message.") 673 "*The actual help message.")
675 674
676 675
677(defvar ediff-diff-program "diff" 676(defvar ediff-diff-program "diff"
678 "* Name of the program that compares two files.") 677 "*Name of the program that compares two files.")
679(defvar ediff-diff-options "" 678(defvar ediff-diff-options ""
680 "* Options to pass to ``ediff-diff-program''.") 679 "*Options to pass to `ediff-diff-program'.")
681 680
682 681
683;; Support for patches 682;; Support for patches
684 683
685(defvar ediff-patch-program "patch" 684(defvar ediff-patch-program "patch"
686 "* Name of the program that applies patches.") 685 "*Name of the program that applies patches.")
687(defvar ediff-patch-options "" 686(defvar ediff-patch-options ""
688 "* Options to pass to ediff-patch-program.") 687 "*Options to pass to ediff-patch-program.")
689 688
690(defvar ediff-shell "sh" 689(defvar ediff-shell "sh"
691 "* The shell used to run diff and patch. If user's .profile or 690 "*The shell used to run diff and patch.
692.cshrc files are set up correctly, any shell will do. However, some people 691If user's .profile or .cshrc files are set up correctly, any shell will do.
693set $prompt or other things incorrectly, which leads to undesirable output 692However, some people set `$prompt' or other things incorrectly, which
694messages. These may cause Ediff to fail. In such a case, set ediff-shell 693leads to undesirable output messages. These may cause Ediff to fail.
695to a shell that you are not using or, better, fix your shell's startup file.") 694In such a case, set `ediff-shell' to a shell that you are not using or,
696 695better, fix your shell's startup file.")
696
697(defvar ediff-diff-ok-lines-regexp 697(defvar ediff-diff-ok-lines-regexp
698 "^\\([0-9,]+[acd][0-9,]+$\\|[<>] \\|---\\|Warning:\\)" 698 "^\\([0-9,]+[acd][0-9,]+$\\|[<>] \\|---\\|Warning:\\)"
699 "*Regexp that matches normal output lines from ``ediff-diff-program''. 699 "*Regexp that matches normal output lines from `ediff-diff-program'.
700This is mostly lifted from Emerge, except that Ediff also considers the 700This is mostly lifted from Emerge, except that Ediff also considers the
701'Missing newline' message to be 'normal output.' 701'Missing newline' message to be 'normal output.'
702Lines that do not match are assumed to be error messages.") 702Lines that do not match are assumed to be error messages.")
@@ -714,31 +714,31 @@ Lines that do not match are assumed to be error messages.")
714;; Copying diffs betw buffers. 714;; Copying diffs betw buffers.
715 715
716(emerge-defvar-local ediff-killed-diffs-alist nil 716(emerge-defvar-local ediff-killed-diffs-alist nil
717 "A list of killed diffs. A diff is saved here if it is replaced by a diff 717 "A list of killed diffs.
718A diff is saved here if it is replaced by a diff
718from another buffer. This alist has the form: 719from another buffer. This alist has the form:
719((num (A . diff) (B . diff)) ...), where A or B parts may be missing.") 720\((num (A . diff) (B . diff)) ...),
721where A or B parts may be missing.")
720 722
721 723
722;; Highlighting 724;; Highlighting
723(defvar ediff-before-flag-bol 725(defvar ediff-before-flag-bol
724 ;"vvvvvvvvvvvvvvvv---- ediff ----vvvvvvvvvvvvvvv\n" 726 ;"vvvvvvvvvvvvvvvv---- ediff ----vvvvvvvvvvvvvvv\n"
725 ">>--->>>\n" 727 ">>--->>>\n"
726 "*Flag placed above the highlighted block of differences. Must end with 728 "*Flag placed above the highlighted block of differences.
727newline. Must be set before Ediff is loaded. If set to nil, the flags from 729Must end with newline. Must be set before Ediff is loaded.
728emerge.el are used.") 730nil means use a default flag string.")
729(defvar ediff-after-flag-bol 731(defvar ediff-after-flag-bol
730 ;"^^^^^^^^^^^^^^^^---- ediff ----^^^^^^^^^^^^^^^\n" 732 ;"^^^^^^^^^^^^^^^^---- ediff ----^^^^^^^^^^^^^^^\n"
731 "<<<---<<\n" 733 "<<<---<<\n"
732 "*Flag placed below the highlighted block of differences. Must end with 734 "*Flag placed below the highlighted block of differences.
733newline. Must be set before Ediff is loaded. If set to nil, the flags from 735Must end with newline. Must be set before Ediff is loaded.
734emerge.el are used.") 736nil means use a default flag string.")
735 737
736(defvar ediff-before-flag-mol ">>--->>>" 738(defvar ediff-before-flag-mol ">>--->>>"
737 "*This is like ediff-before-flag, except it is used when a difference 739 "*Like ediff-before-flag, used when a difference starts in mid-line.")
738region starts in the middle of a line.")
739(defvar ediff-after-flag-mol "<<<---<<" 740(defvar ediff-after-flag-mol "<<<---<<"
740 "*This is like ediff-after-flag, except it is used when a difference 741 "*Like ediff-after-flag, used when a difference starts in mid-line.")
741region starts in the middle of a line.")
742 742
743(emerge-defvar-local ediff-before-flag-A nil 743(emerge-defvar-local ediff-before-flag-A nil
744 "This is the actual ASCII before-flag in effect in buffer A. 744 "This is the actual ASCII before-flag in effect in buffer A.
@@ -763,8 +763,8 @@ or at the beginning of a line.")
763 763
764 764
765(emerge-defvar-local ediff-want-faces t 765(emerge-defvar-local ediff-want-faces t
766 "If t, differences will be highlighted using faces on a window 766 "If t, differences are highlighted using faces on a window system.
767system. If nil, they will be highlighted using ASCII flags, ediff-before-flag 767If nil, they are highlighted using ASCII flags, ediff-before-flag
768and ediff-after-flag. On a non-window system, differences are always 768and ediff-after-flag. On a non-window system, differences are always
769highlighted using ASCII flags. 769highlighted using ASCII flags.
770 770
@@ -773,14 +773,14 @@ interactively, using ediff-toggle-hilit.")
773 773
774(emerge-defvar-local ediff-highlight-selected-only nil 774(emerge-defvar-local ediff-highlight-selected-only nil
775 "If t, only the selected differences are highlighted. 775 "If t, only the selected differences are highlighted.
776 776This is not a user option. Can be set either in `.emacs' or toggled
777This is not a user option. Can be set either in .emacs or toggled 777interactively, using `ediff-toggle-hilit'.")
778interactively, using ediff-toggle-hilit.")
779 778
780(emerge-defvar-local ediff-highlighting-style nil 779(emerge-defvar-local ediff-highlighting-style nil
781 "A var local to each ediff-control buffer. Indicates highlighting style 780 "A var local to each ediff-control buffer.
782in effect for this buffer: 'face, 'ascii, nil -- temporarily unhighlighted, 781Indicates highlighting style in effect for this buffer: `face', `ascii',
783'off -- turned off \(on a dumb terminal only\).") 782nil -- temporarily unhighlighted, `off' -- turned off \(on a dumb
783terminal only\).")
784 784
785 785
786 786
@@ -813,11 +813,11 @@ in effect for this buffer: 'face, 'ascii, nil -- temporarily unhighlighted,
813 "Remembers ediff-saved-variables for ediff-B-buffer as they were at setup.") 813 "Remembers ediff-saved-variables for ediff-B-buffer as they were at setup.")
814 814
815(emerge-defvar-local ediff-difference-vector nil 815(emerge-defvar-local ediff-difference-vector nil
816 "Vector of differences between the variants. Each difference is 816 "Vector of differences between the variants.
817represented by a vector of two overlays. The first overlays the difference 817Each difference is represented by a vector of two overlays. The first
818section in the A buffer and the second overlays the diff in the B buffer. 818overlays the difference section in the A buffer and the second
819If a difference section is empty, the corresponding overlay's endpoints 819overlays the diff in the B buffer. If a difference section is empty,
820councide. ") 820the corresponding overlay's endpoints councide. ")
821 821
822(emerge-defvar-local ediff-current-difference -1 822(emerge-defvar-local ediff-current-difference -1
823 "The difference that is currently selected.") 823 "The difference that is currently selected.")
@@ -830,12 +830,10 @@ councide. ")
830 "Buffer containing the output of diff, when diff returns errors.") 830 "Buffer containing the output of diff, when diff returns errors.")
831 831
832(emerge-defvar-local ediff-this-buffer-control-sessions nil 832(emerge-defvar-local ediff-this-buffer-control-sessions nil
833 "Keeps the list of ediff-control buffers associated with each buffer A/B 833 "List of ediff-control buffers associated with each buffer A/B.")
834involved in an ediff session.")
835 834
836(defvar ediff-disturbed-overlays nil 835(defvar ediff-disturbed-overlays nil
837 "A list of difference overlays that were disturbed by copying or recovery 836 "List of difference overlays disturbed by working with the current diff.")
838of the current diff.")
839 837
840(defvar ediff-shaded-overlay-priority 838(defvar ediff-shaded-overlay-priority
841 (if (ediff-if-lucid) 839 (if (ediff-if-lucid)
@@ -1049,8 +1047,8 @@ the Ediff display")
1049;;; Misc 1047;;; Misc
1050 1048
1051(defvar ediff-split-window-function 'split-window-vertically 1049(defvar ediff-split-window-function 'split-window-vertically
1052 "* The function to be called to divide the main window between buffer-A 1050 "*The function to split the main window between buffer-A and buffer-B.
1053and buffer-B. You can set it to be split horizontally instead of the 1051You can set it to be split horizontally instead of the
1054default verstical split by setting this variable to 1052default verstical split by setting this variable to
1055'split-window-horizontally. You can also have your own function for fancy 1053'split-window-horizontally. You can also have your own function for fancy
1056splits. This variable has no effect when buffer-A and buffer-B are shown in 1054splits. This variable has no effect when buffer-A and buffer-B are shown in
@@ -1060,19 +1058,17 @@ these buffers.")
1060(defconst ediff-saved-variables 1058(defconst ediff-saved-variables
1061 '(buffer-read-only 1059 '(buffer-read-only
1062 buffer-auto-save-file-name) 1060 buffer-auto-save-file-name)
1063 "Variables and properties of a buffer which are saved, modified and restored 1061 "Buffer-local variables saved and restored during an Ediff session.")
1064during an Ediff session.")
1065 1062
1066(defconst ediff-working-values '(nil nil) 1063(defconst ediff-working-values '(nil nil)
1067 "Values to be assigned to ediff-saved-variables during diff.") 1064 "Values to be assigned to `ediff-saved-variables' during diff.")
1068 1065
1069(defvar ediff-use-last-dir nil 1066(defvar ediff-use-last-dir nil
1070 "* If t, Ediff will use last directory it had seen as a default 1067 "*If t, Ediff uses previous directory as default when reading file name.")
1071directory when prompting for file names.")
1072 1068
1073(defvar ediff-nix-help-in-control-buffer nil 1069(defvar ediff-nix-help-in-control-buffer nil
1074 "*Don't want C-h to invoke Emacs help. Instead, C-h will jump to previous 1070 "*Non-nil mean C-h should not to invoke Emacs help.
1075difference.") 1071Instead, C-h jumps to previous difference.")
1076 1072
1077(defvar ediff-temp-file-prefix 1073(defvar ediff-temp-file-prefix
1078 (let ((env (getenv "TMPDIR")) 1074 (let ((env (getenv "TMPDIR"))
@@ -1308,7 +1304,7 @@ Else, read patch file into a new buffer."
1308 1304
1309;;;###autoload 1305;;;###autoload
1310(defun ediff-patch-file (file-to-patch &optional startup-hooks) 1306(defun ediff-patch-file (file-to-patch &optional startup-hooks)
1311 "Run Ediff by patching FILE-TP-PATCH." 1307 "Run Ediff by patching FILE-TO-PATCH."
1312 (interactive "fFile to patch: ") 1308 (interactive "fFile to patch: ")
1313 1309
1314 (ediff-get-patch-buffer (file-name-directory file-to-patch)) 1310 (ediff-get-patch-buffer (file-name-directory file-to-patch))
@@ -1614,9 +1610,9 @@ With prefix argument, prompts for revision name."
1614 (ediff-set-keys)) 1610 (ediff-set-keys))
1615 1611
1616(defun ediff-before-change-guard (start end) 1612(defun ediff-before-change-guard (start end)
1617 "If buffer is highlighted with ASCII flags, remove highlighting before 1613 "If buffer is highlighted with ASCII flags, remove highlighting.
1618changing buf. Arguments, START and END are not used, but are provided 1614Arguments, START and END are not used, but are provided
1619because this is required by ``before-change-function''." 1615because this is required by `before-change-function'."
1620 (let (notify) 1616 (let (notify)
1621 (save-window-excursion 1617 (save-window-excursion
1622 (mapcar 1618 (mapcar
@@ -1640,10 +1636,10 @@ because this is required by ``before-change-function''."
1640 1636
1641(defun ediff-remember-buffer-characteristics (&optional arg) 1637(defun ediff-remember-buffer-characteristics (&optional arg)
1642 "Record certain properties of the buffers being compared. 1638 "Record certain properties of the buffers being compared.
1643Must be called in the control buffer. Saves ``read-only'', ``modified'', 1639Must be called in the control buffer. Saves `read-only', `modified',
1644and ``auto-save'' properties in buffer local variables. Turns off 1640and `auto-save' properties in buffer local variables. Turns off
1645``auto-save-mode''. These properties are restored via a call to 1641`auto-save-mode'. These properties are restored via a call to
1646``ediff-restore-buffer-characteristics''." 1642`ediff-restore-buffer-characteristics'."
1647 1643
1648 ;; remember and alter buffer characteristics 1644 ;; remember and alter buffer characteristics
1649 (set (if arg 'ediff-A-buffer-values-setup 'ediff-A-buffer-values) 1645 (set (if arg 'ediff-A-buffer-values-setup 'ediff-A-buffer-values)
@@ -1662,7 +1658,7 @@ and ``auto-save'' properties in buffer local variables. Turns off
1662 ediff-working-values))))) 1658 ediff-working-values)))))
1663 1659
1664(defun ediff-restore-buffer-characteristics (&optional arg) 1660(defun ediff-restore-buffer-characteristics (&optional arg)
1665 "Restores properties saved by ``ediff-remember-buffer-characteristics''." 1661 "Restores properties saved by `ediff-remember-buffer-characteristics'."
1666 (let ((A-values (if arg ediff-A-buffer-values-setup ediff-A-buffer-values)) 1662 (let ((A-values (if arg ediff-A-buffer-values-setup ediff-A-buffer-values))
1667 (B-values (if arg ediff-B-buffer-values-setup ediff-B-buffer-values))) 1663 (B-values (if arg ediff-B-buffer-values-setup ediff-B-buffer-values)))
1668 (emerge-eval-in-buffer ediff-A-buffer 1664 (emerge-eval-in-buffer ediff-A-buffer
@@ -2081,7 +2077,7 @@ the width of the A and B windows."
2081 default-amount)))))) 2077 default-amount))))))
2082 2078
2083(defun ediff-position-region (beg end pos) 2079(defun ediff-position-region (beg end pos)
2084 "This is a variation on ``emerge-position-region''. 2080 "This is a variation on `emerge-position-region'.
2085The difference is that it always tries to align difference regions in 2081The difference is that it always tries to align difference regions in
2086buffer-A and buffer-B, so that it will be easier to compare them." 2082buffer-A and buffer-B, so that it will be easier to compare them."
2087 (set-window-start (selected-window) beg) 2083 (set-window-start (selected-window) beg)
@@ -2137,7 +2133,7 @@ With a prefix argument, go back that many differences."
2137(defun ediff-jump-to-difference-at-point () 2133(defun ediff-jump-to-difference-at-point ()
2138 "Go to the difference closest to the point in buffer A or B. 2134 "Go to the difference closest to the point in buffer A or B.
2139If this command is invoked via `ja' or `ga' then the point in buffer A is 2135If this command is invoked via `ja' or `ga' then the point in buffer A is
2140used. Otherwise, buffer B is used." 2136used. Otherwise, buffer B is used."
2141 (interactive) 2137 (interactive)
2142 (let ((buffer-read-only nil) 2138 (let ((buffer-read-only nil)
2143 (buf-type (if (eq last-command-char ?a) 'A 'B))) 2139 (buf-type (if (eq last-command-char ?a) 'A 'B)))
@@ -2172,7 +2168,7 @@ used. Otherwise, buffer B is used."
2172(defun ediff-diff-to-diff (arg) 2168(defun ediff-diff-to-diff (arg)
2173 "Copy buffer-A'th diff to buffer B. 2169 "Copy buffer-A'th diff to buffer B.
2174If numerical prefix argument, copy this diff specified in the arg. 2170If numerical prefix argument, copy this diff specified in the arg.
2175Otherwise, copy the difference given by ``ediff-current-difference''." 2171Otherwise, copy the difference given by `ediff-current-difference'."
2176 (interactive "P") 2172 (interactive "P")
2177 (if arg 2173 (if arg
2178 (ediff-jump-to-difference arg)) 2174 (ediff-jump-to-difference arg))
@@ -2182,7 +2178,7 @@ Otherwise, copy the difference given by ``ediff-current-difference''."
2182 2178
2183 2179
2184(defun ediff-copy-diff (n buf-type) 2180(defun ediff-copy-diff (n buf-type)
2185 "Copy diff N from BUF-TYPE \(given as 'A or 'B\)." 2181 "Copy diff N from BUF-TYPE \(given as `A' or `B'\)."
2186 (let* ((other-buf (if (eq buf-type 'A) 2182 (let* ((other-buf (if (eq buf-type 'A)
2187 ediff-B-buffer ediff-A-buffer)) 2183 ediff-B-buffer ediff-A-buffer))
2188 (buf (if (eq buf-type 'A) 2184 (buf (if (eq buf-type 'A)
@@ -2251,9 +2247,10 @@ Otherwise, copy the difference given by ``ediff-current-difference''."
2251 )) 2247 ))
2252 2248
2253(defun ediff-save-diff-region (n buf-type reg) 2249(defun ediff-save-diff-region (n buf-type reg)
2254 "Save N-th diff of buffer BUF-TYPE \('A or 'B\) on the 2250 "Save Nth diff of buffer BUF-TYPE \(`A' or `B'\).
2255``ediff-killed-diffs-alist''. REG is the region to save. 2251That is to say, the Nth diff on the `ediff-killed-diffs-alist'. REG
2256It is redundant here,but is passed anyway, for convenience." 2252is the region to save. It is redundant here,but is passed anyway, for
2253convenience."
2257 2254
2258 (let* ((n-th-diff-saved (assoc n ediff-killed-diffs-alist)) 2255 (let* ((n-th-diff-saved (assoc n ediff-killed-diffs-alist))
2259 (this-buf-n-th-diff-saved (assoc buf-type (cdr n-th-diff-saved)))) 2256 (this-buf-n-th-diff-saved (assoc buf-type (cdr n-th-diff-saved))))
@@ -2271,7 +2268,7 @@ It is redundant here,but is passed anyway, for convenience."
2271 (1+ n) buf-type (if (eq buf-type 'A) "ra" "rb")))) 2268 (1+ n) buf-type (if (eq buf-type 'A) "ra" "rb"))))
2272 2269
2273(defun ediff-test-save-region (n buf-type) 2270(defun ediff-test-save-region (n buf-type)
2274 "Test if saving N-th difference region of buffer BUF-TYPE is possible." 2271 "Test if saving Nth difference region of buffer BUF-TYPE is possible."
2275 (let* ((n-th-diff-saved (assoc n ediff-killed-diffs-alist)) 2272 (let* ((n-th-diff-saved (assoc n ediff-killed-diffs-alist))
2276 (this-buf-n-th-diff-saved (assoc buf-type (cdr n-th-diff-saved)))) 2273 (this-buf-n-th-diff-saved (assoc buf-type (cdr n-th-diff-saved))))
2277 2274
@@ -2285,7 +2282,7 @@ It is redundant here,but is passed anyway, for convenience."
2285 t))) 2282 t)))
2286 2283
2287(defun ediff-pop-diff (n buf-type) 2284(defun ediff-pop-diff (n buf-type)
2288 "Pop last killed N-th diff region from buffer BUF-TYPE." 2285 "Pop last killed Nth diff region from buffer BUF-TYPE."
2289 (let* ((n-th-record (assoc n ediff-killed-diffs-alist)) 2286 (let* ((n-th-record (assoc n ediff-killed-diffs-alist))
2290 (saved-rec (assoc buf-type (cdr n-th-record))) 2287 (saved-rec (assoc buf-type (cdr n-th-record)))
2291 (buf (if (eq buf-type 'A) ediff-A-buffer ediff-B-buffer)) 2288 (buf (if (eq buf-type 'A) ediff-A-buffer ediff-B-buffer))
@@ -2336,8 +2333,8 @@ It is redundant here,but is passed anyway, for convenience."
2336 )) 2333 ))
2337 2334
2338(defun ediff-restore-diff (arg) 2335(defun ediff-restore-diff (arg)
2339 "Restore ARG-th diff from ediff-killed-diffs-alist. 2336 "Restore ARGth diff from `ediff-killed-diffs-alist'.
2340ARG is a prefix argument. If ARG is `nil', restore current-difference." 2337ARG is a prefix argument. If ARG is nil, restore current-difference."
2341 (interactive "P") 2338 (interactive "P")
2342 (if arg 2339 (if arg
2343 (ediff-jump-to-difference arg)) 2340 (ediff-jump-to-difference arg))
@@ -2437,8 +2434,9 @@ flags of the compared file buffers, kills Ediff buffers for this session
2437 2434
2438 2435
2439(defun ediff-suspend () 2436(defun ediff-suspend ()
2440 "Suspend Ediff. To resume, switch to the appropriate ``*ediff-control*'' 2437 "Suspend Ediff.
2441buffer and then hit ``\\[ediff-recenter]''. Ediff will automatically set 2438To resume, switch to the appropriate `*ediff-control*'
2439buffer and then type \\[ediff-recenter]. Ediff will automatically set
2442up an appropriate window config." 2440up an appropriate window config."
2443 (interactive) 2441 (interactive)
2444 (run-hooks 'ediff-suspend-hooks) 2442 (run-hooks 'ediff-suspend-hooks)
@@ -2448,7 +2446,7 @@ up an appropriate window config."
2448 2446
2449(defun ediff-file-names () 2447(defun ediff-file-names ()
2450 "Show the names of the buffers or files being operated on by Ediff. 2448 "Show the names of the buffers or files being operated on by Ediff.
2451Hit ``\\[ediff-recenter]'' to reset the windows afterward." 2449Hit \\[ediff-recenter] to reset the windows afterward."
2452 (interactive) 2450 (interactive)
2453 (with-output-to-temp-buffer "*Help*" 2451 (with-output-to-temp-buffer "*Help*"
2454 (emerge-eval-in-buffer ediff-A-buffer 2452 (emerge-eval-in-buffer ediff-A-buffer
@@ -2538,10 +2536,10 @@ This function displays the line numbers of the points in the A, B."
2538;; unselected, but the next one is not selected. If NO-RECENTER is non-nil, 2536;; unselected, but the next one is not selected. If NO-RECENTER is non-nil,
2539;; don't recenter buffers after selecting/unselecting. 2537;; don't recenter buffers after selecting/unselecting.
2540;; 2538;;
2541;; Don't use ``ediff-select-difference'' and ``ediff-unselect-difference'' 2539;; Don't use `ediff-select-difference' and `ediff-unselect-difference'
2542;; directly,;; since this will screw up the undo info in the presence of 2540;; directly,;; since this will screw up the undo info in the presence of
2543;; ASCII flags. 2541;; ASCII flags.
2544;; Instead, use ``ediff-unselect-and-select-difference'' with appropriate 2542;; Instead, use `ediff-unselect-and-select-difference' with appropriate
2545;; flags. 2543;; flags.
2546 2544
2547(defun ediff-unselect-and-select-difference (n &optional flag no-recenter) 2545(defun ediff-unselect-and-select-difference (n &optional flag no-recenter)
@@ -2620,7 +2618,7 @@ This function displays the line numbers of the points in the A, B."
2620 2618
2621 2619
2622(defun ediff-read-file-name (prompt default-dir default-file A-file) 2620(defun ediff-read-file-name (prompt default-dir default-file A-file)
2623; This is a modified version of a similar function in ``emerge.el''. 2621; This is a modified version of a similar function in `emerge.el'.
2624; PROMPT should not have trailing ': ', so that it can be modified 2622; PROMPT should not have trailing ': ', so that it can be modified
2625; according to context. 2623; according to context.
2626; If both A-FILE and default-dir are set, the file constructed our of 2624; If both A-FILE and default-dir are set, the file constructed our of
@@ -2747,10 +2745,10 @@ them before they disappear."
2747 2745
2748 2746
2749 2747
2748;; Essentially `emerge-remove-flags-in-buffer', modified to allow deletion
2749;; of read-only flags.
2750(defun ediff-remove-flags-from-buffer (buffer before-posn after-posn 2750(defun ediff-remove-flags-from-buffer (buffer before-posn after-posn
2751 before-flag after-flag) 2751 before-flag after-flag)
2752 "Essentially ``emerge-remove-flags-in-buffer'', modified to allow deletion
2753of read-only flags."
2754 (emerge-eval-in-buffer 2752 (emerge-eval-in-buffer
2755 buffer 2753 buffer
2756 (let ((buffer-read-only nil) 2754 (let ((buffer-read-only nil)
@@ -2787,14 +2785,14 @@ of read-only flags."
2787 ))) 2785 )))
2788 2786
2789 2787
2788;; This is a modified `emerge-place-flags-in-buffer'.
2790(defun ediff-place-flags-in-buffer (buf-type buffer ctl-buffer difference) 2789(defun ediff-place-flags-in-buffer (buf-type buffer ctl-buffer difference)
2791 "This is a modified ``emerge-place-flags-in-buffer''."
2792 (emerge-eval-in-buffer 2790 (emerge-eval-in-buffer
2793 buffer 2791 buffer
2794 (ediff-place-flags-in-buffer1 buf-type ctl-buffer difference))) 2792 (ediff-place-flags-in-buffer1 buf-type ctl-buffer difference)))
2795 2793
2794;; Modified `emerge-place-flags-in-buffer1'.
2796(defun ediff-place-flags-in-buffer1 (buf-type ctl-buffer difference) 2795(defun ediff-place-flags-in-buffer1 (buf-type ctl-buffer difference)
2797 "Modified ``emerge-place-flags-in-buffer1''."
2798 (let ((buffer-read-only nil) 2796 (let ((buffer-read-only nil)
2799 (inhibit-read-only t) 2797 (inhibit-read-only t)
2800 (before-change-function nil) 2798 (before-change-function nil)
@@ -2847,13 +2845,15 @@ of read-only flags."
2847 2845
2848 2846
2849(defun ediff-get-diff-posn (buf-type pos &optional n control-buf) 2847(defun ediff-get-diff-posn (buf-type pos &optional n control-buf)
2850 "Returns positions of difference sectors in the buffer denoted BUF-TYPE 2848 "Returns positions of difference sectors in the BUF-TYPE buffer.
2851\('A or 'B\). 2849BUF-TYPE should be a symbol--either `A' or `B'.
2852POS is either 'beg or 'end. Specifies whether you want the position at the 2850POS is either `beg' or `end'--it specifies whether you want the position at the
2853beginning of a difference of at the end. Optional N says which difference 2851beginning of a difference of at the end.
2854\(default: ``ediff-current-difference''\). Optional CONTROL-BUF says which 2852
2855control buffer is in effect in case it is not the current buffer." 2853The optional argument N says which difference \(default:
2856 2854`ediff-current-difference'\). The optional argument CONTROL-BUF says
2855which control buffer is in effect in case it is not the current
2856buffer."
2857 (let (diff-overlay) 2857 (let (diff-overlay)
2858 (or control-buf 2858 (or control-buf
2859 (setq control-buf (current-buffer))) 2859 (setq control-buf (current-buffer)))
@@ -2972,8 +2972,8 @@ control buffer is in effect in case it is not the current buffer."
2972 2972
2973 2973
2974(defun ediff-operate-on-flags (action) 2974(defun ediff-operate-on-flags (action)
2975 "Re/unhighlights buffers A and B with all flags from all active Ediff 2975 "Re/unhighlights buffers A and B with all flags from all Ediff sessions.
2976sessions that involve these buffers. This is usually needed only when a 2976This is usually needed only when a
2977buffer is involved in multiple Ediff sessions." 2977buffer is involved in multiple Ediff sessions."
2978 (let* ((A-sessions (emerge-eval-in-buffer 2978 (let* ((A-sessions (emerge-eval-in-buffer
2979 ediff-A-buffer 2979 ediff-A-buffer
@@ -3001,7 +3001,7 @@ buffer is involved in multiple Ediff sessions."
3001The result list contains all items that appear in either LIST1 or LIST2. 3001The result list contains all items that appear in either LIST1 or LIST2.
3002This is a non-destructive function; it makes a copy of the data if necessary 3002This is a non-destructive function; it makes a copy of the data if necessary
3003to avoid corrupting the original LIST1 and LIST2. 3003to avoid corrupting the original LIST1 and LIST2.
3004This is a slightly simplified version from ``cl-seq.el''. Added here to 3004This is a slightly simplified version from `cl-seq.el'. Added here to
3005avoid loading cl-*." 3005avoid loading cl-*."
3006 (cond ((null list1) list2) ((null list2) list1) 3006 (cond ((null list1) list2) ((null list2) list1)
3007 ((equal list1 list2) list1) 3007 ((equal list1 list2) list1)