]> git.eshelyaron.com Git - emacs.git/commitdiff
New command 'ignore-string'
authorEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:17:12 +0000 (19:17 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:21:16 +0000 (19:21 +0200)
lisp/simple.el

index f5cc2db4511fe9698627263b8649749da2d7f89c..8d8e898823e8865e61315c60c217d54e4d41a9db 100644 (file)
@@ -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