From: Lars Ingebrigtsen <larsi@gnus.org>
To: JD Smith <jdtsmith@gmail.com>
Cc: 47575@debbugs.gnu.org, Andrii Kolomoiets <andreyk.mad@gmail.com>
Subject: bug#47575: python-shell-completion-at-point omits %magic commands
Date: Thu, 06 May 2021 13:05:04 +0200 [thread overview]
Message-ID: <87a6p8w2an.fsf@gnus.org> (raw)
In-Reply-To: <0F56B58F-840F-45EA-B538-02FF19E16A90@gmail.com> (JD Smith's message of "Sat, 3 Apr 2021 00:21:54 -0400")
JD Smith <jdtsmith@gmail.com> writes:
> When using iPython as the inferior shell of python.el,
> `python-shell-completion-at-point' skips a `simple-operator’ regexp which include
> ?%. In iPython, magic commands begin with ‘%’, and the fallback completion
> method happily provides them for completion:
>
> In [67]: __PYTHON_EL_get_completions("%ru")
> Out[91]: ['%%ruby', '%run’]
>
> python-shell-completion-at-point trims this to “ru”, which also provides the same
> completions above, but which `try-completions’ rejects as non-matching. So that:
>
> In [1]: %ru[Tab]
>
> Leads to “No matches”.
>
> The solution would be to not skip the ?% character if it is at the start of the line. The
> modulo operator cannot occur there in any case.
The simple-operator was added to fix bug#37808 in:
commit 51d3c95147efa80fd3e09c90705439517e8fb6ca
Author: Andrii Kolomoiets <andreyk.mad@gmail.com>
AuthorDate: Fri Oct 18 16:04:32 2019 +0300
I've added Andrii to the CCs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-05-06 11:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-03 4:21 bug#47575: python-shell-completion-at-point omits %magic commands JD Smith
2021-05-06 11:05 ` Lars Ingebrigtsen [this message]
2021-05-06 13:38 ` Andrii Kolomoiets
2022-06-29 10:46 ` Lars Ingebrigtsen
2022-06-29 20:31 ` Andrii Kolomoiets
2022-06-30 10:06 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6p8w2an.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=47575@debbugs.gnu.org \
--cc=andreyk.mad@gmail.com \
--cc=jdtsmith@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).