unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to rescind a defun?
Date: Fri, 18 May 2012 18:16:41 -0400	[thread overview]
Message-ID: <barmar-D52FA0.18164118052012@news.eternal-september.org> (raw)
In-Reply-To: mailman.1365.1337373409.855.help-gnu-emacs@gnu.org

In article <mailman.1365.1337373409.855.help-gnu-emacs@gnu.org>,
 "Drew Adams" <drew.adams@oracle.com> wrote:

> > If, during an Emacs session, one evaluates a defun that 
> > (inadvertently) redefines an existing function, is it
> > possible to undo this?
> 
> See function `fmakunbound'.

That will remove the new definition, but not restore the old one.

The only way to do that is to find the old definition and evaluate it.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  parent reply	other threads:[~2012-05-18 22:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18 20:13 How to rescind a defun? kj
2012-05-18 20:36 ` Drew Adams
     [not found] ` <mailman.1365.1337373409.855.help-gnu-emacs@gnu.org>
2012-05-18 21:49   ` kj
2012-05-18 22:09     ` Drew Adams
2012-05-18 22:16   ` Barry Margolin [this message]
2012-05-19  2:52 ` Pascal J. Bourguignon

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=barmar-D52FA0.18164118052012@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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).