[Top][All Lists]

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

Re: find out in which file a key is defined

From: Eric Abrahamsen
Subject: Re: find out in which file a key is defined
Date: Wed, 07 Dec 2011 17:45:30 +0800
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

On Wed, Dec 07 2011, Jim Green wrote:

> Hello:
> Could anyone help on this question from an emacs learner:
> is there a command to find out why c-r is defined as isearch-backward?
> and how to disable this behavior?
> Thanks!
> Jim.
> below is obtained by c-h k c-r

When I run that command it tells me that the key is defined in
isearch.el (I'm running emacs 24). That's the facile answer to "why",
the longer answer I guess is that the emacs developers thought you'd
like to search backwards for things, and gave you a command and a
default keybinding to do it. You can always unbind keys with
`global-unset-key', so:

(global-unset-key (kbd "C-r"))

But as was pointed out, this will leave you unable to search backwards
for things.


> C-r runs the command isearch-backward, which is an interactive
> compiled Lisp function.
> It is bound to C-r, <menu-bar> <edit> <search> <i-search>
> <isearch-backward>.
> (isearch-backward &optional REGEXP-P NO-RECURSIVE-EDIT)
> Do incremental search backward.
> With a prefix argument, do a regular expression search instead.
> See the command `isearch-forward' for more information.

GNU Emacs (i686-pc-linux-gnu, GTK+ Version 2.24.6)
 of 2011-12-07 on pellet

reply via email to

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