From 79fda663272636345927a88fbc38b73953668a67 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 11 Feb 2026 09:19:52 +0200 Subject: [PATCH] Revert "New key 'M-j' for 'icomplete-mode' (bug#62108)" This reverts commit 3584a762b8cbfb6e13011827ec5934f039344d0f. Another fix follows shortly after this commit. --- etc/NEWS | 4 ---- lisp/icomplete.el | 3 --- lisp/replace.el | 3 --- 3 files changed, 10 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 61dd9899edc..0388d47b87e 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3092,10 +3092,6 @@ Meant to be given a global binding convenient to the user. Example: ** Icomplete -*** New key 'M-j' for 'icomplete-mode' and 'icomplete-vertical-mode'. -Like 'M-j' in 'fido-mode', it can exit the minibuffer with a selected -candidate even when 'icomplete-show-matches-on-no-input' is non-nil. - *** New user options for 'icomplete-vertical-mode'. New user options have been added to enhance 'icomplete-vertical-mode': diff --git a/lisp/icomplete.el b/lisp/icomplete.el index c1d9556e24d..6de3dd0b50a 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -242,7 +242,6 @@ Used to implement the option `icomplete-show-matches-on-no-input'.") :doc "Keymap used by `icomplete-mode' in the minibuffer." "C-M-i" #'icomplete-force-complete "C-j" #'icomplete-force-complete-and-exit - "M-j" #'icomplete-exit "C-." #'icomplete-forward-completions "C-," #'icomplete-backward-completions " " #'icomplete-ret) @@ -456,8 +455,6 @@ if that doesn't produce a completion match." (minibuffer-complete-and-exit) (exit-minibuffer))) -(defalias 'icomplete-exit #'icomplete-fido-exit) - (defun icomplete-fido-backward-updir () "Delete char before or go up directory, like `ido-mode'." (interactive) diff --git a/lisp/replace.el b/lisp/replace.el index d8b27544128..933249d824c 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -1878,9 +1878,6 @@ is not modified." (bound-and-true-p ido-everywhere)) (substitute-command-keys "(\\\\[ido-select-text] to end): ")) - ((bound-and-true-p icomplete-mode) - (substitute-command-keys - "(\\\\[icomplete-exit] to end): ")) ((bound-and-true-p fido-mode) (substitute-command-keys "(\\\\[icomplete-fido-exit] to end): "))