comparison lisp/vc.el @ 78822:1926a08e8926

* vc-arch.el (vc-arch-extra-menu-map): New var and fun. * vc-hooks.el (vc-menu-entry): New var. (vc-mode-line-map): Use it so that this menu also uses the extra-menu. (menu-bar-tools-menu): Add the VC menu here rather than in menu-bar.el. (vc-menu-map): Declare and initialize in one step. * menu-bar.el (vc-menu-map): Don't setup any more. Instead, just create the proper spot in the menu. * vc.el: Document new VC operation `extra-menu'. * vc-hooks.el (vc-default-extra-menu, vc-menu-map-filter): New function.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 18 Sep 2007 01:28:25 +0000
parents 3ec4d1da6eeb
children 2568254b40a4
comparison
equal deleted inserted replaced
78821:4341c4b4d652 78822:1926a08e8926
461 ; 461 ;
462 ;; - find-file-not-found-hook () 462 ;; - find-file-not-found-hook ()
463 ;; 463 ;;
464 ;; Operation called in current buffer when opening a non-existing file. 464 ;; Operation called in current buffer when opening a non-existing file.
465 ;; By default, this asks the user if she wants to check out the file. 465 ;; By default, this asks the user if she wants to check out the file.
466 ;;
467 ;; - extra-menu ()
468 ;;
469 ;; Return a menu keymap, the items in the keymap will appear at the
470 ;; end of the Version Control menu. The goal is to allow backends
471 ;; to specify extra menu items that appear in the VC menu. This way
472 ;; you can provide menu entries for functionality that is specific
473 ;; to your backend and which does not map to any of the VC generic
474 ;; concepts.
466 475
467 ;;; Code: 476 ;;; Code:
468 477
469 (require 'vc-hooks) 478 (require 'vc-hooks)
470 (require 'ring) 479 (require 'ring)