unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* package.el, package updates and load-path in long-running emacs
@ 2017-05-25  0:15 raman
  2017-05-25  5:33 ` John Wiegley
  0 siblings, 1 reply; 2+ messages in thread
From: raman @ 2017-05-25  0:15 UTC (permalink / raw)
  To: emacs-devel


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))

-- 

-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: package.el, package updates and load-path in long-running emacs
  2017-05-25  0:15 package.el, package updates and load-path in long-running emacs raman
@ 2017-05-25  5:33 ` John Wiegley
  0 siblings, 0 replies; 2+ messages in thread
From: John Wiegley @ 2017-05-25  5:33 UTC (permalink / raw)
  To: raman; +Cc: emacs-devel

>>>>> "r" == raman  <raman@google.com> writes:

r> At the end of updating packages, we should perhaps run 
r> (progn
r> (package-initialize)
r> (setq load-path (remove-if-not #'file-exists-p load-path))

Sounds reasonable, but what is the full impact of running package-initialize
at that time?

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-25  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25  0:15 package.el, package updates and load-path in long-running emacs raman
2017-05-25  5:33 ` John Wiegley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).