all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14639: package-initialize not run
@ 2013-06-17  2:34 Juanma Barranquero
  2013-06-17 13:35 ` Juanma Barranquero
  2013-06-17 14:45 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Juanma Barranquero @ 2013-06-17  2:34 UTC (permalink / raw)
  To: 14639

Package: emacs
Version: 24.3.50
X-Debbugs-CC: monnier@iro.umontreal.ca


package-initialize is not being run because the code to detect
description files does

  (when (let ((subdir (expand-file-name subdir dir)))
          (and (file-directory-p subdir)
               (file-exists-p
                (package--description-file subdir))))
    (throw 'package-dir-found t)))))))

but package--description-file does not return an absolute filename, so
file-exists-p fails.

Either this patch is needed,

=== modified file 'lisp/startup.el'
--- lisp/startup.el 2013-06-15 15:36:11 +0000
+++ lisp/startup.el 2013-06-17 02:21:06 +0000
@@ -1204,5 +1204,7 @@
                          (and (file-directory-p subdir)
                               (file-exists-p
-                               (package--description-file subdir))))
+                               (expand-file-name
+                                (package--description-file subdir)
+                                subdir))))
    (throw 'package-dir-found t)))))))
        (package-initialize))


or modifying package--description-file to return an absolute path.





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

end of thread, other threads:[~2013-06-17 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17  2:34 bug#14639: package-initialize not run Juanma Barranquero
2013-06-17 13:35 ` Juanma Barranquero
2013-06-17 14:45 ` Stefan Monnier
2013-06-17 15:36   ` Juanma Barranquero

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.