[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key bindings

From: Kevin Rodgers
Subject: Re: key bindings
Date: Fri, 01 Nov 2002 09:56:08 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Jeff Rancier wrote:

Hello All.

I have the function redo bound to C-M-/, in my .emacs as follows:

(global-set-key [M-C-/] 'redo)

The default binding for that sequence is dabbrev-completion, which I don't
use, so I thought I'd override it.  But, when I execute the key sequence,
emacs runs dabbrev-completion.  When I C-h k it reports dabbrev-completion,
which makes sense, but when I manually run redo, emacs reports:

You can run the command 'redo' with <M-C-/>

Something appears confused (other than me!).  Can someone tell me the
correct way to perform this, and have the binding persist?

The angle brackets indicate that redo is bound to the M-C-/ function key,

which doesn't exist.  You want it bound to the meta- and control-modified
/ character:

        (global-set-key "\M-\C-/" 'redo)

<a href="mailto:&lt;kevinr&#64;;";>Kevin Rodgers</a>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]