[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
package.el, package updates and load-path in long-running emacs
From: |
raman |
Subject: |
package.el, package updates and load-path in long-running emacs |
Date: |
Wed, 24 May 2017 17:15:38 -0700 |
User Scenario
1. You dont restart/kill emacs very often.
2. You use package.el and update packages.
3. This deletes older versions of the updated package.
Now, load-path is full of dirs that dont exist --- worse -- unless you
run package-initialize, the newly updated packages are not found by
commands like find-function.
Suggestion:
At the end of updating packages, we should perhaps run
(progn
(package-initialize)
(setq load-path (remove-if-not #'file-exists-p load-path))
--
--
- package.el, package updates and load-path in long-running emacs,
raman <=