Subject: Re: bug#55267: 29.0.50; Provide customization to save project-find-file arg to savehist

From: Pankaj Jangid <[email-masked]>
Date: Mon, 30 May 2022 11:38:40 +0530

Dmitry Gutov <[email-masked]> writes:

> On 12.05.2022 19:38, Juri Linkov wrote:
>> BTW, here is another improvement for project-find-file.
>> If there is no file name under point, it could propose
>> the current file name for editing in the minibuffer,
>> to find another file based on the current file
>> when their names are similar.
>
> Here as well: if you find this helpful, that sounds okay to me.
>
> I haven't ever felt a need for this particular behavior, but it
> shouldn't hurt either.

To be consistent with other subsystems of Emacs, we can do something
that Dired does.

1. Press ’R’ to rename a file.

2. Then press ’M-n’. It invokes (next-history-element) which fills
   current file in the minibuffer for editing.

the advantage of this above approach is that it offers user a
choice - continue using the same behaviour or press ’M-n’ to prefill
current file name.