all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* find out in which file a key is defined
@ 2011-12-07  3:52 Jim Green
  2011-12-07  6:35 ` Jambunathan K
  2011-12-07  9:45 ` Eric Abrahamsen
  0 siblings, 2 replies; 6+ messages in thread
From: Jim Green @ 2011-12-07  3:52 UTC (permalink / raw
  To: help-gnu-emacs

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

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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: find out in which file a key is defined
  2011-12-07  3:52 find out in which file a key is defined Jim Green
@ 2011-12-07  6:35 ` Jambunathan K
  2011-12-07  9:45 ` Eric Abrahamsen
  1 sibling, 0 replies; 6+ messages in thread
From: Jambunathan K @ 2011-12-07  6:35 UTC (permalink / raw
  To: Jim Green; +Cc: help-gnu-emacs

Jim Green <student.northwestern@gmail.com> writes:

> 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?

r => reverse

I would recommend that you stick with (and adapt yourself to) the
in-built key bindings. You will save yourself plenty of time in the long
run.

Jambunathnan K.

> Thanks!
>
> Jim.
>
> below is obtained by c-h k c-r
>
> 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.
>
>

-- 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: find out in which file a key is defined
  2011-12-07  3:52 find out in which file a key is defined Jim Green
  2011-12-07  6:35 ` Jambunathan K
@ 2011-12-07  9:45 ` Eric Abrahamsen
  2011-12-07 23:34   ` Jim Green
  1 sibling, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2011-12-07  9:45 UTC (permalink / raw
  To: help-gnu-emacs

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.

Eric


>
> 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 24.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6)
 of 2011-12-07 on pellet




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: find out in which file a key is defined
  2011-12-07  9:45 ` Eric Abrahamsen
@ 2011-12-07 23:34   ` Jim Green
  2011-12-08  0:20     ` suvayu ali
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Green @ 2011-12-07 23:34 UTC (permalink / raw
  To: Eric Abrahamsen; +Cc: help-gnu-emacs

On 7 December 2011 09:45, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
> 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",

thank you both, this what I get by c-h k c-r, but where could I find it
is from isearch.el? I think finding where a key defined is very useful.

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.


Thanks, Jim



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: find out in which file a key is defined
  2011-12-07 23:34   ` Jim Green
@ 2011-12-08  0:20     ` suvayu ali
  2011-12-08  0:23       ` Jim Green
  0 siblings, 1 reply; 6+ messages in thread
From: suvayu ali @ 2011-12-08  0:20 UTC (permalink / raw
  To: Jim Green; +Cc: Eric Abrahamsen, help-gnu-emacs

On Thu, Dec 8, 2011 at 00:34, Jim Green <student.northwestern@gmail.com> wrote:
>
> thank you both, this what I get by c-h k c-r, but where could I find it
> is from isearch.el? I think finding where a key defined is very useful.

You probably don't have the elisp files installed on your machine.
Installing them will show the info in the same help buffer (the one
you get from C-h k C-r).

On most linux systems these elisp files can be installed by installing
<emacs_pkg_name>-el packages.

HTH

-- 
Suvayu

Open source is the future. It sets us free.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: find out in which file a key is defined
  2011-12-08  0:20     ` suvayu ali
@ 2011-12-08  0:23       ` Jim Green
  0 siblings, 0 replies; 6+ messages in thread
From: Jim Green @ 2011-12-08  0:23 UTC (permalink / raw
  To: suvayu ali; +Cc: Eric Abrahamsen, help-gnu-emacs

On 8 December 2011 00:20, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
> On Thu, Dec 8, 2011 at 00:34, Jim Green <student.northwestern@gmail.com> wrote:
>>
>> thank you both, this what I get by c-h k c-r, but where could I find it
>> is from isearch.el? I think finding where a key defined is very useful.
>
> You probably don't have the elisp files installed on your machine.
> Installing them will show the info in the same help buffer (the one
> you get from C-h k C-r).
>
> On most linux systems these elisp files can be installed by installing
> <emacs_pkg_name>-el packages.

exactly! Thankyou!



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-08  0:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07  3:52 find out in which file a key is defined Jim Green
2011-12-07  6:35 ` Jambunathan K
2011-12-07  9:45 ` Eric Abrahamsen
2011-12-07 23:34   ` Jim Green
2011-12-08  0:20     ` suvayu ali
2011-12-08  0:23       ` Jim Green

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.