From 62a8ae55b0093c9fd6c473c9f3b3a91cc3e83e64 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 15 Jun 2024 19:17:12 +0200 Subject: [PATCH] New command 'ignore-string' --- lisp/simple.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index f5cc2db4511..8d8e898823e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -11248,6 +11248,14 @@ seconds." (setq undo-auto-current-boundary-timer (run-at-time 5 nil #'undo-auto--boundary-timer))))))) +(defun ignore-string (string) + "Read STRING in the minibuffer, ignore it, and return nil. + +Use this command to get a fresh minibuffer without performing any +particular action on the input you type there." + (interactive "sIgnore: ") + (ignore string)) + (provide 'simple) ;;; simple.el ends here -- 2.39.2