]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid replacing common prefix with ellipsis
authorCarlos Pita <carlosjosepita@gmail.com>
Fri, 15 Oct 2021 00:48:43 +0000 (21:48 -0300)
committerStefan Kangas <stefan@marxist.se>
Sat, 30 Oct 2021 15:51:27 +0000 (17:51 +0200)
* lisp/progmodes/python.el
(python-shell-completion-native-setup): Configure readline not to
suppress common prefixes.  (Bug#51218)

lisp/progmodes/python.el

index 1b55db09503159ccbfd366ef1a52824233fc4346..f1c3e75bb7364eb1769c7fd53e619f1159960651 100644 (file)
@@ -3711,6 +3711,8 @@ def __PYTHON_EL_native_completion_setup():
             readline.parse_and_bind('tab: complete')
             # Require just one tab to send output.
             readline.parse_and_bind('set show-all-if-ambiguous on')
+            # Avoid replacing common prefix with ellipsis.
+            readline.parse_and_bind('set completion-prefix-display-length 0')
 
         print ('python.el: native completion setup loaded')
     except: