emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/vc.el,v


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/lisp/vc.el,v
Date: Fri, 07 Mar 2008 10:37:45 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jan Djärv <jhd>        08/03/07 10:37:44

Index: vc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc.el,v
retrieving revision 1.546
retrieving revision 1.547
diff -u -b -r1.546 -r1.547
--- vc.el       6 Mar 2008 10:58:48 -0000       1.546
+++ vc.el       7 Mar 2008 10:37:44 -0000       1.547
@@ -2801,6 +2801,8 @@
   "Keymap for VC status")
 
 (defun vc-status-menu-map-filter (orig-binding)
+  (if (boundp 'vc-ignore-menu-filter)
+      orig-binding
   (when (and (symbolp orig-binding) (fboundp orig-binding))
     (setq orig-binding (indirect-function orig-binding)))
   (let ((ext-binding
@@ -2810,16 +2812,17 @@
         orig-binding
       (append orig-binding
              '("----")
-              ext-binding))))
+               ext-binding)))))
 
 (defun vc-status-menu (e)
   "Popup the VC status menu."
   (interactive "e")
   (popup-menu vc-status-menu-map e))
 
-(defun vc-status-tool-bar-map ()
+(defvar vc-status-tool-bar-map
   (if (display-graphic-p)
-      (let ((map (make-sparse-keymap)))
+      (let ((map (make-sparse-keymap))
+           (vc-ignore-menu-filter t)) ;; Backend may not support vc-status
        (tool-bar-local-item-from-menu 'vc-status-find-file "open" 
                                       map vc-status-mode-map)
        (tool-bar-local-item "bookmark_add" 
@@ -2854,7 +2857,7 @@
   (setq buffer-read-only t)
   (set (make-local-variable 'vc-status-crt-marked) nil)
   (use-local-map vc-status-mode-map)
-  (set (make-local-variable 'tool-bar-map) (vc-status-tool-bar-map))
+  (set (make-local-variable 'tool-bar-map) vc-status-tool-bar-map)
   (let ((buffer-read-only nil)
        (backend (vc-responsible-backend default-directory))
        entries)
@@ -3051,7 +3054,7 @@
 
 (defun vc-status-toggle-mark ()
   (interactive)
-  (vc-status-mark-unmark 'toggle-mark-file))
+  (vc-status-mark-unmark 'vc-status-toggle-mark-file))
 
 (defun vc-status-register ()
   "Register the marked files, or the current file if no marks."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]