unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Whitfield Diffie <whitfield.diffie@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Read-string with pointer at start of initial value
Date: Sat, 27 Jan 2018 00:56:45 +0100	[thread overview]
Message-ID: <87efmcw4w2.fsf@web.de> (raw)
In-Reply-To: <CAF+O-CV+BURRYHEOaW9758qXyEe9Rru=cdaHpOJ6aDtbHErSEg@mail.gmail.com> (Whitfield Diffie's message of "Fri, 26 Jan 2018 14:58:15 -0800")

Whitfield Diffie <whitfield.diffie@gmail.com> 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	other threads:[~2018-01-26 23:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 22:58 Read-string with pointer at start of initial value Whitfield Diffie
2018-01-26 23:56 ` Michael Heerdegen [this message]
     [not found] ` <mailman.8056.1517011017.27995.help-gnu-emacs@gnu.org>
2018-01-27  0:20   ` Emanuel Berg
     [not found] <mailman.8055.1517009596.27995.help-gnu-emacs@gnu.org>
2018-01-26 23:43 ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efmcw4w2.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=whitfield.diffie@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).