el-get/test/issues/el-get-issue-1189.el
Stephan Creutz f4ce3bc177 Fix several regression tests
Many regression tests broke after the removal of "cl", because they
assumed "cl" is implicitly loaded. Others regression tests broke for
other reasons.

The commit fixes _not_ all regression tests. This is meant to be the
first wave.
2021-11-13 22:57:24 +01:00

19 lines
664 B
EmacsLisp

;;; When installing a package whose name is a prefix of an already
;;; installed package, `el-get-elpa-package-directory' gets confused.
(require 'cl-lib)
(setq el-get-sources
'((:name load-dir ; I tried to pick the smallest package
:type elpa
:description "Load all Emacs Lisp files in a given directory"
:repo ("gnu" . "http://elpa.gnu.org/packages/"))))
(el-get 'sync 'load-dir)
(cl-assert (not (equal (el-get-elpa-package-directory 'load)
(el-get-elpa-package-directory 'load-dir)))
nil
"a package name `load' shouldn't use the same directory
as `load-dir'.")