Function: project-nix-store-unload-function

project-nix-store-unload-function is a natively compiled function defined in project-nix-store.el.

Signature

(project-nix-store-unload-function)

Documentation

Do extra cleanup when called by unload-feature.

Source Code

;; Defined in /nix/store/4avp517pkzrkdwhbzvqxvwaibbch12wf-emacs-packages-deps/share/emacs/site-lisp/project-nix-store.el
(defun project-nix-store-unload-function ()
  "Do extra cleanup when called by `unload-feature'."
  (defvar unload-feature-special-hooks)
  (cl-flet ((remove-hook-when-needed (hook function)
              (when (and
                     ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81550
                     (not (memq hook unload-feature-special-hooks))
                     (boundp hook))
                (remove-hook hook function))))
    (remove-hook-when-needed 'project-find-functions #'project-nix-store-try)
    (remove-hook-when-needed 'project-list-exclude #'project-nix-store-p))
  ;; The standard unloading proceeds.
  nil)