From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#37883: 27.0.50; read-file-name: Scrambled INITIAL Date: Wed, 23 Oct 2019 15:20:45 +0200 Message-ID: <87h83zfviq.fsf@gmx.de> References: <87sgnj24t8.fsf@web.de> <87ftjjmy7t.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="52300"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Andreas Schwab , 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 15:22:52 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 1iNGbE-000DW5-R2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 15:22:52 +0200 Original-Received: from localhost ([::1]:35966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNGbD-0000TT-Gl for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2019 09:22:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45554) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNGaR-0000TF-BM for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 09:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNGaQ-0005m8-55 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 09:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNGaP-0005m1-UR for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 09:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNGaP-0005J7-QR for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2019 09:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2019 13:22:01 +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.157183686120300 (code B ref 37883); Wed, 23 Oct 2019 13:22:01 +0000 Original-Received: (at 37883) by debbugs.gnu.org; 23 Oct 2019 13:21:01 +0000 Original-Received: from localhost ([127.0.0.1]:32906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNGZR-0005HB-4W for submit@debbugs.gnu.org; Wed, 23 Oct 2019 09:21:01 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:49323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNGZP-0005Gv-2j for 37883@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 Original-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 In-Reply-To: <87ftjjmy7t.fsf@web.de> (Michael Heerdegen's message of "Wed, 23 Oct 2019 14:40:38 +0200") X-Provags-ID: V03:K1:tTKCseK3FiVYxIRYZcbSr9ahW4jnjEvo1S7zt7bCsSI2QsJfgCJ iSpHpP+yc9Y1OIxF7cTqrjrBYFECTQBKXfHZsMJbA/LBh8MI5zPk1s95hz4wYjx1b3y2Fk9 dY898h1XB9jnDlbOATTg3/0eBm7TyhpYkeQifT4WCFNM+ip9x5FGouJt6/+IpEKZ8rqgDCG vyGD9zckWP6gkhmjDEDMQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:WuLlhV/IGpA=:Nzw/CFdmmswy9k1YWcJGRF 7+TIU1hVEDvJG99F0xe46TUz2rOHORT/nZnWJqwrviYBBay6vo0xP8zEO8a4bSEDJsXus5F2v vSBRzRPNn0aT1XcQM8dQ8XydFoDHSKccD+JzIYOqQMkTPhEQ6Y7Oe2D/FRiuUf3KkV+fCkZwf Tw+vva6rLOPq9xL8k7n1lPswN7BxeJAJEVFuD6IKQVz1MyO/Fn3oyW/ri9pdVydGI7Wb206+8 1l34lARBK679EmbfqckY4ClQx+yCIXa5K260ipMno4vPC0cWG9JIPn5QLLQEfNS3ZzZvo0hdr IXsBdHrmqes72XTJnn1yDwESgZuxWbMHwlOOzbz0Pvp+ef9knMeZWvYRoFN5gmAYmnlH5pq3U 7Qe+4L8Q2NSfhFGhZmKnmG60rQkq0fo6jkg/XIbGQ/ClQbnKOV8n0oVR9pjzY5de/9Bix9fUJ P8ZUFo832JTGn5UdjyEkidhlSqnrhzpzJGtJO923J3jvEd31dPk4rsrn0qSnpP2lwRxnmKO73 Yg2Zd1Sj+dzQefIEf9ddVd3S5iJ/2NvEfpbiHpaTzUiDnxzKL6Bt91ZzvBoaUEoqTfNh9tHBU a4BbtbXSyQ/1jjd5kiL4OGhq4SJMGNHSTJELlJuFxwz2ra91GoFDF/bQQ/egAiL65MbBETOXf VrQLabdoMC/IbbvePqRApSXp/TTJQsZf1DTX1zfSyYSkMOEv5Vs74gcU510cR/Dikryc/7c38 TS6gFSkRNMU686i6IH5OUZqRpmkIAGIfF6n2kmyd0w55KQtv8vAYO+AN0qO6H3nuMyJS+xZc 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:170065 Archived-At: Michael Heerdegen writes: > 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". 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.