From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.help Subject: Re: Problem binding to a key Date: Sat, 21 Apr 2007 09:33:13 +0200 Message-ID: <4629be3c$0$321$e4fe514c@news.xs4all.nl> References: <4628d418$0$325$e4fe514c@news.xs4all.nl> <1177084488.965651.231230@n59g2000hsh.googlegroups.com> <46292d4c$0$338$e4fe514c@news.xs4all.nl> <87abx2xt9w.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1177140911 29806 80.91.229.12 (21 Apr 2007 07:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2007 07:35:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 09:35:04 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HfA7b-00088m-Ih for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2007 09:35:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfACk-0000Ew-Au for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2007 03:40:22 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!feeder.news-service.com!newsgate.cistron.nl!xs4all!transit3.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.8.0 Original-Lines: 40 Original-NNTP-Posting-Host: 213.84.157.201 Original-X-Trace: 1177140796 news.xs4all.nl 321 [::ffff:213.84.157.201]:20533 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: shelby.stanford.edu gnu.emacs.help:147347 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42951 Archived-At: 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.