el-get/test/issues/el-get-issue-1006.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

21 lines
670 B
EmacsLisp

;;; https://github.com/dimitri/el-get/issues/1006
;;; autoloads haven't run in :after block
;;;
;;; NOTE: must run twice without cleaning to trigger failure: the
;;; problem only happens when package is already installed.
;;;
;;; DO_NOT_CLEAN=t ./run-test.sh 1006
;;; DO_NOT_CLEAN=t ./run-test.sh 1006 # fails on second run
(require 'cl-lib)
(setq el-get-sources '((:name whole-line-or-region
:after (whole-line-or-region-local-mode))))
;;; setting el-get-is-lazy makes it work
;(setq el-get-is-lazy t)
(el-get 'sync 'whole-line-or-region)
(cl-assert (fboundp 'whole-line-or-region-local-mode))