all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* 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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.