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: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Juri Linkov <juri <at> linkov.net>
Cc: 74166 <at> debbugs.gnu.org
Subject: bug#74166: [PATCH] Fix tmm "previous menu" shortcut
Date: Sat, 02 Nov 2024 19:43:33 +0100
[Message part 1 (text/plain, inline)]
Juri Linkov <juri <at> linkov.net> writes:

>> +(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'.

Thanks.  Here is a new version that uses this.
[0001-Fix-tmm-previous-menu-shortcut.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Manuel Giraud

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.