From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Rebind key and save/reuse previous bound function Date: Fri, 30 Oct 2015 18:31:12 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA98C20029B3@DAKIYA1.pegasus.local> References: <20151029214551.1cf59d18@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446229902 16355 80.91.229.3 (30 Oct 2015 18:31:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2015 18:31:42 +0000 (UTC) To: Joe Riel , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 19:31:36 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 1ZsESa-0001Mp-LK for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 19:31:32 +0100 Original-Received: from localhost ([::1]:52399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsESZ-00076k-UO for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Oct 2015 14:31:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsESK-00075h-LL for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 14:31:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsESG-0002O4-K2 for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 14:31:16 -0400 Original-Received: from mail-qg0-f97.google.com ([209.85.192.97]:33082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsESG-0002Nn-Fy for help-gnu-emacs@gnu.org; Fri, 30 Oct 2015 14:31:12 -0400 Original-Received: by qgem9 with SMTP id m9so5124624qge.0 for ; Fri, 30 Oct 2015 11:31:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:thread-topic:thread-index:date :message-id:references:in-reply-to:accept-language:content-language :content-type:content-transfer-encoding:mime-version; bh=N9G/zvb8uK5+XZRydvmirx5k1aYq1MzQ0POWG18pdDA=; b=dXD8tLh+H1Tb9ff1BoxBCVFSxYaCgWJ7M1p9llzt1RIWvCxe+C5cmArlq9MoMRJJlr Bkssa2SkN8pZl2wo2F5iUXuGLw+V5nRQ67LwVmALhZ1f0mwLrNBOFxwOn1tZ/xk8I86I aJR6yHESrX73TeRj0nIswVNQAMDm5y9xUFmcqY2G6L+W3JXhRZDHOaV0aXMZV5rXK3qd IubD6Ya+a7iSuY09ixdEsHyeqK/ja6GvMuhf3tIsjFnFjUugJrGI7mxC6IDKRmsuzAsn 9S3rmoWcCTrnMwlFatnYnYLxCEVoAhBbWAdyIj7EYZqOpnpGNC4tEeiVV5TxrtedlvKx QRzQ== X-Gm-Message-State: ALoCoQmF7M1h+12P7aHCLEUGpR3ym9HiNW3Yl2Spsmfy/spHzwwS/agc/ALGcicqiR1RQmxqwUXqN/WZcL7ItNxtbx3Moo6Emw== X-Received: by 10.140.220.19 with SMTP id q19mr12354644qhb.48.1446229871875; Fri, 30 Oct 2015 11:31:11 -0700 (PDT) Original-Received: from webmail.shubertorg.com ([207.246.209.200]) by smtp-relay.gmail.com with ESMTPS id w140sm965383qkw.8.2015.10.30.11.31.11 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 11:31:11 -0700 (PDT) X-Relaying-Domain: shubertticketing.com Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.03.0123.003; Fri, 30 Oct 2015 14:31:13 -0400 Thread-Topic: Rebind key and save/reuse previous bound function Thread-Index: AQHREs3nDzINTkfl2k2iT8EleHzpT56EW0gA In-Reply-To: <20151029214551.1cf59d18@gauss> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.97 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:107875 Archived-At: That sounds like 'advice' to me.=20 Try info "(elisp) Advising Functions" for details. It begins with the following text that sounds like what you want The "advice" feature lets you add=20 to the existing definition of a function,.... --=20 ,Doug Douglas Lewan Shubert Ticketing (201) 994-4335 Nonfirstorderizability. It's a thing. > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Joe Riel > Sent: Friday, 2015 October 30 00:46 > To: Help GNU Emacs > Subject: Rebind key and save/reuse previous bound function >=20 > 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? >=20 >=20 > -- > Joe Riel >=20