diff options
| author | Juanma Barranquero | 2010-05-21 03:05:50 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-05-21 03:05:50 +0200 |
| commit | 3e17a1a7d7575204bc55e10e9c6cf4a3944f8a24 (patch) | |
| tree | 8caf3621c6431609d4bab3daab36ab0ef610d821 | |
| parent | a078530e0c8fa2f32af31fc9e9081cf9d138705b (diff) | |
| download | emacs-3e17a1a7d7575204bc55e10e9c6cf4a3944f8a24.tar.gz emacs-3e17a1a7d7575204bc55e10e9c6cf4a3944f8a24.zip | |
* smerge-mode.el: Fix typos.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/smerge-mode.el | 22 |
2 files changed, 18 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index de5fd0477c2..15d3d691558 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-05-21 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * smerge-mode.el (smerge-refine-ignore-whitespace) | ||
| 4 | (smerge-refine-weight-hack, smerge-refine, smerge-makeup-conflict): | ||
| 5 | Fix typos in docstrings. | ||
| 6 | (smerge-resolve, smerge-refine-subst): Reflow docstrings. | ||
| 7 | |||
| 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> | 8 | 2010-05-21 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * loadup.el [CANNOT_DUMP]: Update for bootstrap-emacs no longer | 10 | * loadup.el [CANNOT_DUMP]: Update for bootstrap-emacs no longer |
diff --git a/lisp/smerge-mode.el b/lisp/smerge-mode.el index 732f7d19cf9..e9cba88ea1a 100644 --- a/lisp/smerge-mode.el +++ b/lisp/smerge-mode.el | |||
| @@ -457,8 +457,8 @@ BUF contains a plain diff between match-1 and match-3." | |||
| 457 | 457 | ||
| 458 | (defun smerge-resolve (&optional safe) | 458 | (defun smerge-resolve (&optional safe) |
| 459 | "Resolve the conflict at point intelligently. | 459 | "Resolve the conflict at point intelligently. |
| 460 | This relies on mode-specific knowledge and thus only works in | 460 | This relies on mode-specific knowledge and thus only works in some |
| 461 | some major modes. Uses `smerge-resolve-function' to do the actual work." | 461 | major modes. Uses `smerge-resolve-function' to do the actual work." |
| 462 | (interactive) | 462 | (interactive) |
| 463 | (smerge-match-conflict) | 463 | (smerge-match-conflict) |
| 464 | (smerge-remove-props (match-beginning 0) (match-end 0)) | 464 | (smerge-remove-props (match-beginning 0) (match-end 0)) |
| @@ -815,12 +815,12 @@ Its behavior has mainly two restrictions: | |||
| 815 | This only matters if `smerge-refine-weight-hack' is nil.") | 815 | This only matters if `smerge-refine-weight-hack' is nil.") |
| 816 | 816 | ||
| 817 | (defvar smerge-refine-ignore-whitespace t | 817 | (defvar smerge-refine-ignore-whitespace t |
| 818 | "If non-nil,Indicate that smerge-refine should try to ignore change in whitespace.") | 818 | "If non-nil, indicate that `smerge-refine' should try to ignore change in whitespace.") |
| 819 | 819 | ||
| 820 | (defvar smerge-refine-weight-hack t | 820 | (defvar smerge-refine-weight-hack t |
| 821 | "If non-nil, pass to diff as many lines as there are chars in the region. | 821 | "If non-nil, pass to diff as many lines as there are chars in the region. |
| 822 | I.e. each atomic element (e.g. word) will be copied as many times (on different | 822 | I.e. each atomic element (e.g. word) will be copied as many times (on different |
| 823 | lines) as it has chars. This has 2 advantages: | 823 | lines) as it has chars. This has two advantages: |
| 824 | - if `diff' tries to minimize the number *lines* (rather than chars) | 824 | - if `diff' tries to minimize the number *lines* (rather than chars) |
| 825 | added/removed, this adjust the weights so that adding/removing long | 825 | added/removed, this adjust the weights so that adding/removing long |
| 826 | symbols is considered correspondingly more costly. | 826 | symbols is considered correspondingly more costly. |
| @@ -919,8 +919,8 @@ chars to try and eliminate some spurious differences." | |||
| 919 | "Show fine differences in the two regions BEG1..END1 and BEG2..END2. | 919 | "Show fine differences in the two regions BEG1..END1 and BEG2..END2. |
| 920 | PROPS is an alist of properties to put (via overlays) on the changes. | 920 | PROPS is an alist of properties to put (via overlays) on the changes. |
| 921 | If non-nil, PREPROC is called with no argument in a buffer that contains | 921 | If non-nil, PREPROC is called with no argument in a buffer that contains |
| 922 | a copy of a region, just before preparing it to for `diff'. It can be used to | 922 | a copy of a region, just before preparing it to for `diff'. It can be |
| 923 | replace chars to try and eliminate some spurious differences." | 923 | used to replace chars to try and eliminate some spurious differences." |
| 924 | (let* ((buf (current-buffer)) | 924 | (let* ((buf (current-buffer)) |
| 925 | (pos (point)) | 925 | (pos (point)) |
| 926 | (file1 (make-temp-file "diff1")) | 926 | (file1 (make-temp-file "diff1")) |
| @@ -988,9 +988,9 @@ replace chars to try and eliminate some spurious differences." | |||
| 988 | 988 | ||
| 989 | (defun smerge-refine (&optional part) | 989 | (defun smerge-refine (&optional part) |
| 990 | "Highlight the words of the conflict that are different. | 990 | "Highlight the words of the conflict that are different. |
| 991 | For 3-way conflicts, highlights only 2 of the 3 parts. | 991 | For 3-way conflicts, highlights only two of the three parts. |
| 992 | A numeric argument PART can be used to specify which 2 parts; | 992 | A numeric argument PART can be used to specify which two parts; |
| 993 | repeating the command will highlight other 2 parts." | 993 | repeating the command will highlight other two parts." |
| 994 | (interactive | 994 | (interactive |
| 995 | (if (integerp current-prefix-arg) (list current-prefix-arg) | 995 | (if (integerp current-prefix-arg) (list current-prefix-arg) |
| 996 | (smerge-match-conflict) | 996 | (smerge-match-conflict) |
| @@ -1161,7 +1161,7 @@ buffer names." | |||
| 1161 | 1161 | ||
| 1162 | (defun smerge-makeup-conflict (pt1 pt2 pt3 &optional pt4) | 1162 | (defun smerge-makeup-conflict (pt1 pt2 pt3 &optional pt4) |
| 1163 | "Insert diff3 markers to make a new conflict. | 1163 | "Insert diff3 markers to make a new conflict. |
| 1164 | Uses point and mark for 2 of the relevant positions and previous marks | 1164 | Uses point and mark for two of the relevant positions and previous marks |
| 1165 | for the other ones. | 1165 | for the other ones. |
| 1166 | By default, makes up a 2-way conflict, | 1166 | By default, makes up a 2-way conflict, |
| 1167 | with a \\[universal-argument] prefix, makes up a 3-way conflict." | 1167 | with a \\[universal-argument] prefix, makes up a 3-way conflict." |
| @@ -1184,7 +1184,7 @@ with a \\[universal-argument] prefix, makes up a 3-way conflict." | |||
| 1184 | (insert "<<<<<<< MINE\n")) | 1184 | (insert "<<<<<<< MINE\n")) |
| 1185 | (if smerge-mode nil (smerge-mode 1)) | 1185 | (if smerge-mode nil (smerge-mode 1)) |
| 1186 | (smerge-refine)) | 1186 | (smerge-refine)) |
| 1187 | 1187 | ||
| 1188 | 1188 | ||
| 1189 | (defconst smerge-parsep-re | 1189 | (defconst smerge-parsep-re |
| 1190 | (concat smerge-begin-re "\\|" smerge-end-re "\\|" | 1190 | (concat smerge-begin-re "\\|" smerge-end-re "\\|" |