[slime-devel] Re: C-M-q not working in SLIME 2007-01-20

Ariel Badichi abadichi at bezeqint.net
Tue Jan 23 12:59:54 UTC 2007


Hello,

Stefan Kamphausen <skampi at gmx.net> writes:

> >> > "Bill Clementson" <billclem at gmail.com> writes:
> >> >
> >> > > I have updated to SLIME 2007-01-20 and when I press C-h k C-M-q I see
> >> > > that C-M-q is bound to indent-sexp. I don't remember it being bound to
> >> > > anything else (but I may be wrong). Ariel, are you saying that C-M-q
> >> > > is not bound to anything or that it has the wrong binding?
> 
> I compared two slime.el-files: one quite old with C-M-q active in
> *slime-scratch* and the current one.
> 
> 
> Now, the old creation of the keymap for that buffer used
> lisp-mode-map:
> 
> (defvar slime-scratch-mode-map)
> (setq slime-scratch-mode-map (make-sparse-keymap))
> (set-keymap-parent slime-scratch-mode-map lisp-mode-map)
> 
> whereas the new creation uses slime-mode-map:
> 
> (defvar slime-scratch-mode-map
>   (let ((map (make-sparse-keymap)))
>     (set-keymap-parent map slime-mode-map)
>     map))
> 
> and slime-define-keys does not create a binding for indent-sexp.
> 
> Is this the correct analysis?  I am not very familiar with slime.el.
> 

I think it's correct, and this seems to have fixed it:

(defvar slime-scratch-mode-map
  (let ((map (make-sparse-keymap)))
    (set-keymap-parents map (list slime-mode-map lisp-mode-map))
    map))

> 
> Regards,
> Stefan
> 
> PS: As for the differences in C-h k C-M-q and C-h m: I have seen this
> in the past but never searched for the reason since I happen to use
> C-h m only very rarely.  I seem to remember that I also saw
> keybindings in menu entries which were not correct.
> 
> PPS: Ah, and this is speaking for 
>      XEmacs/Gentoo Linux/CVS HEAD Slime
> 
> 
> -- 
> Stefan Kamphausen --- http://www.skamphausen.de
> a blessed +42 regexp of confusion (weapon in hand)
> You hit. The format string crumbles and turns to dust.

Ariel




More information about the slime-devel mailing list