Mercurial > emacs
diff lisp/vc/diff-mode.el @ 109072:c70ff40ac4ce
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.
| author | Chong Yidong <cyd@stupidchicken.com> |
|---|---|
| date | Tue, 29 Jun 2010 14:17:31 -0400 |
| parents | d928a6a7c3f2 |
| children | 25b707510762 b7f3d45194f6 |
line wrap: on
line diff
--- a/lisp/vc/diff-mode.el Tue Jun 29 11:49:20 2010 +0200 +++ b/lisp/vc/diff-mode.el Tue Jun 29 14:17:31 2010 -0400 @@ -97,6 +97,9 @@ :options '(diff-delete-empty-files diff-make-unified) :group 'diff-mode) +(defvar diff-vc-backend nil + "The VC backend that created the current Diff buffer, if any.") + (defvar diff-outline-regexp "\\([*+][*+][*+] [^0-9]\\|@@ ...\\|\\*\\*\\* [0-9].\\|--- [0-9]..\\)")
