comparison lisp/vc.el @ 82232:58ac5a791dfa

* vc.el: Document new VC operation `extra-menu'. * vc-hooks.el (vc-default-extra-menu): New function. * menu-bar.el (menu-bar-vc-filter): New function. (menu-bar-tools-menu): Use it as a filter.
author Dan Nicolaescu <dann@ics.uci.edu>
date Wed, 01 Aug 2007 17:13:45 +0000
parents feaa257d4fe3
children 1414862f1a0d 35e3789db058
comparison
equal deleted inserted replaced
82231:729f4e76fd5d 82232:58ac5a791dfa
385 ;; 385 ;;
386 ;; - annotate-current-time () 386 ;; - annotate-current-time ()
387 ;; 387 ;;
388 ;; Only required if `annotate-command' is defined for the backend, 388 ;; Only required if `annotate-command' is defined for the backend,
389 ;; AND you'd like the current time considered to be anything besides 389 ;; AND you'd like the current time considered to be anything besides
390 ;; (vs-annotate-convert-time (current-time)) -- i.e. the current 390 ;; (vc-annotate-convert-time (current-time)) -- i.e. the current
391 ;; time with hours, minutes, and seconds included. Probably safe to 391 ;; time with hours, minutes, and seconds included. Probably safe to
392 ;; ignore. Return the current-time, in units of fractional days. 392 ;; ignore. Return the current-time, in units of fractional days.
393 ;; 393 ;;
394 ;; - annotate-extract-revision-at-line () 394 ;; - annotate-extract-revision-at-line ()
395 ;; 395 ;;
478 ;; 478 ;;
479 ;; - find-file-hook () 479 ;; - find-file-hook ()
480 ;; 480 ;;
481 ;; Operation called in current buffer when opening a file. This can 481 ;; Operation called in current buffer when opening a file. This can
482 ;; be used by the backend to setup some local variables it might need. 482 ;; be used by the backend to setup some local variables it might need.
483 ; 483 ;;
484 ;; - find-file-not-found-hook () 484 ;; - find-file-not-found-hook ()
485 ;; 485 ;;
486 ;; Operation called in current buffer when opening a non-existing file. 486 ;; Operation called in current buffer when opening a non-existing file.
487 ;; By default, this asks the user if she wants to check out the file. 487 ;; By default, this asks the user if she wants to check out the file.
488 ;;
489 ;; - extra-menu ()
490 ;;
491 ;; Return a menu keymap, the items in the keymap will appear at the
492 ;; end of the Version Control menu. The goal is to allow backends
493 ;; to specify extra menu items that appear in the VC menu. This way
494 ;; you can provide menu entries for functionality that is specific
495 ;; to your backend and which does not map to any of the VC generic
496 ;; concepts.
488 497
489 ;;; Code: 498 ;;; Code:
490 499
491 (require 'vc-hooks) 500 (require 'vc-hooks)
492 (require 'ring) 501 (require 'ring)