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: Rebind key and save/reuse previous bound function Date: Sat, 31 Oct 2015 17:33:03 +0100 Message-ID: <87eggbc81s.fsf@debian.uxu> References: <20151029214551.1cf59d18@gauss> <20151029215703.25359b06@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446308632 23800 80.91.229.3 (31 Oct 2015 16:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2015 16:23:52 +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 Oct 31 17:23:46 2015 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 1ZsYwT-0005FT-GJ for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Oct 2015 17:23:45 +0100 Original-Received: from localhost ([::1]:56334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYwS-00026u-Ma for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Oct 2015 12:23:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYwH-00026p-Ik for help-gnu-emacs@gnu.org; Sat, 31 Oct 2015 12:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsYwE-0002o9-FS for help-gnu-emacs@gnu.org; Sat, 31 Oct 2015 12:23:33 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYwE-0002nr-8c for help-gnu-emacs@gnu.org; Sat, 31 Oct 2015 12:23:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZsYwC-000513-1C for help-gnu-emacs@gnu.org; Sat, 31 Oct 2015 17:23:28 +0100 Original-Received: from nl106-137-244.student.uu.se ([130.243.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 17:23:28 +0100 Original-Received: from embe8573 by nl106-137-244.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 Oct 2015 17:23:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-244.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:j7cXp8v2lN9vCBrwH4HTuY45E5Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:107876 Archived-At: Joe Riel writes: > The function key-binding will do what I described, > and is probably what I'll use, but what I think > I really want is something more akin to > substitute-key-definition, but which, rather than > substituting a function, returns the original > function. Does that exist? Instead of verbalizing this in half-baked terms of techno-techno-technology, it'll be much easier for you and us to understand and help if you just say what you want to *do*. I.e.: 1. You are looking at Emacs. 2. Your fingertips are at keys a, s, d, f and j, k, l, ; 3. Your shoulders are relaxed (OK now, sorry :) 4. What is it at this moment that you want to *do*, that you cannot? Of course, feel free to speculate how to solve the problem. Even if the theorizing is wrong it is still better than doing nothing and if you put it into words that will benefit the thought process and you will look up information in doing so, *and* people won't hesitate to tell you if you are wrong, which is helpful to you and everyone else reading the post. But before you do any of that, please do answer question 4 or else the good intentions/activity will much rather come to nothing. And the beat goes on... ((d[-_-]b)) -- underground experts united http://user.it.uu.se/~embe8573