]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove the 'C-k' binding in ido-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Feb 2022 10:23:43 +0000 (11:23 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Feb 2022 10:24:22 +0000 (11:24 +0100)
* lisp/ido.el (ido-file-completion-map): Remove the `C-k' binding,
because it's too dangerous and probably not very useful (bug#44556).

etc/NEWS
lisp/ido.el

index 169208d94fc76ada744782dc78890af783fe5f7a..6f5edfafc5a44f860deb78bb867c92bde3e6ae65 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -103,6 +103,14 @@ of 'user-emacs-directory'.
 \f
 * Incompatible changes in Emacs 29.1
 
+---
+** 'C-k' no longer deletes files in 'ido-mode'.
+To get the previous action back, put something like the following in
+your init file:
+
+  (require 'ido)
+  (keymap-set ido-file-completion-map "C-k" #'ido-delete-file-at-head)
+
 ---
 ** New user option 'term-clear-full-screen-programs'.
 By default, term will now work like most terminals when displaying
index 58cec3deb0ecd8c93d2018c2221308cee2e32623..e068028d919f2318df27ea5d70060092ac0463c2 100644 (file)
@@ -978,7 +978,6 @@ The fallback command is passed as an argument to the functions."
 (defvar-keymap ido-file-completion-map
   :doc "Keymap for Ido file commands."
   :parent ido-file-dir-completion-map
-  "C-k" #'ido-delete-file-at-head
   "C-o" #'ido-copy-current-word
   "C-w" #'ido-copy-current-file-name
   "M-l" #'ido-toggle-literal)