+2007-06-23 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * vc-hg.el (vc-hg-log-view-mode): Fix last change.
+
+ * log-view.el (log-view-mode-menu): New menu.
+
2007-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
* diff-mode.el (diff-font-lock-keywords): Fix M. Kifer's last change
;; or a minor-mode-map with lower precedence than the local map.
:inherit (if (boundp 'cvs-mode-map) cvs-mode-map))
+(easy-menu-define log-view-mode-menu log-view-mode-map
+ "Log-View Display Menu"
+ `("Log-View"
+ ;; XXX Do we need menu entries for these?
+ ;; ["Quit" quit-window]
+ ;; ["Kill This Buffer" kill-this-buffer]
+ ["Mark Log Entry for Diff" set-mark-command]
+ ["Diff Revisions" log-view-diff]
+ ["Visit Version" log-view-find-version]
+ ["Next Log Entry" log-view-msg-next]
+ ["Previous Log Entry" log-view-msg-prev]
+ ["Next File" log-view-file-next]
+ ["Previous File" log-view-file-prev]))
+
(defvar log-view-mode-hook nil
"Hook run at the end of `log-view-mode'.")
"^changeset:[ \t]*\\([0-9]+\\):\\(.+\\)")
(set (make-local-variable 'log-view-font-lock-keywords)
(append
- log-view-font-lock-keywords
+ (copy-alist log-view-font-lock-keywords)
;; Handle the case:
;; user: foo@bar
'(("^user:[ \t]+\\([A-Za-z0-9_.+-]+@[A-Za-z0-9_.-]+\\)"
(1 'change-log-name)
(2 'change-log-email))
("^date: \\(.+\\)" (1 'change-log-date))
- ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message))))))
+ ("^summary:[ \t]+\\(.+\\)" (1 'log-view-message)))))))
(defun vc-hg-diff (file &optional oldvers newvers buffer)
"Get a difference report using hg between two versions of FILE."