[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char
From: |
Stefan Monnier |
Subject: |
bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char |
Date: |
Thu, 07 Sep 2023 13:48:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> @@ -3733,7 +3733,14 @@ read-char-from-minibuffer
>> read-char-from-minibuffer-map))
>> ;; Protect this-command when called from pre-command-hook
>> (bug#45029)
>> (this-command this-command)
>> - (result (progn
>> + (result (minibuffer-with-setup-hook
>> + (lambda ()
>> + (add-hook 'post-command-hook
>> + (lambda ()
>> + (if (= (1+ (minibuffer-prompt-end))
>> + (point-max))
>> + (exit-minibuffer)))
>> + 'local))
>
> I have a patch where exit-minibuffer in read-char-from-minibuffer-map
> is bound to a new command that ensures that the minibuffer contains
> exactly 1 character before exiting. But need more testing to see
> what is better.
`read-char-from-minibuffer` usually doesn't require the user to use an
explicit key to exit (because it tries to mimic `read-char`).
Stefan
- bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char, Filipp Gunbin, 2023/09/07
- bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char, Eli Zaretskii, 2023/09/10
- bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char, Stefan Monnier, 2023/09/10
- bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char, Eli Zaretskii, 2023/09/11
- bug#65805: 30.0.50; quoted-insert doesn't work in zap-to-char, Stefan Monnier, 2023/09/12