From andreas.roehler at online.de Mon Jun 2 09:06:13 2014 From: andreas.roehler at online.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Mon, 02 Jun 2014 09:06:13 +0200 Subject: [Python-mode] TAB-completion in Python shell Message-ID: <538C2265.2090606@online.de> Hi Barry, hi all, completion in py-shell always was M-TAB However, many people switching to python-mode.el expect TAB to complete there. Here one from a bunch of reports: https://bugs.launchpad.net/python-mode/+bug/1325474 Any suggestions? Cheers, Andreas From barry at python.org Mon Jun 2 15:00:49 2014 From: barry at python.org (Barry Warsaw) Date: Mon, 2 Jun 2014 09:00:49 -0400 Subject: [Python-mode] TAB-completion in Python shell In-Reply-To: <538C2265.2090606@online.de> References: <538C2265.2090606@online.de> Message-ID: <20140602090049.517c155b@limelight.wooz.org> On Jun 02, 2014, at 09:06 AM, Andreas R?hler wrote: >completion in py-shell always was M-TAB > >However, many people switching to python-mode.el expect TAB to complete there. Seems like a reasonable change to me. Indenting is pretty rare in a shell. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From andreas.roehler at online.de Sat Jun 14 17:29:06 2014 From: andreas.roehler at online.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Sat, 14 Jun 2014 17:29:06 +0200 Subject: [Python-mode] Reduce complexity Message-ID: <539C6A42.1060003@online.de> Hi Barry, hi all, WRT https://bugs.launchpad.net/python-mode/+bug/1330045 consider to drop two variables, which introduce complexity while not being that useful as expected. It's `py-indent-no-completion-p' which would insert a TAB if no completion is found. The other: `py-no-completion-calls-dabbrev-expand-p' `dabbrev-expand' is a well known feature at its own keys, IMO doesn't pay to instrument it here. Just FYI. Should anybody want to keep the variables mentioned, please tell. Cheers, Andreas From andreas.roehler at online.de Wed Jun 25 16:04:21 2014 From: andreas.roehler at online.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Wed, 25 Jun 2014 16:04:21 +0200 Subject: [Python-mode] TAB in script buffer Message-ID: <53AAD6E5.1030106@online.de> Hi, 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? Cheers, Andreas From barry at python.org Wed Jun 25 16:28:55 2014 From: barry at python.org (Barry Warsaw) Date: Wed, 25 Jun 2014 10:28:55 -0400 Subject: [Python-mode] TAB in script buffer In-Reply-To: <53AAD6E5.1030106@online.de> References: <53AAD6E5.1030106@online.de> Message-ID: <20140625102855.7cedc6c4@anarchist.wooz.org> 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: From andreas.roehler at online.de Wed Jun 25 17:10:52 2014 From: andreas.roehler at online.de (=?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?=) Date: Wed, 25 Jun 2014 17:10:52 +0200 Subject: [Python-mode] TAB in script buffer In-Reply-To: <20140625102855.7cedc6c4@anarchist.wooz.org> References: <53AAD6E5.1030106@online.de> <20140625102855.7cedc6c4@anarchist.wooz.org> Message-ID: <53AAE67C.1040706@online.de> 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 > From andreas.roehler at online.de Mon Jun 30 09:12:03 2014 From: andreas.roehler at online.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Mon, 30 Jun 2014 09:12:03 +0200 Subject: [Python-mode] py-shell-name no longer buffer-local Message-ID: <53B10DC3.6080106@online.de> Hi, as difficulties have been reported WRT py-shell-name and the like being buffer-local, consider to drop that, making them normal vars. Just FYI, please tell if any objections, Cheers, Andreas