emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/etc/emacs.py,v


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/etc/emacs.py,v
Date: Sun, 20 Aug 2006 15:52:50 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Stefan Monnier <monnier>        06/08/20 15:52:50

Index: emacs.py
===================================================================
RCS file: /sources/emacs/emacs/etc/emacs.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- emacs.py    5 Feb 2006 23:44:47 -0000       1.6
+++ emacs.py    20 Aug 2006 15:52:49 -0000      1.7
@@ -26,10 +26,11 @@
 
 def eexecfile (file):
     """Execute FILE and then remove it.
+    Execute the file within the __main__ namespace.
     If we get an exception, print a traceback with the top frame
-    (oursleves) excluded."""
+    (ourselves) excluded."""
     try:
-       try: execfile (file, globals (), globals ())
+       try: execfile (file, __main__.__dict__)
        except:
            (type, value, tb) = sys.exc_info ()
            # Lose the stack frame for this location.




reply via email to

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