Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/lisp/vc.el Tue Sep 18 00:46:48 2007 +0000 +++ b/lisp/vc.el Tue Sep 18 01:28:25 2007 +0000 @@ -463,6 +463,15 @@ ;; ;; Operation called in current buffer when opening a non-existing file. ;; By default, this asks the user if she wants to check out the file. +;; +;; - extra-menu () +;; +;; Return a menu keymap, the items in the keymap will appear at the +;; end of the Version Control menu. The goal is to allow backends +;; to specify extra menu items that appear in the VC menu. This way +;; you can provide menu entries for functionality that is specific +;; to your backend and which does not map to any of the VC generic +;; concepts. ;;; Code: