help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Read-string with pointer at start of initial value


From: Michael Heerdegen
Subject: Re: Read-string with pointer at start of initial value
Date: Sat, 27 Jan 2018 00:56:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Whitfield Diffie <address@hidden> writes:

> I want to call read-string with the pointer at the start of the
> initial value [...]

(read-from-minibuffer "String: " (cons "Test" 1))

`read-string' does also accept a cons as INITIAL-INPUT to specify the
cursor position, so the following also works:

(read-string "String: " (cons "Test" 1))

but the docstring discourages its use.


Michael.



reply via email to

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