(diff-default-read-only): Change default.
commit22cd1973d54a817eb0b0a8e9a9bf6e07323817fa
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Mar 2004 20:50:36 +0000 (23 20:50 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Mar 2004 20:50:36 +0000 (23 20:50 +0000)
tree383324e2ddd359fcc39151443a5c1adc45426f47
parent5bd8d87b8563f93070292d95144b03793a930104
(diff-default-read-only): Change default.
(diff-mode-hook): Make it a defcustom.  Add some options.
(diff-mode-map): Bind diff-refine-hook.
(diff-yank-handler): New var.
(diff-yank-function): New fun.
(diff-font-lock-keywords): Use them.
(diff-end-of-file): Handle case where file-header looks like diff text.
(diff-hunk-kill): Adjust to "new" hunk-next behavior.
(diff-file-kill): Delete a subsequent empty line, if applicable.
(diff-hunk-file-names): New fun, extracted from diff-tell-file-name.
(diff-find-file-name): Use it.
(diff-tell-file-name): New command.
(diff-mode): Be careful with view-mode.
(diff-delete-if-empty, diff-delete-empty-files, diff-make-unified):
New functions, for use in diff-mode-hook.
(diff-find-source-location): Catch "regex too large" errors.
(diff-apply-hunk, diff-test-hunk): Go to old or new file.
(diff-refine-hunk): New command.
lisp/diff-mode.el