From: Eshel Yaron Date: Sat, 15 Jun 2024 17:17:12 +0000 (+0200) Subject: New command 'ignore-string' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62a8ae55b0093c9fd6c473c9f3b3a91cc3e83e64;p=emacs.git New command 'ignore-string' --- 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