Commit f3d57a2c authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

(vc-menu-map-filter): Be more careful when finding

the current backend.
parent dc7f8d57
2008-03-29 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hooks.el (vc-menu-map-filter): Be more careful when finding
the current backend.
2008-03-29 Glenn Morris <rgm@gnu.org>
 
* calendar/calendar.el (diary-file, american-date-diary-pattern)
......
......@@ -1064,8 +1064,12 @@ Used in `find-file-not-found-functions'."
(if (and (symbolp orig-binding) (fboundp orig-binding))
(setq orig-binding (indirect-function orig-binding)))
(let ((ext-binding
(if vc-mode (vc-call-backend (vc-backend buffer-file-name)
'extra-menu))))
(when vc-mode
(vc-call-backend
(if buffer-file-name
(vc-backend buffer-file-name)
(vc-responsible-backend default-directory))
'extra-menu))))
;; Give the VC backend a chance to add menu entries
;; specific for that backend.
(if (null ext-binding)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment