[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to read an integer from the minibuffer
From: |
Emanuel Berg |
Subject: |
Re: How to read an integer from the minibuffer |
Date: |
Thu, 11 Nov 2021 07:27:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Marcin Borkowski wrote:
> 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).
Hm ... interesting
(require 'cl-lib)
(let ((n))
(cl-loop until (progn
(setq n (read-number "integer: " 1))
(integerp n) ))
n)
--
underground experts united
https://dataswamp.org/~incal
- How to read an integer from the minibuffer, Marcin Borkowski, 2021/11/10
- Re: How to read an integer from the minibuffer, Po Lu, 2021/11/11
- Re: How to read an integer from the minibuffer, Marcin Borkowski, 2021/11/11
- 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, 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 <=
Re: How to read an integer from the minibuffer, Gregory Heytings, 2021/11/11
Re: How to read an integer from the minibuffer, Gregory Heytings, 2021/11/11