# HG changeset patch # User Masatake YAMATO # Date 1185646285 0 # Node ID b8ea0870f6debe3c071bdb28faeba100a06a06a8 # Parent 3b2cbc59143e6a277867a8a440febcd752238a64 (vc-dired-mode): Added a menu for VC related operation. Use backend name as the menu label Suggested by David Kastrup. diff -r 3b2cbc59143e -r b8ea0870f6de lisp/ChangeLog --- a/lisp/ChangeLog Sat Jul 28 18:00:35 2007 +0000 +++ b/lisp/ChangeLog Sat Jul 28 18:11:25 2007 +0000 @@ -1,3 +1,9 @@ +2007-07-28 Masatake YAMATO + + * vc.el (vc-dired-mode): Added a menu for VC related + operation. Use backend name as the menu label Suggested by + David Kastrup. + 2007-07-28 Alan Mackenzie Fix problem with modes derived from CC Mode: diff -r 3b2cbc59143e -r b8ea0870f6de lisp/vc.el --- a/lisp/vc.el Sat Jul 28 18:00:35 2007 +0000 +++ b/lisp/vc.el Sat Jul 28 18:11:25 2007 +0000 @@ -2233,8 +2233,13 @@ (set (make-local-variable 'dired-actual-switches) vc-dired-switches)) (set (make-local-variable 'vc-dired-terse-mode) vc-dired-terse-display) - (setq mode-name (concat mode-name (symbol-name (vc-responsible-backend - default-directory)))) + (let ((backend-name (symbol-name (vc-responsible-backend + default-directory)))) + (setq mode-name (concat mode-name backend-name)) + ;; Add menu after `vc-dired-mode-map' has `dired-mode-map' as the parent. + (let ((vc-dire-menu-map (copy-keymap vc-menu-map))) + (define-key-after (lookup-key vc-dired-mode-map [menu-bar]) [vc] + (cons backend-name vc-dire-menu-map) 'subdir))) (setq vc-dired-mode t)) (defun vc-dired-toggle-terse-mode ()