From barry at python.org Mon Jun 9 13:49:01 2008 From: barry at python.org (Barry Warsaw) Date: Mon, 9 Jun 2008 07:49:01 -0400 Subject: [Python-mode] patch to allow file completion in py-shell In-Reply-To: References: Message-ID: <9EC81CC5-8D83-47FF-8C46-E61FA9B02E83@python.org> -----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----- From noreply at sourceforge.net Mon Jun 16 01:24:45 2008 From: noreply at sourceforge.net (SourceForge.net) Date: Sun, 15 Jun 2008 16:24:45 -0700 Subject: [Python-mode] [ python-mode-Bugs-970552 ] nested dictionaries do not properly indent Message-ID: Bugs item #970552, was opened at 2004-06-10 17:04 Message generated for change (Comment added) made by mforbes You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=970552&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert M. Zigweid (rzigweid) Assigned to: Nobody/Anonymous (nobody) Summary: nested dictionaries do not properly indent Initial Comment: the inner dictionaries of a set of nested dictionaries does not properly indent. It only indents to the same level as the parent dictionary. ---------------------------------------------------------------------- Comment By: Michael Forbes (mforbes) Date: 2008-06-15 23:24 Message: Logged In: YES user_id=253921 Originator: NO This seems to work... Was this fixed at some point (in which case the ticket should be closed). d = {'a':{'b':3, 'c':4}} ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=970552&group_id=86916 From noreply at sourceforge.net Mon Jun 16 02:03:23 2008 From: noreply at sourceforge.net (SourceForge.net) Date: Sun, 15 Jun 2008 17:03:23 -0700 Subject: [Python-mode] [ python-mode-Bugs-970552 ] nested dictionaries do not properly indent Message-ID: Bugs item #970552, was opened at 2004-06-10 17:04 Message generated for change (Comment added) made by mforbes You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=970552&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Robert M. Zigweid (rzigweid) Assigned to: Nobody/Anonymous (nobody) Summary: nested dictionaries do not properly indent Initial Comment: the inner dictionaries of a set of nested dictionaries does not properly indent. It only indents to the same level as the parent dictionary. ---------------------------------------------------------------------- Comment By: Michael Forbes (mforbes) Date: 2008-06-16 00:03 Message: Logged In: YES user_id=253921 Originator: NO Please disregard my previous comment: I was using python.el... This may still be a bug with python-mode.el. ---------------------------------------------------------------------- Comment By: Michael Forbes (mforbes) Date: 2008-06-15 23:24 Message: Logged In: YES user_id=253921 Originator: NO This seems to work... Was this fixed at some point (in which case the ticket should be closed). d = {'a':{'b':3, 'c':4}} ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=970552&group_id=86916 From baby07forever at yahoo.com Thu Jun 19 06:02:04 2008 From: baby07forever at yahoo.com (Korrie Williams) Date: Wed, 18 Jun 2008 21:02:04 -0700 (PDT) Subject: [Python-mode] (no subject) Message-ID: <308289.69543.qm@web35001.mail.mud.yahoo.com> i want to send pic for money -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryan.catanzaro at gmail.com Mon Jun 23 19:57:09 2008 From: bryan.catanzaro at gmail.com (BryanC) Date: Mon, 23 Jun 2008 10:57:09 -0700 (PDT) Subject: [Python-mode] Backtab? Message-ID: <18074667.post@talk.nabble.com> I would like python-mode to understand backtab (generated when I press shift+tab on windows). It would be nice to be able to go both directions in the indentation cycle, which is what shift+tab does in other applications. This is especially natural for closing nested blocks in python - using tab, I have to cycle through all sorts of outer blocks when I really only want to close the innermost block. However, when I try this in python mode, emacs tells me that is undefined. Is this already implemented some other way? Thanks. -- View this message in context: http://www.nabble.com/Backtab--tp18074667p18074667.html Sent from the Python - python-mode mailing list archive at Nabble.com. From deets at web.de Tue Jun 24 11:31:54 2008 From: deets at web.de (Diez B. Roggisch) Date: Tue, 24 Jun 2008 11:31:54 +0200 Subject: [Python-mode] Backtab? In-Reply-To: <18074667.post@talk.nabble.com> References: <18074667.post@talk.nabble.com> Message-ID: <200806241131.54260.deets@web.de> On Monday 23 June 2008 19:57:09 BryanC wrote: > I would like python-mode to understand backtab (generated when I press > shift+tab on windows). It would be nice to be able to go both directions > in the indentation cycle, which is what shift+tab does in other > applications. This is especially natural for closing nested blocks in > python - using tab, I have to cycle through all sorts of outer blocks when > I really only want to close the innermost block. > > However, when I try this in python mode, emacs tells me that is > undefined. > Is this already implemented some other way? C-u And I guess you should be somehow able to map that to Diez