From e1712bdb353914f621a956ffeb72c53f34e007f7 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 21 Sep 2021 16:07:39 +0300 Subject: [PATCH] Rename project-remove-known-project to project-forget-project * doc/emacs/maintaining.texi (Managing Projects): Ditto. * etc/NEWS: Update accordingly. * lisp/progmodes/project.el (project-forget-project): Rename from 'project-remove-known-project', for consistency with 'project-remember-project' (discussed in bug#50297). --- doc/emacs/maintaining.texi | 6 +++--- etc/NEWS | 2 +- lisp/ldefs-boot.el | 2 +- lisp/progmodes/project.el | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index f98e7b1edaf..7e8b0e5914d 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -1866,14 +1866,14 @@ records the list of known projects. It defaults to the file @subsection Managing the Project List File @table @kbd -@item M-x project-remove-known-project +@item M-x project-forget-project Remove a known project from the @code{project-list-file}. @end table -@findex project-remove-known-project +@findex project-forget-project Normally Emacs automatically adds and removes projects to and from the @code{project-list-file}, but sometimes you may want to manually edit -the available projects. @kbd{M-x project-remove-known-project} +the available projects. @kbd{M-x project-forget-project} prompts you to choose one of the available projects, and then removes it from the file. diff --git a/etc/NEWS b/etc/NEWS index d241f864d35..e8196d277d0 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2397,7 +2397,7 @@ project's root directory, respectively. This specifies the file in which to save the list of known projects. +++ -*** New command 'project-remove-known-project'. +*** New command 'project-forget-project'. This command lets you interactively remove an entry from the list of projects in 'project-list-file'. diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el index 9cd5c9bfa84..0ab9552c60b 100644 --- a/lisp/ldefs-boot.el +++ b/lisp/ldefs-boot.el @@ -26590,7 +26590,7 @@ Save the result in `project-list-file' if the list of projects has changed. \(fn PR)" nil nil) -(autoload 'project-remove-known-project "project" "\ +(autoload 'project-forget-project "project" "\ Remove directory PROJECT-ROOT from the project list. PROJECT-ROOT is the root directory of a known project listed in the project list. diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index f1437c6a238..ebd21d4b602 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1315,7 +1315,7 @@ passed to `message' as its first argument." (project--write-project-list))) ;;;###autoload -(defun project-remove-known-project (project-root) +(defun project-forget-project (project-root) "Remove directory PROJECT-ROOT from the project list. PROJECT-ROOT is the root directory of a known project listed in the project list." -- 2.39.5