From 8795a2488f4f80e97a453dd3cea0ea21c4de442a Mon Sep 17 00:00:00 2001 From: Jauhien Piatlicki Date: Tue, 19 Aug 2014 23:35:42 +0200 Subject: fix unset action help and elisp-site-regen, see https://github.com/Heather/gentoo-rust/issues/29 --- src/modules/rust.eselect | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/rust.eselect b/src/modules/rust.eselect index 5f1a576..c744d30 100644 --- a/src/modules/rust.eselect +++ b/src/modules/rust.eselect @@ -117,6 +117,10 @@ unset_version() { remove_symlink "${EROOT}/${SITELISP}"/rust-mode remove_symlink "${EROOT}/${SITELISP}"/site-gentoo.d/50rust-mode-gentoo.el + if [[ -e "${EROOT}/${SITELISP}"/site-gentoo.el ]]; then + elisp-site-regen + fi + for i in after/syntax autoload ftdetect ftplugin indent plugin syntax; do remove_symlink "${EROOT}/${SITEVIM}/${i}/rust.vim" done @@ -245,7 +249,7 @@ describe_unset() { echo "Unset active rust version" } -describe_update_options() { +describe_unset_options() { echo "--if-invalid : Unset only if symlink is invalid (e.g. package was uninstalled)" } -- cgit v1.2.3-65-gdbad