Mercurial > emacs
comparison lisp/vc-hooks.el @ 82771:724c9aa26829
(vc-menu-map-filter): Reapply 2007-08-06 bugfix.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Wed, 22 Aug 2007 22:39:10 +0000 |
parents | 5c15d3c510b1 |
children | ea5864b698fd |
comparison
equal
deleted
inserted
replaced
82770:641f5b9362be | 82771:724c9aa26829 |
---|---|
962 | 962 |
963 (defun vc-menu-map-filter (orig-binding) | 963 (defun vc-menu-map-filter (orig-binding) |
964 (if (and (symbolp orig-binding) (fboundp orig-binding)) | 964 (if (and (symbolp orig-binding) (fboundp orig-binding)) |
965 (setq orig-binding (indirect-function orig-binding))) | 965 (setq orig-binding (indirect-function orig-binding))) |
966 (let ((ext-binding | 966 (let ((ext-binding |
967 (if vc-mode (vc-call extra-menu buffer-file-name)))) | 967 (if vc-mode (vc-call-backend (vc-backend buffer-file-name) |
968 'extra-menu)))) | |
968 ;; Give the VC backend a chance to add menu entries | 969 ;; Give the VC backend a chance to add menu entries |
969 ;; specific for that backend. | 970 ;; specific for that backend. |
970 (if (null ext-binding) | 971 (if (null ext-binding) |
971 orig-binding | 972 orig-binding |
972 (append orig-binding | 973 (append orig-binding |