GNU bug report logs - #37883
27.0.50; read-file-name: Scrambled INITIAL

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Wed, 23 Oct 2019 09:24:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 25 Oct 2019 08:45:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 04:45:45 2019
Received: from localhost ([127.0.0.1]:37264 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNvE9-0008Sf-3D
	for submit <at> debbugs.gnu.org; Fri, 25 Oct 2019 04:45:45 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43073)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iNvE7-0008SR-8v
 for 37883 <at> debbugs.gnu.org; Fri, 25 Oct 2019 04:45:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34258)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iNvE1-0003Kk-4a; Fri, 25 Oct 2019 04:45:37 -0400
Received: from [176.228.60.248] (port=1484 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1iNvDu-0006Cy-Vj; Fri, 25 Oct 2019 04:45:34 -0400
Date: Fri, 25 Oct 2019 11:45:18 +0300
Message-Id: <83r231w6w1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-reply-to: <87d0enfmzs.fsf@HIDDEN> (message from Michael Albinus on Wed, 23
 Oct 2019 18:24:55 +0200)
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
 <87ftjjmy7t.fsf@HIDDEN> <87h83zfviq.fsf@HIDDEN>
 <87a79reco4.fsf@HIDDEN> <87d0enfmzs.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37883
Cc: michael_heerdegen@HIDDEN, schwab@HIDDEN, 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Date: Wed, 23 Oct 2019 18:24:55 +0200
> Cc: Andreas Schwab <schwab@HIDDEN>, 37883 <at> debbugs.gnu.org
> 
> >> The docstring of `read-file-name' says
> >>
> >> If DEFAULT-FILENAME is omitted or nil, then if INITIAL is non-nil, the
> >> default is DIR combined with INITIAL
> >
> > But I'm talking about the initial minibuffer contents, not the default.
> > Is it due to historic reasons that the initial contents resemble this
> > default?
> 
> It is not said explicitly, but INITIAL is expected to be a trailing
> string of DEFAULT-FILENAME, where the cursor stays in the minibuffer.
> 
> And yes, in your case (with a nil DIR and a nil DEFAUL-FILENAME), DIR is
> set to "~/", and DEFAUL-FILENAME is set to "~/.bash_history". Finally,
> (minibuffer-maybe-quote-filename (concat dir initial)) is called.
> (concat dir initial) expands to "~/~/.bash_history", and
> (minibuffer-maybe-quote-filename ...) adds the leading "/:".
> 
> You better call (read-file-name-default "File: " "~/" nil nil ".bash_history" nil)
> 
> If read-file-name-default does not satisfy your needs, you might write
> your own read-file-name-function, and bind it to
> read-file-name-function.

Would someone like to suggest a documentation change to clarify these
issues?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 16:25:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 12:25:09 2019
Received: from localhost ([127.0.0.1]:34884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNJRd-000420-4m
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 12:25:09 -0400
Received: from mout.gmx.net ([212.227.17.21]:46525)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1iNJRa-00041P-MO
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 12:25:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1571847897;
 bh=HEB3MUOkxKiNPI8w0HFZ3ijbmflcSAnKHhUBVJF9a2g=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=LPUmQ/yHLJHJBTm2lrQR8iVtb5k8iKVarp0yJPUUX9RrMZwN1Si3lZDUR/3K6INVV
 CHqw4tUUhso7Lthw1JEJthSk5qWZEedfR4tgW93DZ4AiuJwtW6Vbwhgb+wc6/26sPs
 RojKx8/KdY65FWn6zg47My0El8+bSLd3gDilSa9c=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from detlef.gmx.de ([212.86.45.31]) by mail.gmx.com (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MjjCF-1hiQvC0GUd-00lG9g; Wed, 23
 Oct 2019 18:24:57 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
 <87ftjjmy7t.fsf@HIDDEN> <87h83zfviq.fsf@HIDDEN>
 <87a79reco4.fsf@HIDDEN>
Date: Wed, 23 Oct 2019 18:24:55 +0200
In-Reply-To: <87a79reco4.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 23
 Oct 2019 16:53:15 +0200")
Message-ID: <87d0enfmzs.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:eJYprP0kodo9eLn/eDpuPNXq46VmcYh/ty2w15eAfPJU5zTh8UN
 QZfslkcMJOp3ni7sXe9FhMWoYLKJQc1I2HXTLcktGqEQBiWAcqZSDU3CmYcPyynMknBUdOB
 +MPGH+gVzvnqSwryvRCJrnauWIn8leE1VAy8fAvPIumiC+etWLrHQD5r752KcxugnlpJslJ
 s8s4nm8KIixgOnlGlzkHQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:ajzYAICT3Is=:/iHxzAG3s2CEDBwr1B4TnD
 1Rt4rD1yKnd6b0jYMXtQa1Me9dPivSf7S1FWy1vrX0oLpp4ce2fZuUmvFKo9wBWJ6ANzP24JN
 phZmU0xheaLb9IPIDFGFae46UI/TYvTL7YxvOOBnPJtaPWWpkaQ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plQGJqdR+/BYBzyXGjC3Z3RGxQKSGsthGYP8s7XQs/8GecJV9VKM1/13Kx8ZCZ0CgCQG0dl
 R6jbWDDVmhVz2vpuVJqOoPw2rL03tT8PzxzZXnSTg5rqKhmLjtlBkbrwuwdw=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37883
Cc: Andreas Schwab <schwab@HIDDEN>, 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

Hi Michael,

>> The docstring of `read-file-name' says
>>
>> If DEFAULT-FILENAME is omitted or nil, then if INITIAL is non-nil, the
>> default is DIR combined with INITIAL
>
> But I'm talking about the initial minibuffer contents, not the default.
> Is it due to historic reasons that the initial contents resemble this
> default?

It is not said explicitly, but INITIAL is expected to be a trailing
string of DEFAULT-FILENAME, where the cursor stays in the minibuffer.

And yes, in your case (with a nil DIR and a nil DEFAUL-FILENAME), DIR is
set to "~/", and DEFAUL-FILENAME is set to "~/.bash_history". Finally,
(minibuffer-maybe-quote-filename (concat dir initial)) is called.
(concat dir initial) expands to "~/~/.bash_history", and
(minibuffer-maybe-quote-filename ...) adds the leading "/:".

You better call (read-file-name-default "File: " "~/" nil nil ".bash_history" nil)

If read-file-name-default does not satisfy your needs, you might write
your own read-file-name-function, and bind it to
read-file-name-function.

> What you cite also doesn't explain why this combination happens in the
> way it does.  The doubled ~/ seems not useful, and the /: is...some
> Tramp thing?

It isn't Tramp, rather the contrary. "/:" marks quoted file names,
i.e. file names which shouldn't be given to a file name handler.

> Michael.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 15:16:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 11:16:45 2019
Received: from localhost ([127.0.0.1]:34805 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNINP-0002Ew-Dh
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 11:16:45 -0400
Received: from mout.web.de ([212.227.17.12]:38677)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNINM-0002EZ-In
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 11:16:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571843788;
 bh=SMKl2FPwhAKlUQI+TSDE0RS2egYbzCs4VZ04h+RXPMw=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=R3E4AL7W8sgnpvyZF4F1vaASTBS50ER/HK/XrYv+FZYqKkmyWL5SSi/AVa70xTGSA
 ktPPBUYJtKuDWjbcqVtsR8Zz5IEeUMmFDSgJ9hLPgTiOr/Pa0BKfeHgpLAF9PkOOvL
 rrrfMmHzVEdU1f1DV2lFLbIMSQypKQ8HG18jO88E=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb102
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MCqoJ-1iFHlX0kct-009h7z; Wed, 23
 Oct 2019 17:16:28 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
Date: Wed, 23 Oct 2019 17:16:36 +0200
In-Reply-To: <mvm36fjsstt.fsf@HIDDEN> (Andreas Schwab's message of "Wed, 23
 Oct 2019 11:40:30 +0200")
Message-ID: <87zhhrcx0r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:9WpExBtPa5cw1oN49dt/mLRhzHrAmqo2X5VUXzIL+uzn2iPzXkP
 UJQKJCdL2aaG1EBAy9etTb6rIaOUbgrGX+xOuZ1cLkyGmSdXPcQxjtEs09yPynQxyZyOvIz
 Ezzso+BSBlEQr5lm2/zrHb0mGhato2mC7D1D3YRGl9c0a/I//qKrAHSH1G9nOqssXrZkh6f
 qTQ/+mRS5FI1PA+kgk61w==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:46/C3KrZo70=:9pHZ4owtO50rB06EpbCDKZ
 j9pmn63MHLIQubW+tWzdyzvG2b9RSU92+yEhK7SIK9FfQQSw+O7lDsH2ZxCR4DCJ/XKIb6j26
 ejs2DhjezVFZqseF+FOaLo7mkiNR9bQwHzFLi0op8mT8XzLxlbLfet8qet0BcXA2XWlSYXzze
 IqjNoipSeuFRSjNiPKdRv16+DyYSzPUnJRL9R8LN5P9O+xASLfguyQDtGBfMEkQ564lvXQeD6
 Patx9JtvoGqkOtAXFNXAIKxS8bGsgfpI5HJ1ct0jEa+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-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37883
Cc: 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Andreas Schwab <schwab@HIDDEN> writes:

> (The manual also discourages the use of INITIAL.)

BTW, what the manual says: "*Please note:* we recommend using DEFAULT
rather than INITIAL in most cases." - maybe that could be a bit more
precise?  Which cases - what's problematic with using INITIAL in these
cases?  Why doesn't the docstring say that INITIAL is not recommended?
Should developers better use alternatives (I guess one could use
`minibuffer-setup-hook' to insert a default), or is any initial
minibuffer content considered "bad"?

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 14:53:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 10:53:20 2019
Received: from localhost ([127.0.0.1]:34791 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNI0m-0001fr-LY
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 10:53:20 -0400
Received: from mout.web.de ([217.72.192.78]:52219)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNI0k-0001fc-1U
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 10:53:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571842388;
 bh=P+qztNPQHtlSkJkVpGE9Lp7SvfVvY7+YsCBc6HpU8wQ=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=lYDy2JkkdPOYxpsIp/xDYgbX+knwarxKHsKjxDfLo99vY77N3QRXa4R875IjoTCMJ
 TrN0dyz5lEhCzgsG8VpQVbY1cTqdsSaRP8RmAeAyPqSga2wqWXRJ5TNcjPlIY6SKSt
 YFMzUTaYwZrjB3GPdKxoivIRZCPTSAQwiAiBMeF0=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb102
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MN4Kq-1iL69E03Oy-006jAl; Wed, 23
 Oct 2019 16:53:08 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
 <87ftjjmy7t.fsf@HIDDEN> <87h83zfviq.fsf@HIDDEN>
Date: Wed, 23 Oct 2019 16:53:15 +0200
In-Reply-To: <87h83zfviq.fsf@HIDDEN> (Michael Albinus's message of "Wed, 23
 Oct 2019 15:20:45 +0200")
Message-ID: <87a79reco4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:QMDGV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GFhd1Uwup6BQRrp12xjapI+vIiHlKO8e5wjVud4teraKMZfeEkDwV
 DwUybCayAxS4u689rqptAeuCTc8+MEvyBq24cHQ3TftouGO2q7Pbh2ejx8+M9oWLkKYEUlm+r
 xPr4uOUEgHzMF8bNkyZ5bBsMPtIAebDsCU27xtjPUi+d4bcQ9q+25WiCNnykO3kOkWQXKilEb
 qgfnIcoLI1vXAkeK1KJgHTMVAKrJvWXOeaWcQAPqcB0AZThoQBlJ9PvriA0Qo8HFVsnA82DTX
 pMkBWkdypK1vjsBataksMiT3X2AOgocIGwKLtVaqAxUysOkbu3DspSTsvMi2bPYu8uKlbON7L
 P5HSKknwX5wsjzYAMqIVsCMaM9cYNGk1s6d5P0jf6Cm/Iw2F7Kkch7wKnFLIUx7bWmteYMntS
 3iE0pmtOlx0toftjguKhrj4tXXtnPBiVxgw5JoU7EoUKEGOSfkXqAGmOYk61F2N8PPbDKRocr
 vlElZ8XhnHI1Ff2qI1hj/aMnYDJwbByeDM1i32b02makhIXArc7gZNY+Ndpw=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37883
Cc: Andreas Schwab <schwab@HIDDEN>, 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Albinus <michael.albinus@HIDDEN> writes:

> The docstring of `read-file-name' says
>
> If DEFAULT-FILENAME is omitted or nil, then if INITIAL is non-nil, the
> default is DIR combined with INITIAL

But I'm talking about the initial minibuffer contents, not the default.
Is it due to historic reasons that the initial contents resemble this
default?

What you cite also doesn't explain why this combination happens in the
way it does.  The doubled ~/ seems not useful, and the /: is...some
Tramp thing?

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 13:21:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 09:21:01 2019
Received: from localhost ([127.0.0.1]:32906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNGZR-0005HB-4W
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 09:21:01 -0400
Received: from mout.gmx.net ([212.227.17.20]:49323)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1iNGZP-0005Gv-2j
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 09:21:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1571836847;
 bh=YvXbWDnfQgnC4UGYbTt10ljpdNvcva2wJuYuCLk7A4c=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=Gc6ikiDhHs9nzLNsy+vPdDQf4hAFv83QtoSYVeK1MGGJiCVlkjxV9S0xXN7QU5mcl
 bwBMwUZlMjngO7YmRCH2PyMcGRo4/fShVZkidoWxdxxTsydz2M2XGJc+X5Ebpz3IuD
 ttb5jBHlShLPn8jeLZbJ/zbhgBhUCYAASMBPhhSQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from detlef.gmx.de ([212.86.45.31]) by mail.gmx.com (mrgmx105
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6UZl-1iLKcw2VFB-006wMm; Wed, 23
 Oct 2019 15:20:47 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
 <87ftjjmy7t.fsf@HIDDEN>
Date: Wed, 23 Oct 2019 15:20:45 +0200
In-Reply-To: <87ftjjmy7t.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 23
 Oct 2019 14:40:38 +0200")
Message-ID: <87h83zfviq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:tTKCseK3FiVYxIRYZcbSr9ahW4jnjEvo1S7zt7bCsSI2QsJfgCJ
 iSpHpP+yc9Y1OIxF7cTqrjrBYFECTQBKXfHZsMJbA/LBh8MI5zPk1s95hz4wYjx1b3y2Fk9
 dY898h1XB9jnDlbOATTg3/0eBm7TyhpYkeQifT4WCFNM+ip9x5FGouJt6/+IpEKZ8rqgDCG
 vyGD9zckWP6gkhmjDEDMQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:WuLlhV/IGpA=:Nzw/CFdmmswy9k1YWcJGRF
 7+TIU1hVEDvJG99F0xe46TUz2rOHORT/nZnWJqwrviYBBay6vo0xP8zEO8a4bSEDJsXus5F2v
 vSBRzRPNn0aT1XcQM8dQ8XydFoDHSKccD+JzIYOqQMkTPhEQ6Y7Oe2D/FRiuUf3KkV+fCkZwf
 Tw+vva6rLOPq9xL8k7n1lPswN7BxeJAJEVFuD6IKQVz1MyO/Fn3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q
 e6bW1ZH5+LreibgtYIpvt2sJQyeHwsPPjyeFTMLBhmVd3Gw00O2U8fmZz+Iw=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37883
Cc: Andreas Schwab <schwab@HIDDEN>, 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Andreas Schwab <schwab@HIDDEN> writes:
>
>> > in emacs -Q (with default-directory -> ~/)
>> >
>> >   (read-file-name-default "File: " nil nil nil "~/.bash_history" nil)
>> >
>> > prompts with default minibuffer contents "/:~/~/.bash_history".  No part
>> > of that is shadowed (to indicate which part is meaningful).  Without
>> > fully understanding how the initial contents are calculated, it doesn't
>> > seem very useful with the doubled ~/.  Why can't INITIAL be used
>> > literally?
>>
>> I think INITIAL is supposed to be a file name component, not a full file
>> name.  (The manual also discourages the use of INITIAL.)
>
> I have no clue.  The manual describes INITIAL as "initial file name".

The docstring of `read-file-name' says

--8<---------------cut here---------------start------------->8---
If DEFAULT-FILENAME is omitted or nil, then if INITIAL is non-nil, the
default is DIR combined with INITIAL
--8<---------------cut here---------------end--------------->8---

> Regards,
>
> Michael.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 12:40:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 08:40:44 2019
Received: from localhost ([127.0.0.1]:32869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNFwR-0004IO-Qh
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 08:40:44 -0400
Received: from mout.web.de ([217.72.192.78]:57579)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNFwO-0004I9-O0
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 08:40:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571834431;
 bh=Q09QsfQQofnMzWpmuDAkl6lIZOF6LRooOK7C7bpD8VM=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=piribhWG4xUYEL7YaV1gC1DOc9UV6ZVAVc2nYjOrSynyemBfjqOTJyxAFLRkeJ7Jv
 Kjysoa9W0h0325XubQg9PTl65KROw4G2//lqEQ86/mAU6MksypoZETT0Xsu1XW8Zdt
 Q7ufYYoSR0rg2n2uYN0FmsAVrWgEVD/pLXop/nhs=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb101
 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lfj2k-1hdmtQ3Vgg-00pJ16; Wed, 23
 Oct 2019 14:40:30 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN> <mvm36fjsstt.fsf@HIDDEN>
Date: Wed, 23 Oct 2019 14:40:38 +0200
In-Reply-To: <mvm36fjsstt.fsf@HIDDEN> (Andreas Schwab's message of "Wed, 23
 Oct 2019 11:40:30 +0200")
Message-ID: <87ftjjmy7t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:gO7rojxC3MLwLMuAxZcv1VQyvImpBosrFMHA9nn3tj2kmkt3Hel
 oKUzy0WY3tphS3FlfBBb4r2jGnbXCd1K1KOoxSjwzDlaOiDrTQ24xZ21LdSU/yWJb1T00Oz
 NEwWyWRRgBewtN2y/lb2JmAOYadARRQlLmAm9RNAQcG5T5NIOfT//FrUPOOPIj/U8PPZA4D
 8eiU7vI2V8KLyHZQR8vtw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:Cjq1Q+lilpg=:JRjWJT4zMKx6D+HQF7QB3I
 3BQzkSDjbhEnkAkZse8VYDMkeexBS3Qc3FaiiYgLd+OEU3XERoHVGDWVqJ3GY0BMQ8SuNi5Bt
 8Cyk6r1kfpd9GlfCBGbts1wN2d+taiWhqCkhLByLI1TuxMkrQEPw6AJyzALGoDg/rLjIw8Npc
 fdgBX/IPl2mOix0BFLRyamDf3Jzgi1b0qnLUaxhyIjh8/KAcli81RVT8Ti61uZn3cqpX5y0uE
 5FT/TevrxDYKTLQtRsM/i8Hfc3oI+vGIi5ty8RanzV1V5SxOy6hlDpDsEikVh6CTHiYs7W8il
 Xca/uL6PKJ5mV8u158jvrOZQFA26Yz3mHHMUIX9I9YGhghRRIBYvNlJgCr8TBHmgB2J7dhQzi
 DhH374lqV3I2caJFE4L2YNI5sYHLRy4Xl+pxKjv2n+1TQK1UAmA1gMXRUwB2SH0C/4/jql/zr
 Vj/MdySn7UsvpaOfwrdNtrXy0asKrIPGfg8u/JCrXrQuk0gv6JUEk87B77Au1fHLiI8ARAANn
 0nQaGxvF7zksQmTYIkAGH7BajYQXJ3G/+LIKRHyXfI9X44pwbeaYXj881JLTTB9u4cBkWgMdq
 7STO4y70xm09HlUy5yuWW+QDI9/ZSkfu80tZ+odvXDpNYO0aho4xhc+M3i98y3+zMP7BURKsF
 EPnv1Lcdd+fStytWQNSKvuyzqeUcfnrM9oP3tdJxqsUE6o+ZcSY8mweDP3S4RM9DFOI5pBDr8
 vK59r8XZ3Eopo+CogOS50aQlEfRDaxohq4r4jU0J7l1cwX48j2dYwaCDtNeRlYS9IG422YA3j
 U5ISnTpZFycIUmt2Lzmak7Y2/bM3rIlpQy5xKJmfROtIC/okOipgJm3ksVj9gZmMRNBPplLmZ
 51IPZ58LUcDI3VGm5pI1DdGPVGrBXXXDvG4uY7JibyfAZWbwtjored5bgWzcKwgUjSi4neXgC
 pLzA5KQQ1kpb3WB0tTxAXjUYKgMhjbNdYrhZyj+YLVzjcpzcCAjYDkT/kaL27mTxXFOT0//ct
 586E7zpIAkxp4PmMX0jXjf5Gyhb40xu2loh/5V6jlJY3Zn7Axy3psRXJ81j4kRE2gsGdP+wEh
 WAl9rid4E/m5Dn7gcV3Slrvsu9yjECdEmIruV1aTqS02gQUpG7Ivhl5i0rhDImxiGCeCHv21O
 5OwJ7f6199/ONZ/ZiZGbv+A/TbDHAo9rfRW7YCXRWdG7VuWy+IQzH2msM8LzEZhLLkLTVQEf4
 VdEBKnPQdGeNX0qIa73EOWonaQ+1fImoL9n4GvRT10MyGP92E8ikNbFylR5k=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37883
Cc: 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Andreas Schwab <schwab@HIDDEN> writes:

> > in emacs -Q (with default-directory -> ~/)
> >
> >   (read-file-name-default "File: " nil nil nil "~/.bash_history" nil)
> >
> > prompts with default minibuffer contents "/:~/~/.bash_history".  No part
> > of that is shadowed (to indicate which part is meaningful).  Without
> > fully understanding how the initial contents are calculated, it doesn't
> > seem very useful with the doubled ~/.  Why can't INITIAL be used
> > literally?
>
> I think INITIAL is supposed to be a file name component, not a full file
> name.  (The manual also discourages the use of INITIAL.)

I have no clue.  The manual describes INITIAL as "initial file name".

I think the INITIAL arg can be casually useful.  In my case I'm setting
the value of a (file name valued) widget with the current value as
INITIAL value which feels quite natural (or, would feel, if it worked as
I expect).


Regards,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at 37883 <at> debbugs.gnu.org:


Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 09:40:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 05:40:38 2019
Received: from localhost ([127.0.0.1]:60889 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iND8A-0006SG-6f
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 05:40:38 -0400
Received: from mx2.suse.de ([195.135.220.15]:50762 helo=mx1.suse.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <schwab@HIDDEN>) id 1iND88-0006Rx-RL
 for 37883 <at> debbugs.gnu.org; Wed, 23 Oct 2019 05:40:37 -0400
X-Virus-Scanned: by amavisd-new at test-mx.suse.de
Received: from relay2.suse.de (unknown [195.135.220.254])
 by mx1.suse.de (Postfix) with ESMTP id 00467B012;
 Wed, 23 Oct 2019 09:40:30 +0000 (UTC)
From: Andreas Schwab <schwab@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL
References: <87sgnj24t8.fsf@HIDDEN>
X-Yow: I'd like some JUNK FOOD...  and then I want to be ALONE --
Date: Wed, 23 Oct 2019 11:40:30 +0200
In-Reply-To: <87sgnj24t8.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 23
 Oct 2019 11:23:47 +0200")
Message-ID: <mvm36fjsstt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37883
Cc: 37883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On Okt 23 2019, Michael Heerdegen wrote:

> in emacs -Q (with default-directory -> ~/)
>
>   (read-file-name-default "File: " nil nil nil "~/.bash_history" nil)
>
> prompts with default minibuffer contents "/:~/~/.bash_history".  No part
> of that is shadowed (to indicate which part is meaningful).  Without
> fully understanding how the initial contents are calculated, it doesn't
> seem very useful with the doubled ~/.  Why can't INITIAL be used
> literally?

I think INITIAL is supposed to be a file name component, not a full file
name.  (The manual also discourages the use of INITIAL.)

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@HIDDEN
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2019 09:23:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 23 05:23:56 2019
Received: from localhost ([127.0.0.1]:60868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNCs0-00040C-Bb
	for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 05:23:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:41632)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNCrw-000401-1T
 for submit <at> debbugs.gnu.org; Wed, 23 Oct 2019 05:23:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55972)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNCrt-0002pl-LB
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2019 05:23:51 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1iNCrr-0001bW-GB
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2019 05:23:49 -0400
Received: from mout.web.de ([212.227.15.14]:45915)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1iNCrp-0001ZH-DZ
 for bug-gnu-emacs@HIDDEN; Wed, 23 Oct 2019 05:23:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1571822620;
 bh=QXg6/h92saUyCaZxnKtdcHnA78xHrSuzdmCHjSdiWBw=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=qkakJ35Q4pNFf01cukF2anbdHWukGl+kRovIzO2p9WPzIapzY+7KRZhZ9jZrXHXBi
 xIOxgkcdaOMuimv6vBB+AcwYZH0sPW0uVQ34G/GpnQZizC1akhqhGSuCedspiSkSnv
 s0FgHorn7Nf6rkoSSEsdUZZDCS7Ti8W9jeAGZAxQ=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb003
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Mf0qf-1icvOX1ii9-00OaGP for
 <bug-gnu-emacs@HIDDEN>; Wed, 23 Oct 2019 11:23:40 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; read-file-name: Scrambled INITIAL
Date: Wed, 23 Oct 2019 11:23:47 +0200
Message-ID: <87sgnj24t8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:zsIBosK+ie2xdrhDcBcejF76LKEzz0GsSmzarojcQJAYxSxRxRx
 5nC7+pv88ACFMIjyy/a8i//0aroR01DBT3keisLvp+SxUAF/9uHt1Q2zlXow3fcOA/3TbC0
 PLWIQjT1C4U79MaDT9cQEExgYgqoXumXbNHznQLImH5h88bxzQ1PibwuSTwxel8AOSLQlL1
 NINY76W6Ays0fZb4MdSiA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:KZBg6JVKG18=:umeMLcUMkCReLYBr00aWPq
 WWi68LTwpKgh+GY3G+Xr7Rpr5LG9UI0hCAYs3yh1JD3tRcJHiT08JEoLA/r603A7a+GNm+DnM
 XKOwDopmF/StxJnT05oUrvV2b+0QQHMOkvjj/9JH7LdW/DWhqdpMmWl3nW/KAbjjgGlrOGe4S
 KKk1ZIqxVG/nSv8tb1qNJ0IUMrv81s86P2BJQxgpuJaTAKkqAIG3pYeVe42K8x4YXxQyju93G
 pBt8A/voGsae9GHsWmfUUSQ6fkcc9vTECpT3jVZKzN72/nmPn4uEiIaY3HVDJMYKjsBVL6E0P
 bEaWpEhxKe2BYKAUvTnVxx/nDhG9E4wZrei9tWvcoJBN5FO1VDwZQQcYSVvC6rhQ7pPn2zZD4
 V99uQX7U3TTVV+nhr+kk/VwuOhK/sH+wLhVXQ1sx8mQneyOtMmymqofo+lue0Pou7Npr2dtCD
 2b37cfsSy2bCuNf52m2eunWhA3qN7L5f9lrUv8QyP5vVo7gw3hHdnghSSVZiGODYT2AGZwcSq
 ZaiQZxgsTZz8K2QPuQClBXr4edS4EVspR/irYhkrBSRrXvdbAi8pQdYDScnY5aHr8v6FKHeUl
 PSVESPw1I2gf9h0Lk+07bc8hY5kHHhBasLOzq/doJzH204D7xupIy2aTca4iigZFeAP3MrsRL
 fGeyAxCQuw1iQ384QjO6hYpqWCLjnOU5N92wy0PUO1yneaYTUsHt75K3QB0FhYl5mdaD5krnB
 U94aJUkjzeKDEN2I1bBJ7TKg0hbul9ISRAvHPt8KhjPL+TtScYre4e/BlkloJVf+nPe28aCMI
 oVdF7apddgx7uUTm4EamC58TzeexAxmfSTi1xeDmuchuY5JJ8SkC3SM00qvBKbKNl9AX8A1X/
 ITJcVBWAnG2u6WckfKO/uPvrGr8IpJqWTwiklR/etEmuNXuSqeYCZSS5iu+ZwT3M5R6Jra+IV
 CmsIqORSH08OHvhD2eKKqhO/enoYOd/iPVhtg2me40SPWBL6558feiE/DZskTVTuAf1mDDBLu
 CVvBMBdLUcUT+eA1z6r3XlJlFx4em5fQ74HtmbIZY5ifLnZBo9od3jYg3O/HOj5h4zrVxdWyU
 EWX4+tJSip4pqtJs3H37MPHaCK+ihrT15P5RcSryyqUEmXyYAXemSGMEoS08a7nPFwCgvY3+W
 MUEOEfHRxFSpmP1+OqZy7zwto2bMdZjtLCntBpSDSiY48AtbuYvQedLVMny1hp9vH2iyiWwwC
 UOBQ3s4X5cRb3dVTQSef0sFcdrJoumY7VEcfAcpGJ9h5j5EG77dEnHN0dkpM=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 212.227.15.14
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


Hello,

in emacs -Q (with default-directory -> ~/)

  (read-file-name-default "File: " nil nil nil "~/.bash_history" nil)

prompts with default minibuffer contents "/:~/~/.bash_history".  No part
of that is shadowed (to indicate which part is meaningful).  Without
fully understanding how the initial contents are calculated, it doesn't
seem very useful with the doubled ~/.  Why can't INITIAL be used
literally?

TIA,

Michael.


In GNU Emacs 27.0.50 (build 27, x86_64-pc-linux-gnu, GTK+ Version 3.24.12)
 of 2019-10-23 built on drachen
Repository revision: 39ba44f18445c7759de5ac91ce25e53123c2abeb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux bullseye/sid





Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37883; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.