mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
Clean up 'Info-directory-list' after deleting package
* lisp/emacs-lisp/package.el (package--delete-directory): Remove manual before physically deleting the package. (Bug#80776)
This commit is contained in:
parent
dedd652fc5
commit
be2b4a9831
1 changed files with 3 additions and 0 deletions
|
|
@ -2348,6 +2348,9 @@ installed), maybe you need to \\[package-refresh-contents]")
|
|||
"Delete PKG-DESC directory DIR recursively.
|
||||
Clean-up the corresponding .eln files if Emacs is native
|
||||
compiled, and remove the DIR from `load-path'."
|
||||
(when (and (file-exists-p (expand-file-name "dir" dir))
|
||||
(boundp 'Info-directory-list))
|
||||
(cl-callf2 delete dir Info-directory-list))
|
||||
(setq load-path (cl-remove-if (lambda (s) (file-in-directory-p s dir))
|
||||
load-path))
|
||||
(when (featurep 'native-compile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue