unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Cecil Westerhof <dummy@dummy.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem binding to a key
Date: Sat, 21 Apr 2007 09:33:13 +0200	[thread overview]
Message-ID: <4629be3c$0$321$e4fe514c@news.xs4all.nl> (raw)
In-Reply-To: 87abx2xt9w.fsf@lion.rapttech.com.au

Tim X wrote:
>> I got what I tried to do out of 'Learning GNU Emacs', pages 160 and 161.
>> But it does not work. For example for the keybinding they give:
>>   C-x C-k b
>> But then I get:
>>   Key sequence b is not a keyboard macro
>>
>> That is a big oops for O'Reilly.
>>
> 
> Possibly not. That book is fairly old I think and emacs key binding may
> have changed since it was written.

I have edition 3 from 2005, so that is not very old I would think, but that
could explain it,


>> I tried to use the reserved keys, but that is not possible. What is a
>> good way to select keys for binding macro's to?
>>
> 
> What I tend to do is use C-h b to get a list of the key bindings used in
> the mode you want to bind the key for and then search for one that is not
> used. I then might use C-h k to verify the key bind I plan to use is not
> already used.

You still have the possibility that a key that you pick that is not used,
will be used in a new installed mode. Properly I need to accept this risk.


> There use to be a key binding FAQ posted to this list on a regular basis.
> However, I've not seen it for quite some time now. I'm sure if you google
> you will find a copy. It contains some good advice on key binding etc.

The best copy I could find was one that had Emacs 20 as the latest version.
So the book is better I am afraid.

Well, instead of using an user key binding, I just will use a free key
binding.

  reply	other threads:[~2007-04-21  7:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20 14:54 Problem binding to a key Cecil Westerhof
2007-04-20 15:54 ` weber
2007-04-20 16:14   ` Rjjd
2007-04-20 21:14     ` Cecil Westerhof
2007-04-21  4:09       ` Tim X
2007-04-21  7:33         ` Cecil Westerhof [this message]
2007-04-21  7:59           ` Cecil Westerhof
2007-04-21 12:57             ` Johan Bockgård
2007-04-21 16:19               ` Reiner Steib
2007-04-22 11:28               ` Cecil Westerhof
2007-04-22  6:46             ` Tim X
2007-04-22 11:33               ` Cecil Westerhof
2007-04-21  4:04   ` Tim X
2007-04-20 16:27 ` Eric Hanchrow

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='4629be3c$0$321$e4fe514c@news.xs4all.nl' \
    --to=dummy@dummy.nl \
    --cc=help-gnu-emacs@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.
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).