Hi Andreas.,

Thank you very much for the reply.,

Andreas Röhler <andreas.roeh...@online.de> writes:
[...]
> Hi Yagnesh,
>
> in order to use python-mode we are developing here, you must download
>
> http://launchpad.net/python-mode/trunk/6.0.4/+download/python-mode.el-6.0.4.tar.gz
>

I forgot to mention in my original mail, I have installed python-mode
with the help of el-get from a git mirror
(https://github.com/emacsmirror/python-mode) which generally follows
launchpad trunk. right now it seems two commits lag behind.
(I believe I installed python-mode properly)

> or the current trunk with bazaar
>
> bzr branch lp:python-mode
>
> This python-mode.el owes a lot to python.el coming with Emacs, but has
> much more features.

I am aware of that. Thank you.

>
[...]
>>
>>     what exactly I should have in my .emacs to get auto completion in
>>     python-mode. Again auto-completion with TAB working great in *IPython*
>>     buffer but not python-mode.
>>
>
> Presently we have completion, not auto-completion, i.e. completion
> needs a key, TAB in shells and M-TAB in common buffers.
>
> Should it not work, please send a bug report.

I understand I mixed up the terms. my intention was to refer
"completion" only at this point.

let me try to explain what I was talking about.

I loaded "minimal.el" which contains following lines
$ emacs -q -l ~/.emacs.d/minimal.el
-----------------------------------------------------------------
(add-to-list 'load-path  "~/.emacs.d/el-get/python-mode")
(setq py-install-directory  "~/.emacs.d/el-get/python-mode")
(require 'python-mode)

;;; some convinience
(ido-mode)
(defalias 'yes-or-no-p 'y-or-n-p)
-----------------------------------------------------------------

now created new python file "test.py"
wrote these lines

-----------------------------------------------------------------
#!/usr/bin/env python3

a = "b"
a.|
-----------------------------------------------------------------

my cursor is at "|". saved the buffer. I see a *Python* buffer was
created as soon as I saved test.py.

when I press "TAB" nothing happens. what I expect is similer to what is
happening in *ipython* shell. explained down below

Now
M-X ipython 

,----[ipython]
|
| In [1]: a = "b"
|
| In [2]: a
| Out[2]: 'b'
|
| In [3]: a.|
`----

if I type TAB at "|" I see another buffer called  *Python Completion* pops up 
with
offering follwing completions.

,----
| a.capitalize  a.center        a.count         a.encode
| a.endswith    a.expandtabs    a.find  a.format
| a.format_map  a.index         a.isalnum       a.isalpha
| a.isdecimal   a.isdigit       a.isidentifier  a.islower
| a.isnumeric   a.isprintable   a.isspace       a.istitle
| a.isupper     a.join  a.ljust         a.lower
| a.lstrip      a.maketrans     a.partition     a.replace
| a.rfind       a.rindex        a.rjust         a.rpartition
| a.rsplit      a.rstrip        a.split         a.splitlines
| a.startswith  a.strip         a.swapcase      a.title
| a.translate   a.upper         a.zfill
`----

So how can I get similar thing in *test.py* buffer itselt

I hope my description is clear.

--
Yagnesh

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to