[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

‘read-string’ over ‘read-from-minibuffer’

From: Felix Dietrich
Subject: ‘read-string’ over ‘read-from-minibuffer’
Date: Tue, 20 Jul 2021 14:05:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Stefan Monnier <> writes:

>>   (let*((read-result (read-from-minibuffer "Prompt: "))
> Please don't use `read-from-minibuffer` unless you're defining
> a `read-<foo>` function.
> Use `read-string` instead.

Could you elaborate?  I see that ‘read-string’ ensures that there is no
‘minibuffer-completion-table’ set, which is relevant for recursive
minibuffers, if I understand itʼs comment correctly.  Anything else one
should be wary about?

Felix Dietrich

reply via email to

[Prev in Thread] Current Thread [Next in Thread]