[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: calc-undo keybinding
From: |
Jay Belanger |
Subject: |
Re: calc-undo keybinding |
Date: |
Thu, 20 Jan 2011 12:57:24 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
...
>>> + (substitute-key-definition 'undo 'calc-undo calc-mode-map global-map)
...
>> Why not just use command remapping, i.e.
>
>> (define-key calc-mode-map [remap undo] 'calc-undo)
...
> That's an alternative, yes. Not knowing enough about how what calc-undo
> does, I can't judge whether that's preferable (which mostly depends on
> whether it's OK to render the real `undo' completely unreachable (other
> than via M-x undo) in those buffers).
The real `undo' is pretty useless in a Calc buffer; making it
unreachable isn't a problem. I'm not sure what different effects the
above two remapping commands have, but it sounds like the second one
will work fine. I'll make the change when I get home.
Jay