Subject: bug#77425: 31.0.50; Switching to remote project -> no applicable method

From: Gerd Möllmann <[email-masked]>
Date: Thu, 03 Apr 2025 09:38:02 +0200

Gerd Möllmann <[email-masked]> writes:

> - emacs -Q -nw
>
> - Eval in *scratch* (or C-x p p equivalent)
>   (project-switch-project "/ssh:mini:~/emacs/github/master/")
>   where "/ssh:mini:~/emacs/github/master/" is a Git repository on another machien
>
> =>
>
> Debugger entered--Lisp error: (cl-no-applicable-method project-root nil)

Bisect gives

6aa60038ee999d25184a639ce0ac76b614e3afb6 is the first bad commit
commit 6aa60038ee999d25184a639ce0ac76b614e3afb6
Author: Visuwesh <[email-masked]>
Date:   Mon Mar 3 13:56:04 2025 +0530
    Add new user option to exclude projects from being remembered
    
    * lisp/progmodes/project.el (project-list-exclude): Add new user
    option to exclude projects from being remembered.
    (project-remember-project): Consider the user option above.
    (project-switch-project): Use 'project-remember-project' instead.
    * doc/emacs/maintaining.texi (Managing Projects): Mention the new user option.
    * etc/NEWS: Announce the change.  (Bug#76587)
 doc/emacs/maintaining.texi |  9 +++++++++
 etc/NEWS                   |  7 +++++++
 lisp/progmodes/project.el  | 21 +++++++++++++++++++--
 3 files changed, 35 insertions(+), 2 deletions(-)

Author in CC.