diff options
| author | Chong Yidong | 2010-06-29 14:17:31 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-06-29 14:17:31 -0400 |
| commit | a2f043d3d72cbbc0ad64fb271a9f0545791100ec (patch) | |
| tree | bc1bef14bdebdda024fa3d0c4611f1eac53eaa67 /lisp/vc/diff-mode.el | |
| parent | 5d1d3d04611aa010a6bc97bb39d499f28131454c (diff) | |
| download | emacs-a2f043d3d72cbbc0ad64fb271a9f0545791100ec.tar.gz emacs-a2f043d3d72cbbc0ad64fb271a9f0545791100ec.zip | |
Allow global VC ops like `C-x v D' in Diff and Log-View buffers.
* vc/diff-mode.el (diff-vc-backend): New var.
* vc/vc.el (vc-deduce-backend): New fun. Handle diff buffers.
(vc-root-diff, vc-print-root-log, vc-log-incoming)
(vc-log-outgoing): Use it.
(vc-diff-internal): Set diff-vc-backend.
Diffstat (limited to 'lisp/vc/diff-mode.el')
| -rw-r--r-- | lisp/vc/diff-mode.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index adc5a2a0455..0ef9d06c3b2 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -97,6 +97,9 @@ when editing big diffs)." | |||
| 97 | :options '(diff-delete-empty-files diff-make-unified) | 97 | :options '(diff-delete-empty-files diff-make-unified) |
| 98 | :group 'diff-mode) | 98 | :group 'diff-mode) |
| 99 | 99 | ||
| 100 | (defvar diff-vc-backend nil | ||
| 101 | "The VC backend that created the current Diff buffer, if any.") | ||
| 102 | |||
| 100 | (defvar diff-outline-regexp | 103 | (defvar diff-outline-regexp |
| 101 | "\\([*+][*+][*+] [^0-9]\\|@@ ...\\|\\*\\*\\* [0-9].\\|--- [0-9]..\\)") | 104 | "\\([*+][*+][*+] [^0-9]\\|@@ ...\\|\\*\\*\\* [0-9].\\|--- [0-9]..\\)") |
| 102 | 105 | ||