comparison lisp/diff-mode.el @ 76323:0aef0bcf12f7

(diff-mode): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Mon, 05 Mar 2007 03:14:25 +0000
parents 612c9d0aab1d
children 5e29de959ce6
comparison
equal deleted inserted replaced
76322:052f8c19bfe2 76323:0aef0bcf12f7
983 983
984 ;;;###autoload 984 ;;;###autoload
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.
992 994
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)
1000 diff-imenu-generic-expression) 1007 diff-imenu-generic-expression)
1001 ;; These are not perfect. They would be better done separately for 1008 ;; These are not perfect. They would be better done separately for