From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Read-string with pointer at start of initial value
Date: Sat, 27 Jan 2018 01:20:11 +0100 [thread overview]
Message-ID: <86efmcgnk4.fsf@zoho.com> (raw)
In-Reply-To: mailman.8056.1517011017.27995.help-gnu-emacs@gnu.org
Michael Heerdegen wrote:
> (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.
In this case, I don't think there is any need
for it because finger-habits, especially
generic commands to move point etc., are
ultimately very fast.
But is this the reason why it is disencouraged
or is there another/other reasons?
As for the docstring, it says
This argument has been superseded by
DEFAULT-VALUE and should normally be nil in
new code. It behaves as INITIAL-CONTENTS in
`read-from-minibuffer' (which see).
What does "which see" mean?
GNU Emacs 24.4.1 (arm-unknown-linux-gnueabihf,
GTK+ Version 3.14.5) of 2015-03-10 on bm-wb-01,
modified by Debian
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2018-01-27 0:20 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
[not found] ` <mailman.8056.1517011017.27995.help-gnu-emacs@gnu.org>
2018-01-27 0:20 ` Emanuel Berg [this message]
[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=86efmcgnk4.fsf@zoho.com \
--to=moasen@zoho.com \
--cc=help-gnu-emacs@gnu.org \
/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).