From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.help Subject: Binding M-n in info mode. Date: Fri, 2 Sep 2011 11:14:11 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1314954865 27914 80.91.229.12 (2 Sep 2011 09:14:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 09:14:25 +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:14:20 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 1QzPpL-0003ll-5d for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 11:14:19 +0200 Original-Received: from localhost ([::1]:51000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPpJ-00011b-TS for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 05:14:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPpF-00011Q-LV for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:14:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzPpE-0002Lm-Cg for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:14:13 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:47835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzPpE-0002Lh-9P for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 05:14:12 -0400 Original-Received: by gyf1 with SMTP id 1so597447gyf.0 for ; Fri, 02 Sep 2011 02:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=FCZsNdXcOfoL2bOFZX2oryn6CgduvEbH6BbpSPFBMbw=; b=wBNol3zAQK/S/8WhahCDuZ72jUTxVHPJvNLy3ip7C5I1G/JfGu4tcbjQxXDfl2SISq ij9vKBHGFQOARtEPM5ig2LyTWcT7YDix8uAyY6sZaf/K/oCVmn6HjvcQPNKdOWRIstG9 +5IFN6dd9QLuxU14Yoe5DGv46CofRCGYrZx+M= Original-Received: by 10.236.78.202 with SMTP id g50mr4261937yhe.36.1314954851790; Fri, 02 Sep 2011 02:14:11 -0700 (PDT) Original-Received: by 10.236.43.131 with HTTP; Fri, 2 Sep 2011 02:14:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.160.169 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:82113 Archived-At: Hi folks, I want to bind M-p/M-n globally to backward-paragraph/forward-paragraph, so that I wrote this in my .emacs: (define-key global-map "\M-p" 'backward-paragraph) (define-key global-map "\M-n" 'forward-paragraph) 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? TIA -- Dani Moncayo