From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#28513: 25.1; ido insists on guessing the wrong directory Date: Thu, 17 Dec 2020 13:54:58 +0200 Message-ID: References: <3526ABC6-2389-492A-83D7-A26195A6FC37@gmail.com> <875z575iog.fsf@gnus.org> <88f8e8d4-581b-85f8-92e6-8607d533cd77@yandex.ru> <87o8ix4zq6.fsf@gnus.org> <871rfs1gqt.fsf@gnus.org> <875z531sfx.fsf@gnus.org> <87h7okllai.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: Guillaume Salagnac , 28513@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 12:56:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kprtB-0006fQ-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 12:56:09 +0100 Original-Received: from localhost ([::1]:38226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kprtA-0006F1-I0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 06:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kprt4-0006Eh-2i for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kprt3-0004fn-Rh for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:56:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kprt3-00069Z-P7 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:56:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 11:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 28513-submit@debbugs.gnu.org id=B28513.160820611023593 (code B ref 28513); Thu, 17 Dec 2020 11:56:01 +0000 Original-Received: (at 28513) by debbugs.gnu.org; 17 Dec 2020 11:55:10 +0000 Original-Received: from localhost ([127.0.0.1]:34923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprsD-00068S-RS for submit@debbugs.gnu.org; Thu, 17 Dec 2020 06:55:10 -0500 Original-Received: from mail-ej1-f46.google.com ([209.85.218.46]:37600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprsC-00068C-5z for 28513@debbugs.gnu.org; Thu, 17 Dec 2020 06:55:09 -0500 Original-Received: by mail-ej1-f46.google.com with SMTP id ga15so37436792ejb.4 for <28513@debbugs.gnu.org>; Thu, 17 Dec 2020 03:55:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XxaE37A/Kqr9avyDN713jru9YfUWnpJGFRXxb7dLj+0=; b=APulUoQ/3IcVbd9wXqBDv4akZFuqvHwBzS3SK1n2DZXp/UkoyxLcC0tIPFJ6cstl2E mRYUfSg74MFSrtTRgVsLMWKpIhlaB0g21Zbf7ozYzLduYX0dQiCSp1srpSoGnoAeBlBC COi55/1yoCfrm37RajLn4Dlu1CbbVzfLjba1mfsQ2ZOu2WnLIjZPA87aLmDfYGn6XjoW cBKQa0AwtQ7Pgd8V6Wam0sRGU5vq3LcjbRzmg01X6Ov+EKhlL/9E8XttYPRiVv+LgDgZ Hwn9umCVVn0hKlYLFi+iVwnGaQY5BO5uR0TuKP5aAFYMbWXdsYXaj41+4bGalhVAWGzJ E7uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XxaE37A/Kqr9avyDN713jru9YfUWnpJGFRXxb7dLj+0=; b=V+5nHAwPTTcQL6UbwHTGv54050eSAiGZ9kXAICizMwW+4utwlV1bYzReUJwsAomAgi q8thcpW2dS968cIpuW27lqkcqVp8IsYI1RzEPl/UNyebU0BMTq/csYgaG5labDVY9Em8 g4xP1Z8Clh72elPwCvi8dLQOq0S4jYZuPh3glJVZcI/Q2f4Hzahdfj/IPy6WwUA0hrgL gNxyaDKezO+41MIl7rT+Qq6toubKIgPUF54nuymFJ6MQeBWvmHRCtnFEB+6N3N/5RD6O FDa18dkctql0eFtMw/E8dWSXb1bQphjzW0++lucmpBs7q7/wdgA6+6qNjgF2jgZqwVgi 0jgw== X-Gm-Message-State: AOAM532BZjt5ZakpNA9JNf3xoQY6FwtUqXuwb6F5l5jDddfzatOJKqyH VA9im1Rxmkw2kpdBerr7Wo4q1LGGR8I2CQ== X-Google-Smtp-Source: ABdhPJw5JJHeD+vwm9k8oTm8O2BXC61mClSFvxsKx6KO6f0LPjkJ0VIMv6bPRQlCBY7pjmdc2UNj/Q== X-Received: by 2002:a17:906:a106:: with SMTP id t6mr35275242ejy.63.1608206101691; Thu, 17 Dec 2020 03:55:01 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u23sm3586516ejy.87.2020.12.17.03.54.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Dec 2020 03:55:00 -0800 (PST) In-Reply-To: <87h7okllai.fsf@gnus.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196249 Archived-At: On 17.12.2020 13:33, Lars Ingebrigtsen wrote: > I've read the doc string again -- I didn't think the current behaviour > was documented, but it is: > > --- > If DEFAULT-FILENAME is omitted or > nil, then if INITIAL is non-nil, the default is DIR combined with > INITIAL; otherwise, if the current buffer is visiting a file, > that file serves as the default; otherwise, the default is simply > the string inserted into the minibuffer. > --- That's the doc for read-file-name, so another option would be to pass an explicit third argument from write-file to read-file-name. > So it's documented that buffer-file-name is the default value, no matter > what default-directory is. > > I guess the fix here has to be in ido itself, and it'll have to > special-case write-file. > > [time passes] > > OK, now done in Emacs 28, and the test case now works better, and there > probably shouldn't be a lot of regressions here... But this works too. Thanks!