[mac os x 10.3 / emacs 21.3.50.1 (carbon) / cvs slime / openmcl 0.14.1]
when slime-edit-fdefinition pops up a xref buffer for selecting a location, the xref keymap doesn't seem to be active.
for example, " " is bound to slime-space instead of slime-goto-xref. manually calling slime-goto-xref from the minibuffer does the right thing.
it did work at least a week or two ago. unfortunately i don't know enough about emacs keymaps to debug this one.
...bryan
bryan o'connor bryan-slime@lunch.org writes:
[mac os x 10.3 / emacs 21.3.50.1 (carbon) / cvs slime / openmcl 0.14.1]
when slime-edit-fdefinition pops up a xref buffer for selecting a location, the xref keymap doesn't seem to be active.
for example, " " is bound to slime-space instead of slime-goto-xref. manually calling slime-goto-xref from the minibuffer does the right thing.
it did work at least a week or two ago. unfortunately i don't know enough about emacs keymaps to debug this one.
You might try this patch. (I really need to be writing about pathnames, not hacking on slime, so I don't have time to actually test this or anything. But it may get you going. Let me know if it works.)
-Peter
Index: slime.el =================================================================== RCS file: /project/slime/cvsroot/slime/slime.el,v retrieving revision 1.221 diff -u -r1.221 slime.el --- slime.el 26 Feb 2004 19:20:04 -0000 1.221 +++ slime.el 26 Feb 2004 20:39:48 -0000 @@ -3833,7 +3833,8 @@ (destructuring-bind (key command &key sldb prefixed &allow-other-keys) spec (when sldb (let ((key (if prefixed (concat slime-prefix-key key) key))) - (define-key slime-xref-mode-map key command))))) + (unless (lookup-key slime-xref-previous key) + (define-key slime-xref-mode-map key command))))))
;;;;; XREF results buffer and window management
(define-key slime-xref-mode-map key command)))))
(unless (lookup-key slime-xref-previous key)
(define-key slime-xref-mode-map key command))))))
[did you mean slime-xref-mode-map in lookup-key?]
regardless, no go. it looks like the keymap is generated correctly. it contains (32 . slime-goto-xref) with nothing else assoc'd to 32 or any mention of slime-space.
describe-mode does show what looks to be the proper keymap for the major mode.. with slime-space listed lower in one of the minor modes.
if i change the slime-mode-map to assoc slime-goto-xref to SPC, it does the right thing (for the xref buffer only, of course).
...bryan