|
From: | Juri Linkov |
Subject: | bug#74166: [PATCH] Fix tmm "previous menu" shortcut |
Date: | Sat, 02 Nov 2024 19:10:10 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
> +(defun tmm-clear-self-insert-and-exit () > + "Clear the minibuffer content before self insert and exit." > + (interactive) > + (delete-region (minibuffer-prompt-end) (point-max)) > + (self-insert-and-exit)) There is a special function 'delete-minibuffer-contents' like is used e.g. in 'read-char-from-minibuffer-insert-char' and 'y-or-n-p-insert-y'.
[Prev in Thread] | Current Thread | [Next in Thread] |