--- a/contrib/mercurial.el Fri Aug 19 17:22:04 2005 -0800
+++ b/contrib/mercurial.el Fri Aug 19 18:47:05 2005 -0800
@@ -126,7 +126,8 @@
(defvar hg-prefix-map
(let ((map (copy-keymap vc-prefix-map)))
- (set-keymap-name map 'hg-prefix-map)
+ (if (functionp 'set-keymap-name)
+ (set-keymap-name map 'hg-prefix-map)); XEmacs
map)
"This keymap overrides some default vc-mode bindings.")
(fset 'hg-prefix-map hg-prefix-map)
@@ -177,7 +178,8 @@
(let ((map (copy-keymap (if (boundp 'view-minor-mode-map)
view-minor-mode-map
view-mode-map))))
- (set-keymap-name map 'hg-view-mode-map)
+ (if (functionp 'set-keymap-name)
+ (set-keymap-name map 'hg-view-mode-map)); XEmacs
map))
(fset 'hg-view-mode-map hg-view-mode-map)
(define-key hg-view-mode-map