[slime-devel] Re: [Patch] Implementation of a macroexpansion stack.

Marco Baringer mb at bese.it
Sat May 13 17:39:00 UTC 2006

"Tobias C. Rittweiler" <tcr at freebits.de> writes:

> Marco Baringer <mb at bese.it> writes:
>> "Tobias C. Rittweiler" <tcr at freebits.de> writes:
>> > Is it possible to shadow `undo' buffer-locally?
>> not per buffer, but slime's macroexpansion buffers have their own
>> keywap anyway. having an undo which works on read-only buffers is
>> pretty simple:
>> (flet ((remap (from to)
>>          (dolist (mapping (where-is-internal from slime-mode-map))
>>            (define-key slime-macroexpansion-minor-mode-map mapping to))))
>>   (remap 'undo '(lambda (&optional arg) [...])))
> I believe that this doesn't work with "M-x undo", does it?. Might be
> good enough, though.

no, it only remaps the keybindings and menu entries for undo to the
new, anonymous, function.

afaik there's no way to per-buffer "rebind" functions.

Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen

More information about the slime-devel mailing list