diff options
| author | Dan Nicolaescu | 2008-03-29 05:33:06 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-03-29 05:33:06 +0000 |
| commit | f3d57a2c20d2916f8515a6e334cdc3dca4e12b4e (patch) | |
| tree | cb755be97ea6d4a3520e539ebbf8b1cf0ef94bc8 /lisp | |
| parent | dc7f8d5723beb0d947f77c30d1a4db31ee8f9a72 (diff) | |
| download | emacs-f3d57a2c20d2916f8515a6e334cdc3dca4e12b4e.tar.gz emacs-f3d57a2c20d2916f8515a6e334cdc3dca4e12b4e.zip | |
(vc-menu-map-filter): Be more careful when finding
the current backend.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cb8939ad470..94c3ee908ca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-03-29 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-hooks.el (vc-menu-map-filter): Be more careful when finding | ||
| 4 | the current backend. | ||
| 5 | |||
| 1 | 2008-03-29 Glenn Morris <rgm@gnu.org> | 6 | 2008-03-29 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * calendar/calendar.el (diary-file, american-date-diary-pattern) | 8 | * calendar/calendar.el (diary-file, american-date-diary-pattern) |
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index c033b6e8fbc..893b16db601 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -1064,8 +1064,12 @@ Used in `find-file-not-found-functions'." | |||
| 1064 | (if (and (symbolp orig-binding) (fboundp orig-binding)) | 1064 | (if (and (symbolp orig-binding) (fboundp orig-binding)) |
| 1065 | (setq orig-binding (indirect-function orig-binding))) | 1065 | (setq orig-binding (indirect-function orig-binding))) |
| 1066 | (let ((ext-binding | 1066 | (let ((ext-binding |
| 1067 | (if vc-mode (vc-call-backend (vc-backend buffer-file-name) | 1067 | (when vc-mode |
| 1068 | 'extra-menu)))) | 1068 | (vc-call-backend |
| 1069 | (if buffer-file-name | ||
| 1070 | (vc-backend buffer-file-name) | ||
| 1071 | (vc-responsible-backend default-directory)) | ||
| 1072 | 'extra-menu)))) | ||
| 1069 | ;; Give the VC backend a chance to add menu entries | 1073 | ;; Give the VC backend a chance to add menu entries |
| 1070 | ;; specific for that backend. | 1074 | ;; specific for that backend. |
| 1071 | (if (null ext-binding) | 1075 | (if (null ext-binding) |