From andreas.roehler at online.de Wed Jul 10 04:14:30 2019 From: andreas.roehler at online.de (=?UTF-8?Q?Andreas_R=c3=b6hler?=) Date: Wed, 10 Jul 2019 10:14:30 +0200 Subject: [Python-mode] python-mode.el partial rewrite Message-ID: Hi Barry, hi all, should have fixed? IPython completion and fontification, also #31, which caused some changes. Maybe check it out. Cheers, Andreas From barry at python.org Thu Jul 11 17:22:22 2019 From: barry at python.org (Barry Warsaw) Date: Thu, 11 Jul 2019 14:22:22 -0700 Subject: [Python-mode] python-mode.el partial rewrite In-Reply-To: References: Message-ID: Great, thanks for all your great work on the module. I?ve updated to 639532b and will play with this for a while. -Barry > On Jul 10, 2019, at 01:14, Andreas R?hler wrote: > > Hi Barry, hi all, > > should have fixed IPython completion and fontification, also #31, > > which caused some changes. Maybe check it out. > > Cheers, > > Andreas > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Message signed with OpenPGP URL: From andreas.roehler at online.de Fri Jul 12 03:09:18 2019 From: andreas.roehler at online.de (=?UTF-8?Q?Andreas_R=c3=b6hler?=) Date: Fri, 12 Jul 2019 09:09:18 +0200 Subject: [Python-mode] python-mode.el partial rewrite In-Reply-To: References: Message-ID: <28e70af3-a744-4ccf-05c7-a51acf7d639a@online.de> Thanks Barry, next question: we have a lot of commands which are convenient occasionally, however most of them will never be used but take a lot of space. To make the core of python-mode.el readable again think to construct it on the fly according to something like (defcustom py-known-shells ? (list "ipython" ??? "ipython2.7" ??? "ipython3" ??? "jython" ??? "python" ??? "python2" ??? "python3" ??? "pypy" ??? ) ? "A list of available shells instrumented for commands. ?Expects its executables installed"))... This list might be shrink or extended at will. Two backsides: a slightly larger loading time and source of callers like ?py-execute-section-ipython3? will not be visible for users. WDYT? Any objections? Cheers, Andreas On 11.07.19 23:22, Barry Warsaw wrote: > Great, thanks for all your great work on the module. I?ve updated to 639532b and will play with this for a while. > > -Barry > >> On Jul 10, 2019, at 01:14, Andreas R?hler wrote: >> >> Hi Barry, hi all, >> >> should have fixed IPython completion and fontification, also #31, >> >> which caused some changes. Maybe check it out. >> >> Cheers, >> >> Andreas >> >> From andreas.roehler at online.de Sun Jul 14 02:16:18 2019 From: andreas.roehler at online.de (=?UTF-8?Q?Andreas_R=c3=b6hler?=) Date: Sun, 14 Jul 2019 08:16:18 +0200 Subject: [Python-mode] Fwd: Simplifying python-mode.el In-Reply-To: <341c849a-3338-6018-203f-c98b5af13b7b@online.de> References: <341c849a-3338-6018-203f-c98b5af13b7b@online.de> Message-ID: <3dc7ab00-b91e-bcd5-a4a9-24edb3e08bbd@online.de> -------- Forwarded Message -------- Subject: Simplifying python-mode.el Date: Sat, 13 Jul 2019 09:56:32 +0200 From: Andreas R?hler To: Barry Warsaw Hi Barry, hi all, consider to reduce the amount of commands starting with `py-execute-...` Such things like py-execute-block-ipython-dedicated-switch. It would remain py-execute-block-ipython running in dedicated buffer when called with C-u For switch and split options there are already py-switch-buffers-on-execute-p and py-split-window-on-execute Just FYI. Any objections? Cheers, Andreas -------------- next part -------------- An HTML attachment was scrubbed... URL: From barry at python.org Mon Jul 15 18:23:03 2019 From: barry at python.org (Barry Warsaw) Date: Mon, 15 Jul 2019 15:23:03 -0700 Subject: [Python-mode] Fwd: Simplifying python-mode.el In-Reply-To: <3dc7ab00-b91e-bcd5-a4a9-24edb3e08bbd@online.de> References: <341c849a-3338-6018-203f-c98b5af13b7b@online.de> <3dc7ab00-b91e-bcd5-a4a9-24edb3e08bbd@online.de> Message-ID: <5E71F3A5-8238-4D8F-AF6C-F2416E8EF888@python.org> I personally only tend to use py-execute-region (C-c |) and py-execute-buffer (C-c C-c). Are you proposing to change or remove those? -Barry > On Jul 13, 2019, at 23:16, Andreas R?hler wrote: > > -------- Forwarded Message -------- > Subject: Simplifying python-mode.el > Date: Sat, 13 Jul 2019 09:56:32 +0200 > From: Andreas R?hler > To: Barry Warsaw > > > Hi Barry, hi all, > > consider to reduce the amount of commands starting with `py-execute-...` > > Such things like py-execute-block-ipython-dedicated-switch. > > It would remain > > py-execute-block-ipython > > running in dedicated buffer when called with C-u > > For switch and split options there are already > > py-switch-buffers-on-execute-p and > > py-split-window-on-execute > > Just FYI. > > Any objections? > > Cheers, > > > Andreas > > > > > _______________________________________________ > Python-mode mailing list > Python-mode at python.org > https://mail.python.org/mailman/listinfo/python-mode -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Message signed with OpenPGP URL: From barry at python.org Mon Jul 15 18:45:54 2019 From: barry at python.org (Barry Warsaw) Date: Mon, 15 Jul 2019 15:45:54 -0700 Subject: [Python-mode] python-mode.el partial rewrite In-Reply-To: <28e70af3-a744-4ccf-05c7-a51acf7d639a@online.de> References: <28e70af3-a744-4ccf-05c7-a51acf7d639a@online.de> Message-ID: <6B2194E5-B387-4745-B27F-0F4051F5D256@python.org> Hi Andreas, I don?t have any strong opinions, except that I do use python-mode.el in a kind of weird way. I never byte compile it, always loading from the .el in my emacs init files. I got into this habit ages ago when VCSes couldn?t automatically byte compile files when you updated your local repos (and Emacs .elc files aren?t like Python?s .pyc files, since they don?t get auto-generated when the .el file is newer). -Barry > On Jul 12, 2019, at 00:09, Andreas R?hler wrote: > > Thanks Barry, > > next question: > > we have a lot of commands which are convenient occasionally, however most of them will never be used but take a lot of space. To make the core of python-mode.el readable again think to construct it on the fly according to something like > > (defcustom py-known-shells > (list "ipython" > "ipython2.7" > "ipython3" > "jython" > "python" > "python2" > "python3" > "pypy" > ) > "A list of available shells instrumented for commands. > Expects its executables installed"))... > > This list might be shrink or extended at will. > > Two backsides: a slightly larger loading time and source of callers like ?py-execute-section-ipython3? will not be visible for users. > > WDYT? Any objections? > > Cheers, > > Andreas > > > > > On 11.07.19 23:22, Barry Warsaw wrote: >> Great, thanks for all your great work on the module. I?ve updated to 639532b and will play with this for a while. >> >> -Barry >> >>> On Jul 10, 2019, at 01:14, Andreas R?hler wrote: >>> >>> Hi Barry, hi all, >>> >>> should have fixed IPython completion and fontification, also #31, >>> >>> which caused some changes. Maybe check it out. >>> >>> Cheers, >>> >>> Andreas >>> >>> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Message signed with OpenPGP URL: