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: Re: Binding M-n in info mode. Date: Fri, 2 Sep 2011 21:59:19 +0200 Message-ID: References: <877h5rp55l.fsf@ambire.localdomain> <87bov3dj2r.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1314993571 11599 80.91.229.12 (2 Sep 2011 19:59:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2011 19:59:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Thien-Thi Nguyen To: Vijay Lakshminarayanan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 02 21:59:27 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 1QzZte-0003fL-Fh for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 21:59:26 +0200 Original-Received: from localhost ([::1]:58870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzZtd-0002jF-PJ for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Sep 2011 15:59:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzZtZ-0002is-7L for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 15:59:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzZtY-0002pM-AM for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 15:59:21 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:40802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzZtX-0002pH-Vv for help-gnu-emacs@gnu.org; Fri, 02 Sep 2011 15:59:20 -0400 Original-Received: by ywm13 with SMTP id 13so2600932ywm.0 for ; Fri, 02 Sep 2011 12:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=n8NFRajk4PjiL3c+dl6w+4G4cILOiVWuvY39xq0xs2U=; b=jbZ1dSGobjix6NsaYoZINPT0vLejPbl+oDRWoF+nKZCCP2Q9uwFvEdHN9vY/MITp4Z IzLj3AhHSZ1Hvi3AY57Avu1ouuMoz12fcEFK93XpXHtCwthaK0pX6zH7KT3YPe1HIqZD rMws49GVuthG1dqje9Q9aRWT+FaLs2afBJtJM= Original-Received: by 10.236.185.4 with SMTP id t4mr7753735yhm.121.1314993559208; Fri, 02 Sep 2011 12:59:19 -0700 (PDT) Original-Received: by 10.236.43.131 with HTTP; Fri, 2 Sep 2011 12:59:19 -0700 (PDT) In-Reply-To: <87bov3dj2r.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 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:82125 Archived-At: >> What is that? =A0Poetry?? ;)) > > It is, and it's pretty good. =A0Nice one, Thien. I agree, of course. >> Well, thanks to all of you for helping! > > What Thien means is you should, in your .emacs, use > > ;; COMPLETELY untested > (eval-after-load "info" > =A0(progn > =A0 =A0(define-key Info-mode-map (kbd "M-n") #'forward-paragraph) > =A0 =A0(define-key Info-mode-map (kbd "M-n") #'backward-paragraph))) > > because it (a) delays the remapping and (b) is less memory sapping. > Furthermore, you could, to prevent "profligate consing", choose to > define the custom keybindings as an Info-mode-hook. Thanks for the extra explanation. --=20 Dani Moncayo