bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68559: [PATCH] Improve Python shell completion


From: Liu Hui
Subject: bug#68559: [PATCH] Improve Python shell completion
Date: Fri, 26 Jan 2024 18:12:19 +0800

kobarity <kobarity@gmail.com> 于2024年1月25日周四 23:38写道:
>
> Liu Hui wrote:
> > kobarity <kobarity@gmail.com> 于2024年1月23日周二 22:15写道:
> > > Thank you.  I tried the new patch and confirmed that the Python Shell
> > > buffer allows keyword argument completion on multi-line function
> > > calls.  However, my expectation is that it can be done in Python
> > > buffer as well (after calling `python-shell-send-buffer').  Is this
> > > also possible?
> > Thank you for the feedback. I have updated the patch to add support in
> > Python buffer.
>
> Thank you.  It's working very nice.
>
> I apologize for reporting in the piecemeal fashion, but I have noticed
> the following differences from the current completion.

No worries. I appreciate your valuable feedback for improving the
quality of the patch.

> 1. Module names cannot be completed in Python buffer.

Can you elaborate? The completion of module names never worked for me
except using IPython with non-native completion mechanism.

Because module names cannot be completed using vanilla python
interpreter in the terminal, they are also not completed even with the
patch, unless jedi is available.

> 2. Completion is not working in comments.
>
> I'm not sure if the completion should work in comments, but some
> people might want it because the current python-mode allows it in both
> Python buffer and Python Shell buffer.

Thanks for pointing it out. The attached patch should now restore
previous basic completion behavior in comments.

Attachment: 0001-Improve-Python-shell-completion-bug-68559.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]