unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jay Belanger <jay.p.belanger@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: jay.p.belanger@gmail.com
Subject: Re: calc-undo keybinding
Date: Thu, 20 Jan 2011 12:57:24 -0600	[thread overview]
Message-ID: <8739onz9m3.fsf@vh213601.truman.edu> (raw)
In-Reply-To: <jwv39onwp32.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 20 Jan 2011 10:53:22 -0500")


Stefan Monnier <monnier@iro.umontreal.ca> 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



      reply	other threads:[~2011-01-20 18:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 15:58 calc-undo keybinding joakim
2011-01-19 20:58 ` Stefan Monnier
2011-01-19 21:48   ` joakim
2011-01-19 23:13     ` Stefan Monnier
2011-01-20 10:06       ` Štěpán Němec
2011-01-20 15:53         ` Stefan Monnier
2011-01-20 18:57           ` Jay Belanger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739onz9m3.fsf@vh213601.truman.edu \
    --to=jay.p.belanger@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).