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: Emanuel Berg
Subject: Re: Read-string with pointer at start of initial value
Date: Sat, 27 Jan 2018 00:43:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Whitfield Diffie wrote:

> I want to call read-string with the pointer
> at the start of the initial value so that
> I can delete it and type something else if it
> is not right.

Try

    (read-string "enter a string: " "suggestion")

Here, you can hit M-DEL for `backward-kill-word'
to delete "suggestion" just as fast as you
would if point was at the first letter (that'd
instead be M-d for `kill-word').

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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