unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'kj'" <no.email@please.post>, <help-gnu-emacs@gnu.org>
Subject: RE: How to rescind a defun?
Date: Fri, 18 May 2012 15:09:16 -0700	[thread overview]
Message-ID: <04A0ECB15DCC470685337FFC04605BBA@us.oracle.com> (raw)
In-Reply-To: <jp6g51$7$1@reader1.panix.com>

> >> If, during an Emacs session, one evaluates a defun that 
> >> (inadvertently) redefines an existing function, is it
> >> possible to undo this?
> 
> > See function `fmakunbound'.
> 
> Thanks, I would have never found this!
> 
> Unfortunately, it seems that the original definition is gone.  (I
> had hoped that the new definition was just shadowing the original
> one, so that rescinding the former would "resurrect" the latter.)

I see now what you meant by "undo".

No, within a given namespace (obarray) and a given program scope (e.g. `flet' or
`labels' binding), a symbol has only one function definition.  

And for a global function definition, assignment is used, not binding.  So there
is no shadowing.




  reply	other threads:[~2012-05-18 22:09 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 [this message]
2012-05-18 22:16   ` Barry Margolin
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=04A0ECB15DCC470685337FFC04605BBA@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=no.email@please.post \
    /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).