core-os: don't cache exec-path too aggressively

This commit is contained in:
Henrik Lissner 2017-03-19 22:51:29 -04:00
parent db7cf68775
commit 88454f58ec

View file

@ -31,11 +31,12 @@
(cond ((display-graphic-p)
;; `exec-path-from-shell' is slow, so bring out the cache
(setq exec-path
(or (persistent-soft-fetch 'exec-path "emacs")
(and (require 'exec-path-from-shell nil t)
(progn (exec-path-from-shell-initialize)
(persistent-soft-store 'exec-path exec-path "emacs")))
exec-path)))
(eval-when-compile
(require 'exec-path-from-shell nil t)
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
(exec-path-from-shell-initialize)
(persistent-soft-store 'exec-path exec-path "emacs")
exec-path)))
(t
(when (require 'osx-clipboard nil t)
(osx-clipboard-mode +1))))