[slime-devel] Re: slime-xref-mode

Peter Seibel peter at javamonkey.com
Thu Feb 26 20:41:20 UTC 2004


bryan o'connor <bryan-slime at 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



-- 
Peter Seibel                                      peter at javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp





More information about the slime-devel mailing list