Re: [Python-mode] python-mode.el partial rewrite

2019-07-15 Thread Barry Warsaw
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
>>> 
>>> 



signature.asc
Description: Message signed with OpenPGP
___
Python-mode mailing list
Python-mode@python.org
https://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] Fwd: Simplifying python-mode.el

2019-07-15 Thread Barry Warsaw
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@python.org
> https://mail.python.org/mailman/listinfo/python-mode



signature.asc
Description: Message signed with OpenPGP
___
Python-mode mailing list
Python-mode@python.org
https://mail.python.org/mailman/listinfo/python-mode