From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Binding M-n in info mode. Date: Fri, 02 Sep 2011 12:25:38 +0300 Message-ID: <83wrdrcn3h.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314955579 504 80.91.229.12 (2 Sep 2011 09:26:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 09:26:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 02 11:26:13 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzQ0p-0008Ov-M1 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 11:26:11 +0200 Original-Received: from localhost ([::1]:59303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQ0p-00039b-5C for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 05:26:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQ0l-000390-4f for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzQ0k-0004lU-5l for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:26:07 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:36335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzQ0j-0004lO-UI for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:26:06 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQW00M001Z36000@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 12:25:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.83.44]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQW00MDD26N6420@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 12:25:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82114 Archived-At: > Date: Fri, 2 Sep 2011 11:14:11 +0200 > From: Dani Moncayo > > It worked right, but then I realized that info mode binds M-n to > clone-buffer. In this mode I also want to bind M-n to > forward-paragraph, so that I added this: > > (define-key Info-mode-map "\M-n" 'forward-paragraph) > > The problem is that this last remapping fails when starting my Emacs > because, at that time, the variable Info-mode-map doesn't not exits. > > What is the right way of solving this? Do `(require 'info)' before you remap.