Subject: bug#61861: 30.0.50; [PATCH] Catch project.el to projectile's dwim behaviors

From: Stefan Kangas <[email-masked]>
Date: Tue, 11 Feb 2025 20:39:27 -0800

Dmitry Gutov <[email-masked]> writes:

> On 28/02/2023 03:22, dick wrote:
>> * lisp/progmodes/project.el (project-get-project, project-current):
>> Rationalize interfaces.
>> (project--files-in-directory): Whitespace.
>> (project-try-vc): Avoid swallowing errors.
>> (project-files): De-obfuscate.
>> (project--vc-list-files): Whitespace.
>> (project-find-regexp, project-or-external-find-regexp, project-find-file,
>> project-or-external-find-file, project-find-dir, project-dired,
>> project-vc-dir, project-eshell, project-shell, project-async-shell-command,
>> project-shell-command, project-search, project-query-replace-regexp,
>> project-compile, project--read-project-buffer, project-list-buffers,
>> project-kill-buffers, project-switch-project): DWIM.
>> (project--read-file-cpd-relative): De-obfuscate.
>> (project-find-file-in): Whitespace.
>> (project-most-recent-project): New DWIM function.
>> (project-remember-project, project-prompt-project-dir): De-obfuscate.
>> (project-execute-extended-command): Rationalize interfaces.
>> (project-remember-projects-under): Avoid backslashes.
>> * lisp/progmodes/xref.el (xref-matches-in-files): Do expand-file-name here.
>> * test/lisp/progmodes/project-tests.el (project-switch-project-extant-buffer,
>> project-implicit-project-absorption, project-assume-mru-project): Test.
>> (project-vc-extra-root-markers-supports-wildcards): Dude.
>
> First of all, lots of changes without rationalization, that's not actionable.

dick, could you please resend these patches in smaller chunks with a
rationale?

> Second: projectile defaults to mru project when it can't find one?