diff options
| author | Karoly Lorentey | 2007-04-22 12:12:29 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2007-04-22 12:12:29 +0000 |
| commit | e18c709364b095ea0be8ecabe458ac9a642a252f (patch) | |
| tree | efe814a842f932f387b3947c572bf43a548d17ef /lisp/diff-mode.el | |
| parent | 81088e260b086fe28f36964f32b6338210ec6fd8 (diff) | |
| parent | 9f25e707aaad5ed14a9448e9c5d345ff0bdbc5a7 (diff) | |
| download | emacs-e18c709364b095ea0be8ecabe458ac9a642a252f.tar.gz emacs-e18c709364b095ea0be8ecabe458ac9a642a252f.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-660
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-661
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-662
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-663
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-664
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-665
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-666
Fix read-only prompt problem in isearch
* emacs@sv.gnu.org/emacs--devo--0--patch-667
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-668
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-669
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-670
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-671
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-672
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-673
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-206
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-207
Merge from emacs--devo--0
* emacs@sv.gnu.org/gnus--rel--5.10--patch-208
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-600
Diffstat (limited to 'lisp/diff-mode.el')
| -rw-r--r-- | lisp/diff-mode.el | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index c4fac402dbf..543e1bd6a39 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -985,7 +985,9 @@ See `after-change-functions' for the meaning of BEG, END and LEN." | |||
| 985 | (define-derived-mode diff-mode fundamental-mode "Diff" | 985 | (define-derived-mode diff-mode fundamental-mode "Diff" |
| 986 | "Major mode for viewing/editing context diffs. | 986 | "Major mode for viewing/editing context diffs. |
| 987 | Supports unified and context diffs as well as (to a lesser extent) | 987 | Supports unified and context diffs as well as (to a lesser extent) |
| 988 | normal diffs. | 988 | normal diffs. If you edit the buffer manually, diff-mode will try |
| 989 | to update the hunk headers for you on-the-fly. | ||
| 990 | |||
| 989 | When the buffer is read-only, the ESC prefix is not necessary. | 991 | When the buffer is read-only, the ESC prefix is not necessary. |
| 990 | If you edit the buffer manually, diff-mode will try to update the hunk | 992 | If you edit the buffer manually, diff-mode will try to update the hunk |
| 991 | headers for you on-the-fly. | 993 | headers for you on-the-fly. |
| @@ -993,7 +995,12 @@ headers for you on-the-fly. | |||
| 993 | You can also switch between context diff and unified diff with \\[diff-context->unified], | 995 | You can also switch between context diff and unified diff with \\[diff-context->unified], |
| 994 | or vice versa with \\[diff-unified->context] and you can also reverse the direction of | 996 | or vice versa with \\[diff-unified->context] and you can also reverse the direction of |
| 995 | a diff with \\[diff-reverse-direction]. | 997 | a diff with \\[diff-reverse-direction]. |
| 996 | \\{diff-mode-map}" | 998 | |
| 999 | When the buffer is read-only, the Meta- modifier is not necessary | ||
| 1000 | to run the Diff mode commands: | ||
| 1001 | |||
| 1002 | \\{diff-mode-map}" | ||
| 1003 | |||
| 997 | (set (make-local-variable 'font-lock-defaults) diff-font-lock-defaults) | 1004 | (set (make-local-variable 'font-lock-defaults) diff-font-lock-defaults) |
| 998 | (set (make-local-variable 'outline-regexp) diff-outline-regexp) | 1005 | (set (make-local-variable 'outline-regexp) diff-outline-regexp) |
| 999 | (set (make-local-variable 'imenu-generic-expression) | 1006 | (set (make-local-variable 'imenu-generic-expression) |
| @@ -1368,7 +1375,8 @@ With a prefix argument, REVERSE the hunk." | |||
| 1368 | (yes-or-no-p (format "Really apply this hunk to %s? " | 1375 | (yes-or-no-p (format "Really apply this hunk to %s? " |
| 1369 | (file-name-nondirectory | 1376 | (file-name-nondirectory |
| 1370 | buffer-file-name))))))) | 1377 | buffer-file-name))))))) |
| 1371 | (error (substitute-command-keys | 1378 | (error "%s" |
| 1379 | (substitute-command-keys | ||
| 1372 | (format "Use %s\\[diff-apply-hunk] to apply it to the other file" | 1380 | (format "Use %s\\[diff-apply-hunk] to apply it to the other file" |
| 1373 | (if (not reverse) "\\[universal-argument] "))))) | 1381 | (if (not reverse) "\\[universal-argument] "))))) |
| 1374 | ((and switched | 1382 | ((and switched |