[Python-mode] TAB in script buffer

Barry Warsaw barry at python.org
Wed Jun 25 16:28:55 CEST 2014


On Jun 25, 2014, at 04:04 PM, Andreas Röhler wrote:

>lately TAB in Python shell was bound to `py-shell-complete-or-indent'.
>
>What about doing likewise in script buffers - where TAB is currently
>`py-indent-line'?
>
>Unfortunatly the default completion-key M-TAB is used by most X-windows
>systems, so users must re-configure first.
>
>Binding it to TAB would solve that.
>
>BTW in this case completion should only be called at end of line and with
>word before. Otherwise TAB would `py-indent-line' - as a second TAB would do
>also.
>
>Comments?

Hmm, maybe.  I'd have to try it for a while to make sure it doesn't interfere
with normal code editing.  FWIW, I'm a big fan of dabbrev-complete.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20140625/0c435f4f/attachment.sig>


More information about the Python-mode mailing list