help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to rescind a defun?


From: Drew Adams
Subject: RE: How to rescind a defun?
Date: Fri, 18 May 2012 15:09:16 -0700

> >> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]