all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [aaditya@sood.net.in: Problem in python inferior mode in unicode-2 branch]
@ 2006-10-21 12:04 Richard Stallman
  2006-10-22  4:11 ` Steven Huwig
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2006-10-21 12:04 UTC (permalink / raw)


Can someone please report whether this fails with the trunk?

------- Start of forwarded message -------
Date: Fri, 20 Oct 2006 23:12:17 +0530
From: =?UTF-8?B?YWFkaXR5YSBzb29kIHwg4KSG4KS/4KSm4KSk4KSvIOCkuOClguCkpg==?=
	<aaditya@sood.net.in>
MIME-Version: 1.0
To: emacs-devel@gnu.org
Content-Type: text/plain; charset=UTF-8; format=flowed
Subject: Problem in python inferior mode in unicode-2 branch 
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4

Hi,

[If this is not the right place to report bugs in cvs versions, I apologize]

I'm running the emacs-unicode-2 branch. When I use run-python the tab
completion is broken.

Example:

   import os
   os.<Tab>

it just hangs and pressing C-g throws an error:
   NameError: 'name nil' is not defined

After digging around for a while, it seems the problem is in
python-symbol-completions which calls python-send-receive like:

  (python-send-receive
       (format "emacs.complete(%S,%s)" symbol python-imports))

python-imports is 'nil':
  (defvar python-imports nil

which is supposed to be set by python-find-imports, but which never
seems to run.

Just doing a (defvar python-imports "None"

works for me. Don't know if this is the proper way to fix it.

regards
- --
/A


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [aaditya@sood.net.in: Problem in python inferior mode in unicode-2 branch]
  2006-10-21 12:04 [aaditya@sood.net.in: Problem in python inferior mode in unicode-2 branch] Richard Stallman
@ 2006-10-22  4:11 ` Steven Huwig
  2006-10-23  5:11   ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Huwig @ 2006-10-22  4:11 UTC (permalink / raw)
  Cc: emacs-devel


On Oct 21, 2006, at 8:04 AM, Richard Stallman wrote:

> Can someone please report whether this fails with the trunk?
>

Assuming I understood what Aaditya Sood reported, this works for
me.  I created a new buffer using python-mode, called run-python,
and python-complete-symbol (bound to M-<Tab> for me) worked for the
code in the example.

I remember running into and helping to fix a similar difficulty
over a year ago -- how often are the modes merged into the
Unicode branch?

-- Steve

> ------- Start of forwarded message -------
> Date: Fri, 20 Oct 2006 23:12:17 +0530
> From: =?UTF-8?B?YWFkaXR5YSBzb29kIHwg4KSG4KS/ 
> 4KSm4KSk4KSvIOCkuOClguCkpg==?=
> 	<aaditya@sood.net.in>
> MIME-Version: 1.0
> To: emacs-devel@gnu.org
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Subject: Problem in python inferior mode in unicode-2 branch
> X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
> 	version=3.0.4
>
> Hi,
>
> [If this is not the right place to report bugs in cvs versions, I  
> apologize]
>
> I'm running the emacs-unicode-2 branch. When I use run-python the tab
> completion is broken.
>
> Example:
>
>    import os
>    os.<Tab>
>
> it just hangs and pressing C-g throws an error:
>    NameError: 'name nil' is not defined
>
> After digging around for a while, it seems the problem is in
> python-symbol-completions which calls python-send-receive like:
>
>   (python-send-receive
>        (format "emacs.complete(%S,%s)" symbol python-imports))
>
> python-imports is 'nil':
>   (defvar python-imports nil
>
> which is supposed to be set by python-find-imports, but which never
> seems to run.
>
> Just doing a (defvar python-imports "None"
>
> works for me. Don't know if this is the proper way to fix it.
>
> regards
> - --
> /A
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
> ------- End of forwarded message -------
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [aaditya@sood.net.in: Problem in python inferior mode in unicode-2 branch]
  2006-10-22  4:11 ` Steven Huwig
@ 2006-10-23  5:11   ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2006-10-23  5:11 UTC (permalink / raw)
  Cc: emacs-devel

    Assuming I understood what Aaditya Sood reported, this works for
    me.  I created a new buffer using python-mode, called run-python,
    and python-complete-symbol (bound to M-<Tab> for me) worked for the
    code in the example.

Thank you for checking.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-23  5:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-21 12:04 [aaditya@sood.net.in: Problem in python inferior mode in unicode-2 branch] Richard Stallman
2006-10-22  4:11 ` Steven Huwig
2006-10-23  5:11   ` Richard Stallman

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.