Marco Baringer mb@bese.it writes:
"Tobias C. Rittweiler" tcr@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.
-T.