[Python-mode] TAB in script buffer

Andreas Röhler andreas.roehler at online.de
Wed Jun 25 17:10:52 CEST 2014


On 25.06.2014 16:28, Barry Warsaw wrote:
> 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.

It should not. Beside reverting will not be an issue - just didn't want to create a surprise.

   FWIW, I'm a big fan of dabbrev-complete.

Me too - as the good quite often is nearby :)

#
>
> -Barry
>



More information about the Python-mode mailing list