From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Whitfield Diffie Newsgroups: gmane.emacs.help Subject: Read-string with pointer at start of initial value Date: Fri, 26 Jan 2018 14:58:15 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517009521 18921 195.159.176.226 (26 Jan 2018 23:32:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Jan 2018 23:32:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 27 00:31:57 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efDTM-0004M9-JM for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 00:31:52 +0100 Original-Received: from localhost ([::1]:34709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efDVN-0001vK-BO for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2018 18:33:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efCxB-00036D-OM for help-gnu-emacs@gnu.org; Fri, 26 Jan 2018 17:58:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efCxB-0000Dq-3k for help-gnu-emacs@gnu.org; Fri, 26 Jan 2018 17:58:37 -0500 Original-Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]:41169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efCxA-0000DM-TW for help-gnu-emacs@gnu.org; Fri, 26 Jan 2018 17:58:37 -0500 Original-Received: by mail-io0-x231.google.com with SMTP id f4so2046798ioh.8 for ; Fri, 26 Jan 2018 14:58:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=pD1h2wmLALFNnyjGXyNLsOexLjO3m90Ixgkr5cUv18A=; b=KuZIzakN/EY6r8at0naqJxjjZEogu/hu4oO48HR4MulApPLuuVx9ne2dOccySZAYQ4 a/6L2baU3OcEfJ7EMqfEI9OLn/eL1+ZIRupkvHOFhbFdcnU9koccF+5fWwgO7NwTDfpv hkLMNO4EVsyaw8t57q2AHVUbI/91CzVeGhPYB2iHjgvb7PzvpSau4ou7xKgiiw3LHjbd nvlxr/F8QMmFvgAhZVh8aspEUwdOZQdG7wcBfEcXD7S5j35u/5pblBsPHkpyu9ZcINNf W2qjDxaC9iyBc/Nd6eLIMZAyITi13cnb/H5d85mVrfwDCY51ZE0IgVzFsR2DogFZYAjs eDsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=pD1h2wmLALFNnyjGXyNLsOexLjO3m90Ixgkr5cUv18A=; b=CU04rElww9xh/EUgmWelBG8A3ihxWZ8pN4Q0nhH9koN6clL0AI7amVUEebUwSTkfc7 /luPRL5i6pL5hUIiVPg9Eq46aYJRcjh69r0GYF+miMUi37tkUW4UWH/s9cNjz7WnyWqX lyMHN4Wlr5opMVnftvI4EpfrZtL2KEq5Ov0CBa9rHPVTjOR//mC0bhfjYXkA97MTPdi/ CqoZi/CGaBXMKoIkmrkOhFGNBromrcW1sCcqZXoZPHrTsTcc6dR40b0ML9/gEmTfN6v7 AJOFRNkUyRV1ec7jYUQodQKm3p+aljPpDmHT/FoErw0VBZuKlG/TOKAeeqp+DkRCI0Qs uR8A== X-Gm-Message-State: AKwxytf4+IFP1ibV8ctUEC1Ns2njhW6Ng9RlxJWazD8M0g1CNbmfFmGG R39RmwGpGdRYNfDGCmdtE7tuc+9OUBshCqwx8pBg1A== X-Google-Smtp-Source: AH8x226enAoehJHzUx2nLng/Vp7uiaWcTip7TLU+2kardr9dFKcs3gA4dfbQLAiuvNe+oWlAEbyj6+Yew+IYYCaZsfE= X-Received: by 10.107.169.78 with SMTP id s75mr18489280ioe.197.1517007515747; Fri, 26 Jan 2018 14:58:35 -0800 (PST) Original-Received: by 10.2.111.82 with HTTP; Fri, 26 Jan 2018 14:58:15 -0800 (PST) X-Google-Sender-Auth: aG2bZq1YF1PLh576Wpl9HTAgR0E X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::231 X-Mailman-Approved-At: Fri, 26 Jan 2018 18:33:14 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115853 Archived-At: 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. I am able to do something like this with read-file-name because (read-filename "PROMPT: " "~/" "DEFAULT-FILENAME" nil "INITIAL") puts the mark after "~/" and before the initial input but I have found no way of doing anything similar with read-string. Whit