From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Re: Rebind key and save/reuse previous bound function Date: Thu, 29 Oct 2015 21:57:03 -0700 Organization: Maplesoft Message-ID: <20151029215703.25359b06@gauss> References: <20151029214551.1cf59d18@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1446181049 9663 80.91.229.3 (30 Oct 2015 04:57:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 04:57:29 +0000 (UTC) Cc: Help GNU Emacs To: Joe Riel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 05:57:24 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 1Zs1kf-0007y9-Jg for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 05:57:21 +0100 Original-Received: from localhost ([::1]:48393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1ke-0001tQ-RP for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 00:57:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1kT-0001tA-Pn for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs1kQ-0001rU-HY for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:57:09 -0400 Original-Received: from mh3.maplesoft.com ([199.71.183.16]:35213 helo=ICW12KMAI02.maplesoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1kQ-0001rQ-DN for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:57:06 -0400 Original-Received: from ICW12KMAI02.maplesoft.com (10.10.1.102) by ICW12KMAI02.maplesoft.com (10.10.1.102) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 30 Oct 2015 00:57:05 -0400 Original-Received: from gauss (10.10.50.12) by ICW12KMAI02.maplesoft.com (10.10.1.102) with Microsoft SMTP Server (TLS) id 15.0.847.32 via Frontend Transport; Fri, 30 Oct 2015 00:57:04 -0400 In-Reply-To: <20151029214551.1cf59d18@gauss> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 199.71.183.16 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:107871 Archived-At: On Thu, 29 Oct 2015 21:45:51 -0700 Joe Riel wrote: > Is there a clean way save the function bound to a key > so that a new function can be created that is bound > to the same key, does something, then executes the > original bound function? key-binding will do what I described, and is probably what theyI'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? -- Joe Riel