From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#28513: 25.1; ido insists on guessing the wrong directory Date: Thu, 17 Dec 2020 12:33:09 +0100 Message-ID: <87h7okllai.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Guillaume Salagnac , 28513@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 17 12:37:37 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 1kprbF-0005wX-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 12:37:37 +0100 Original-Received: from localhost ([::1]:58070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kprbE-00079a-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Dec 2020 06:37:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kprXn-0003gK-Ey for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51565) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kprXm-0005y1-39 for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kprXl-0003V8-Vj for bug-gnu-emacs@gnu.org; Thu, 17 Dec 2020 06:34:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Dec 2020 11:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28513 X-GNU-PR-Package: emacs Original-Received: via spool by 28513-submit@debbugs.gnu.org id=B28513.160820480113392 (code B ref 28513); Thu, 17 Dec 2020 11:34:01 +0000 Original-Received: (at 28513) by debbugs.gnu.org; 17 Dec 2020 11:33:21 +0000 Original-Received: from localhost ([127.0.0.1]:34875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprX7-0003Tw-8O for submit@debbugs.gnu.org; Thu, 17 Dec 2020 06:33:21 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:50766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprX5-0003Te-W4 for 28513@debbugs.gnu.org; Thu, 17 Dec 2020 06:33:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KGtT/ukb3f+uW/dMXIQgontN1GCG12BjIG3rZT9eYMo=; b=eXbvcgfvTowd09uSNfF+rVWjYV /LW65f4gqEq2eMY5dZE3V2EwFGUatzXYB0TXabfCXjDEZcFvBZ1A1dJ8fmxQUS8ZPH5QwnVyPjaJm By45CZVgzVlIvlhk0CWUhnuboKZAAtfO1+x1ncvQlNZOTZvDpSe/bPJCKO/9wseRVBdQ=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kprWx-0007E2-5P; Thu, 17 Dec 2020 12:33:13 +0100 X-Now-Playing: Themselves's _CrownsDown_: "daxstrong" In-Reply-To: <875z531sfx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 15 Dec 2020 07:42:10 +0100") 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:196246 Archived-At: 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. --- 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... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no