unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Doug Lewan <dougl@shubertticketing.com>
To: Joe Riel <joer@san.rr.com>, Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: RE: Rebind key and save/reuse previous bound function
Date: Fri, 30 Oct 2015 18:31:12 +0000	[thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA98C20029B3@DAKIYA1.pegasus.local> (raw)
In-Reply-To: <20151029214551.1cf59d18@gauss>

That sounds like 'advice' to me. 
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 
    to the existing definition of a function,....
-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 994-4335

Nonfirstorderizability. It's a thing.


> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.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
> 
> 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?
> 
> 
> --
> Joe Riel
> 




  parent reply	other threads:[~2015-10-30 18:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30  4:45 Rebind key and save/reuse previous bound function Joe Riel
2015-10-30  4:57 ` Joe Riel
2015-10-31 16:33   ` Emanuel Berg
2015-10-30  4:58 ` Joe Riel
2015-10-30 18:31 ` Doug Lewan [this message]
2015-10-31 20:22 ` John Mastro
2015-11-01 22:08   ` Joe Riel
2015-11-02  0:22     ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=155DEC68569B714B86C2C7075F5EDA98C20029B3@DAKIYA1.pegasus.local \
    --to=dougl@shubertticketing.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joer@san.rr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).