[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to read an integer from the minibuffer
From: |
Marcin Borkowski |
Subject: |
Re: How to read an integer from the minibuffer |
Date: |
Fri, 12 Nov 2021 07:21:36 +0100 |
User-agent: |
mu4e 1.1.0; emacs 28.0.50 |
Ok,
thanks for all your answers!
Best,
mbork
On 2021-11-11, at 05:53, Marcin Borkowski <mbork@mbork.pl> wrote:
> Hi all,
>
> I'd like to read an integer (or something else e.g. matching a regex)
> from a minibuffer. Basically, I'm after a version of `read-string', but
> either allowing only some characters, or accepting only input matching
> some regex (possibly both).
>
> How do I do that? One way would be to use `read-from-minibuffer' with
> a suitable keymap, but that seems slightly low-level. If that is the
> way to go, is there a good way to set up a keymap so that nothing except
> some specified characters are self-inserting? IOW, is `suppress-keymap'
> the way to go or is there some other way?
>
> TIA,
--
Marcin Borkowski
http://mbork.pl
- Re: How to read an integer from the minibuffer, (continued)
- Re: How to read an integer from the minibuffer, tomas, 2021/11/13
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Jean Louis, 2021/11/13
- Re: How to read an integer from the minibuffer, tomas, 2021/11/13
- Re: How to read an integer from the minibuffer, Jean Louis, 2021/11/13
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/11
- Re: How to read an integer from the minibuffer, Gregory Heytings, 2021/11/11
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/11
Re: How to read an integer from the minibuffer,
Marcin Borkowski <=
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Yuri Khan, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Yuri Khan, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Yuri Khan, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16
- Re: How to read an integer from the minibuffer, Emanuel Berg, 2021/11/16