From 469ca4030a351d865a4412a284ace9d2e11cf9e7 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Fri, 20 Jun 2008 17:16:41 +0000 Subject: [PATCH] (vc-mtn-log-view-mode): Set log-view-per-file-logs and log-view-file-re. --- lisp/ChangeLog | 3 +++ lisp/vc-mtn.el | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 826390127a6..6ecf3dd3fc5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -5,6 +5,9 @@ 2008-06-20 Dan Nicolaescu + * vc-mtn.el (vc-mtn-log-view-mode): Set log-view-per-file-logs and + log-view-file-re. + * vc.el (vc-dir-hide-up-to-date): Undo previous change. (vc-switch-backend): Simplify. (Todo): Remove solved items. diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el index 4a415bbf34a..b20b1db48d0 100644 --- a/lisp/vc-mtn.el +++ b/lisp/vc-mtn.el @@ -24,6 +24,11 @@ ;; +;;; TODO: + +;; - The `previous-version' VC method needs to be supported, 'D' in +;; log-view-mode uses it. + ;;; Code: (eval-when-compile (require 'cl) (require 'vc)) @@ -158,10 +163,12 @@ (defvar log-view-message-re) (defvar log-view-file-re) (defvar log-view-font-lock-keywords) +(defvar log-view-per-file-logs) (define-derived-mode vc-mtn-log-view-mode log-view-mode "Mtn-Log-View" - ;; TODO: Not sure what to do about file markers for now. - (set (make-local-variable 'log-view-file-re) "\\'\\`") + ;; Don't match anything. + (set (make-local-variable 'log-view-file-re) "\\`a\\`") + (set (make-local-variable 'log-view-per-file-logs) nil) ;; TODO: Use a more precise regexp than "[ |/]+" to avoid false positives ;; in the ChangeLog text. (set (make-local-variable 'log-view-message-re) -- 2.39.2