From: Dmitry Gutov <dgutov@yandex.ru>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Guillaume Salagnac <guillaume.salagnac@gmail.com>, 28513@debbugs.gnu.org
Subject: bug#28513: 25.1; ido insists on guessing the wrong directory
Date: Thu, 17 Dec 2020 13:54:58 +0200 [thread overview]
Message-ID: <f2a6668a-25c7-ab34-3173-d1c027b922c7@yandex.ru> (raw)
In-Reply-To: <87h7okllai.fsf@gnus.org>
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!
next prev parent reply other threads:[~2020-12-17 11:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-19 15:03 bug#28513: 25.1; ido insists on guessing the wrong directory Guillaume Salagnac
2020-12-12 12:10 ` Lars Ingebrigtsen
2020-12-13 1:11 ` Dmitry Gutov
2020-12-13 13:12 ` Lars Ingebrigtsen
2020-12-14 2:24 ` Dmitry Gutov
2020-12-14 16:42 ` Lars Ingebrigtsen
2020-12-15 2:23 ` Dmitry Gutov
2020-12-15 6:42 ` Lars Ingebrigtsen
2020-12-17 11:33 ` Lars Ingebrigtsen
2020-12-17 11:54 ` Dmitry Gutov [this message]
2021-01-01 21:51 ` bug#28513: Ryan C. Thompson
2021-01-10 23:07 ` bug#19412: bug#28513 Ryan C. Thompson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2a6668a-25c7-ab34-3173-d1c027b922c7@yandex.ru \
--to=dgutov@yandex.ru \
--cc=28513@debbugs.gnu.org \
--cc=guillaume.salagnac@gmail.com \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).