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:58:43 -0700 Message-ID: <20151029215843.7f87d291@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 1446181151 10977 80.91.229.3 (30 Oct 2015 04:59:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 04:59:11 +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:59:02 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 1Zs1mG-0001Fy-UC for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 05:59:01 +0100 Original-Received: from localhost ([::1]:48397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1mG-0002OG-AT for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 00:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1m5-0002O9-E9 for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zs1m2-0002nU-99 for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:58:49 -0400 Original-Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.226]:28831 helo=cdptpa-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zs1m2-0002nQ-4e for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 00:58:46 -0400 Original-Received: from [75.80.189.125] ([75.80.189.125:37065] helo=gauss) by cdptpa-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 46/E2-13924-509F2365; Fri, 30 Oct 2015 04:58:45 +0000 In-Reply-To: <20151029214551.1cf59d18@gauss> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.166.226 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:107872 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? 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? -- Joe Riel