GNU bug report logs -
#47575
python-shell-completion-at-point omits %magic commands
Previous Next
Full log
View this message in rfc822 format
JD Smith <jdtsmith <at> 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 <at> 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
This bug report was last modified 2 years and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.