GNU bug report logs - #74166
[PATCH] Fix tmm "previous menu" shortcut

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Fri, 1 Nov 2024 18:37:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Manuel Giraud <manuel <at> ledu-giraud.fr>
Cc: 74166 <at> debbugs.gnu.org
Subject: bug#74166: [PATCH] Fix tmm "previous menu" shortcut
Date: Sat, 02 Nov 2024 19:10:10 +0200
> +(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'.




This bug report was last modified 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.