[Python-mode] python-mode.el partial rewrite
Barry Warsaw
barry at python.org
Mon Jul 15 18:45:54 EDT 2019
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 <andreas.roehler at online.de> 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 <andreas.roehler at online.de> 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: <http://mail.python.org/pipermail/python-mode/attachments/20190715/989989af/attachment.sig>
More information about the Python-mode
mailing list