unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51010: 29.0.50; python completion breaks upon non-trivial rl config
@ 2021-10-04 14:59 Carlos Pita
  2021-10-09 17:22 ` Carlos Pita
  0 siblings, 1 reply; 16+ messages in thread
From: Carlos Pita @ 2021-10-04 14:59 UTC (permalink / raw)
  To: 51010

(originally reported in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753)

Using this readline config:

> cat .inputrc

set completion-ignore-case on
set completion-display-width 80
set completion-prefix-display-length 5
set show-all-if-ambiguous on
set skip-completed-text on
set colored-stats on
set blink-matching-paren on
set menu-complete-display-prefix on

native completions received by python.el look like:

    0__dummy_completion__ [0m [K  1__dummy_completion__ [0m [K

which wreaks havoc with the native completion mechanism.

This mechanism is quite fragile and already complex enough, I don't
feel like approaching the issue on a case by case basis and always
catching up with upstream and with configuration combinatorics.

One alternative is to set the INPUTRC environment variable in order to
reset the user config. Short of doing that, we could just make one
regex less strict:

                  (comint-redirect-finished-regexp
                   "1__dummy_completion__[[:space:]]*\n")

to:
                  (comint-redirect-finished-regexp
                   "1__dummy_completion__.*\n")

I propose this minimal change. A priori I'd expect that the text
"1__dummy_completion__" will always be in the output, no matter the
specific configuration, although the fact that python.el is already
doing `set show-all-if-ambiguous on` is a testimony to how fallible my
expectations are.

Best regards,
Carlos





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-11-05  7:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 14:59 bug#51010: 29.0.50; python completion breaks upon non-trivial rl config Carlos Pita
2021-10-09 17:22 ` Carlos Pita
2021-10-10 11:50   ` Augusto Stoffel
2021-10-10 17:27     ` Carlos Pita
2021-10-14  0:46       ` Carlos Pita
2021-10-14  0:50         ` Carlos Pita
2021-10-14  7:35           ` Eli Zaretskii
2021-10-15  1:15             ` Carlos Pita
2021-10-15  6:52               ` Eli Zaretskii
2021-10-19 23:20                 ` Carlos Pita
2021-10-20 11:53                   ` Eli Zaretskii
2021-10-30 16:09         ` Stefan Kangas
2021-10-30 16:14           ` Eli Zaretskii
2021-10-30 16:37             ` Stefan Kangas
2021-10-30 18:19               ` Carlos Pita
2021-11-05  7:11                 ` Stefan Kangas

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).