el-get/test/issues/el-get-issue-1006.el
Noam Postavsky d79c395f22 enable ert tests in travis, reorganize test files
rename ert tests file test.el => el-get-tests.el
move el-get-issue-* files to separate dir
2015-11-13 23:39:27 -05:00

19 lines
636 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
(setq el-get-sources '((:name whole-line-or-region
:after (whole-line-or-region-mode))))
;;; setting el-get-is-lazy makes it work
;(setq el-get-is-lazy t)
(el-get 'sync 'whole-line-or-region)
(assert (fboundp 'whole-line-or-region-mode))