GNU bug report logs - #2252
python-load-file in python.el does not seem to work

Previous Next

Package: emacs;

Reported by: Mikko Huhtala <mhuhtala <at> abo.fi>

Date: Mon, 9 Feb 2009 19:45:02 UTC

Severity: normal

Merged with 2779

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2252 in the body.
You can then email your comments to 2252 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report stored :
bug#2252; Package emacs. (Mon, 09 Feb 2009 19:45:02 GMT) Full text and rfc822 format available.

Message #3 received at quiet <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Mikko Huhtala <mhuhtala <at> abo.fi>
To: quiet <at> debbugs.gnu.org
Subject: python-load-file in python.el does not seem to work
Date: Tue, 3 Feb 2009 23:14:31 +0200
[ resent from
  http://lists.gnu.org/archive/html/emacs-devel/2009-02/msg00220.html ]

I've ran inferior Python from both 23.0.90 and today's (2009-02-03)
CVS version. Python-load-file (C-c C-l) does not seem to do anything
in either. I do get

  Fontifying *Python*<2>... (regexps...........)
  menu-bar Python Import/reload file
  /home/mhuhtala/test/test.py loaded

in *Messages* but the module that was supposed to be loaded never
appears in the Python session and all I get is NameErrors if I try to
use it.

This is on Fedora 10 (x86) with Python 2.5.2 and glibc 2.9-3. I
compiled both Emacs versions on the system with GCC 4.3.2-7.

Doing the same with the same Python file in Fedora 7 and its Emacs 22
does work as expected.

Mikko




bug reassigned from package `emacs' to `emacs,python'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Mon, 09 Feb 2009 21:15:04 GMT) Full text and rfc822 format available.

Merged 2252 2779. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 25 Mar 2009 17:45:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2252; Package emacs,python. (Sat, 02 May 2009 23:40:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mikko Huhtala <mhuhtala <at> abo.fi>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Sat, 02 May 2009 23:40:06 GMT) Full text and rfc822 format available.

Message #12 received at 2252 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Mikko Huhtala <mhuhtala <at> abo.fi>
To: 2252 <at> debbugs.gnu.org
Subject: still present in 23.0.93 pretest
Date: Sun, 3 May 2009 02:34:08 +0300
The problem with python-load-file seems to still be there in 23.0.93
pretest (tested with python-2.5.2-1.fc10.i386 on Fedora 10).

The function python-load-file itself is unchanged compared to Emacs
22. In Emacs 22 it works for me but in 23 it does not.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2252; Package emacs,python. (Sun, 03 May 2009 14:50:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Sun, 03 May 2009 14:50:06 GMT) Full text and rfc822 format available.

Message #17 received at 2252 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Mikko Huhtala <mhuhtala <at> abo.fi>
Cc: 2252 <at> debbugs.gnu.org
Subject: Re: python-load-file in python.el does not seem to work
Date: Sun, 03 May 2009 10:42:17 -0400
> I've ran inferior Python from both 23.0.90 and today's (2009-02-03)
> CVS version. Python-load-file (C-c C-l) does not seem to do anything
> in either.

It seems to work for me, using the following recipe:

  touch foo.py
  emacs -Q foo.py
  C-c C-l RET
  C-x b *Python* RET

  >>> foo.__name__
  'foo'
  >>>

Do you see something different?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com:
bug#2252; Package emacs,python. (Sun, 03 May 2009 16:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mikko Huhtala <mhuhtala <at> abo.fi>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com. (Sun, 03 May 2009 16:30:03 GMT) Full text and rfc822 format available.

Message #22 received at 2252 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Mikko Huhtala <mhuhtala <at> abo.fi>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 2252 <at> debbugs.gnu.org
Subject: Re: python-load-file in python.el does not seem to work
Date: Sun, 3 May 2009 19:26:48 +0300
Chong Yidong writes:
 > It seems to work for me, using the following recipe:

You're right, it does work for me, too. The difference with my
previous test is that I started inferior Python first and loaded the
file after that. In Emacs 22, the file is loaded into the running
inferior Python session, but in 23 a new Python session is
initialized. Silly me did not even notice the second inferior Python
buffer. I tried to use the one I had open in a window, which obviously
didn't get the loaded file. Further C-c C-l commands do the right
thing and load the file into the same running Python session.

I'm assuming that this new behaviour is by design? I suppose it is
more logical that what Emacs 22 does, but it might trip some old
users.

If the new behaviour is what the developers intended, then this should
be closed as 'not a bug'.




bug closed, send any further explanations to Mikko Huhtala <mhuhtala <at> abo.fi> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Mon, 23 Aug 2010 01:02:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Sep 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.