From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL Date: Wed, 23 Oct 2019 14:40:38 +0200 Message-ID: <87ftjjmy7t.fsf@web.de> References: <87sgnj24t8.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="148328"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 37883@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 14:43:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNFyl-000cQu-Rq for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 14:43:08 +0200 Original-Received: from localhost ([::1]:34990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNFyk-0006rJ-FY for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 08:43:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36643) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNFwo-0005tF-8r for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 08:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNFwm-0001HV-Sh for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 08:41:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNFwk-0001D7-DX for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 08:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNFwk-0004J4-8i for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 08:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37883 X-GNU-PR-Package: emacs Original-Received: via spool by 37883-submit@debbugs.gnu.org id=B37883.157183444416520 (code B ref 37883); Wed, 23 Oct 2019 12:41:02 +0000 Original-Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 12:40:44 +0000 Original-Received: from localhost ([127.0.0.1]:32869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNFwR-0004IO-Qh for submit@debbugs.gnu.org; Wed, 23 Oct 2019 08:40:44 -0400 Original-Received: from mout.web.de ([217.72.192.78]:57579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNFwO-0004I9-O0 for 37883@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 Original-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 In-Reply-To: (Andreas Schwab's message of "Wed, 23 Oct 2019 11:40:30 +0200") X-Provags-ID: V03:K1:gO7rojxC3MLwLMuAxZcv1VQyvImpBosrFMHA9nn3tj2kmkt3Hel oKUzy0WY3tphS3FlfBBb4r2jGnbXCd1K1KOoxSjwzDlaOiDrTQ24xZ21LdSU/yWJb1T00Oz NEwWyWRRgBewtN2y/lb2JmAOYadARRQlLmAm9RNAQcG5T5NIOfT//FrUPOOPIj/U8PPZA4D 8eiU7vI2V8KLyHZQR8vtw== 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+CogOS50aQlEfRDaxohq4r4jU0J7l1cwX48j2dYwaCDtNeRlYS9IG422YA3 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170062 Archived-At: Andreas Schwab 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.