[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70996: project-find-file defaults
From: |
Juri Linkov |
Subject: |
bug#70996: project-find-file defaults |
Date: |
Sun, 09 Jun 2024 19:51:17 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> But the problem is that in this case it drops the current file name
>> as the default value that is also useful in many cases.
>> Fortunately, the minibuffer supports a list of default values,
>> like in the following patch:
>
> This seems like a good idea, except it reverses the priority: previously,
> if file-at-point was present, it would be the default, not the current file
> name.
I mentioned in the log message that this change was intentional.
> So how about this?
The reason of this change to make the first item of the M-n list
more deterministic:
1. when there is no thing-at-point, then the first item will be
buffer-file-name;
2. and also when there is a thing-at-point, the first item
will remain buffer-file-name.
Otherwise, it was too unpredictable: after typing 'M-n RET'
to use buffer-file-name, it often did a wrong thing
when point happened to stay in a thing-at-point.
- bug#70996: project-find-file defaults, Dmitry Gutov, 2024/06/07
- bug#70996: project-find-file defaults,
Juri Linkov <=
- bug#70996: project-find-file defaults, Dmitry Gutov, 2024/06/11
- bug#70996: project-find-file defaults, Spencer Baugh, 2024/06/11
- bug#70996: project-find-file defaults, Dmitry Gutov, 2024/06/12
- bug#70996: project-find-file defaults, Dmitry Gutov, 2024/06/12
- bug#70996: project-find-file defaults, Juri Linkov, 2024/06/14
- bug#70996: project-find-file defaults, Dmitry Gutov, 2024/06/14