-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Apr 29, 2008, at 1:57 PM, Rodrigo Ventura wrote:
I'm sending this this tiny patch to python-mode.el so that py-shell
supports file completion after hiting the TAB key (and M-TAB lists
possible completions):
--------------------- cut here ----------------------------
--- python-mode.el.orig 2008-04-29 16:42:04.000000000 +0100
+++ python-mode.el 2008-04-29 16:46:08.000000000 +0100
@@ -708,9 +708,10 @@
(if py-shell-map
nil
(setq py-shell-map (copy-keymap comint-mode-map))
- (define-key py-shell-map [tab] 'tab-to-tab-stop)
(define-key py-shell-map "\C-c-" 'py-up-exception)
(define-key py-shell-map "\C-c=" 'py-down-exception)
+ (define-key py-shell-map "\t" 'comint-dynamic-complete-filename)
+ (define-key py-shell-map "\e\t" 'comint-dynamic-list-filename-
completions)
)
(defvar py-mode-syntax-table nil
--------------------- cut here ----------------------------
Hi Rodrigo,
Thanks for the patch. Could you please submit a bug report and then
attach the patch to that, so it doesn't get lost in our inboxes?
https://bugs.launchpad.net/python-mode
Thanks!
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iQCVAwUBSE0Yr3EjvBPtnXfVAQLktwP+Prs+hJmgmQ7+49VzmXFnqzMfgNBSMPeh
WZa1dMX3wp8JTK1E4OG4U8ayoGSSOm2t75X4IanHYhZH6qODXEvytpPNibwrB1+6
IZQTDm/kxsULtB2pR2xm6z+u9GzOa4yND0p4EfElHa/d/nbb4hMcRzdMeQzjoPHL
cDxHqbw3elU=
=TSQE
-----END PGP SIGNATURE-----
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode