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 01:20:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

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


reply via email to

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