From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Help mode keybindings Date: Fri, 24 May 2013 22:02:59 +0200 Organization: Aioe.org NNTP Server Message-ID: <87ip28kux8.fsf@VLAN-3434.student.uu.se> References: <87sj1dpft7.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1369426162 30389 80.91.229.3 (24 May 2013 20:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 20:09:22 +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 May 24 22:09:24 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfyIi-0005xv-FR for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 22:09:20 +0200 Original-Received: from localhost ([::1]:43152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyIh-0000y3-Sp for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 16:09:19 -0400 X-Received: by 10.180.210.161 with SMTP id mv1mr1707664wic.1.1369425817947; Fri, 24 May 2013 13:03:37 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.116.97 Original-Path: usenet.stanford.edu!h2no2429307wiw.1!news-out.google.com!fw11ni4470wic.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!dedibox.gegeweb.org!gegeweb.eu!gegeweb.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:ELj+aVPURrWuthgnpigKFQTSTJA= Original-Xref: usenet.stanford.edu gnu.emacs.help:198769 X-Mailman-Approved-At: Fri, 24 May 2013 16:09:05 -0400 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:91035 Archived-At: (I got this by mail, and can't find it on the list. Anyway, I suppose it was intended for the list as well.) > Works for me in Emacs 24. Not in Emacs 23, however. The cause seems > to be that in Emacs 23, *Help* is in `view-mode', which has a binding > for C-j. > Note that minor mode bindings take precedence over local (major-mode) > bindings. Aha, I see. Perhaps I should upgrade to Emacs 24. > Probably there is no trivial way to achieve what you want. You could > use a minor mode yourself - or find a key that is not already used at > multiple places. Hm, to write a minor mode to shadow the view-mode sounds like overkill. Wouldn't it be simpler to change the view minor mode? Or is there something making that more difficult than I thought, as well? > I myself try to avoid re-binding such pre-defined keys. Often you > later find a mode where, to keep the example, the original binding of > C-j is something you really want, and you have to find another key > for that one or give up that your own binding is available everywhere > etc. In general, I agree, but, no rule without an exception... That key works for all the zillion modes I use, it is in my muscle memory, and it is a "close" shortcut (my index finger already at 'J'). I use registers to navigate my entire file system, and any project I currently work on, so I'm not giving it up. > Or make a binding in `key-translation-map'. How would I do that? -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573