From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL Date: Wed, 23 Oct 2019 11:40:30 +0200 Message-ID: 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="179604"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 37883@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 11:41:19 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 1iND8n-000kUy-BE for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 11:41:17 +0200 Original-Received: from localhost ([::1]:58742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iND8h-00023t-3m for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 05:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33429) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iND8a-00023V-2B for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 05:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iND8Y-00016D-UQ for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 05:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iND8Y-000167-RL for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 05:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iND8Y-0006Sy-7w for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 05:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 09: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.157182363824820 (code B ref 37883); Wed, 23 Oct 2019 09:41:02 +0000 Original-Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 09:40:38 +0000 Original-Received: from localhost ([127.0.0.1]:60889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iND8A-0006SG-6f for submit@debbugs.gnu.org; Wed, 23 Oct 2019 05:40:38 -0400 Original-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 ) id 1iND88-0006Rx-RL for 37883@debbugs.gnu.org; Wed, 23 Oct 2019 05:40:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-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) X-Yow: I'd like some JUNK FOOD... and then I want to be ALONE -- In-Reply-To: <87sgnj24t8.fsf@web.de> (Michael Heerdegen's message of "Wed, 23 Oct 2019 11:23:47 +0200") 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:170042 Archived-At: 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@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."