GNU bug report logs -
#25753
Python with libedit (macOS default) echoes input, breaks native completion
Previous Next
Full log
View this message in rfc822 format
npostavs <at> users.sourceforge.net writes:
> Live System User <nyc4bos <at> aol.com> writes:
>
>> npostavs <at> users.sourceforge.net writes:
>>
>> [...]
>>>
>>> Can you try load the attached file in Emacs? Does it show similar
>>> output in the "*py native complete test*" buffer?
>>>
>>> emacs -Q -l py-native-completion.el
>>
>> Attached are my results.
>
> Hmm, that looks like it should be working. Wait, when you said
>
> I was already using that (wrapped in a "with-eval-after-load
> 'python") from:
>
> https://github.com/jorgenschaefer/elpy/issues/887#issuecomment-275175119
>
> to no avail.
>
> You meant the code from that exact comment? That's a broken solution,
> try this instead:
>
> (with-eval-after-load 'python
> (defun python-shell-completion-native-try ()
> "Return non-nil if can trigger native completion."
> (let ((python-shell-completion-native-enable t)
> (python-shell-completion-native-output-timeout
> python-shell-completion-native-try-output-timeout))
> (python-shell-completion-native-get-completions
> (get-buffer-process (current-buffer))
> nil "_"))))
Your version of the solution works for me.
Thanks for your effort!.
>
> If it's still not working, please post the contents of buffer " *Python
> completions redirect*" (note the leading space).
This bug report was last modified 1 year and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.