Skip to content

Commit ec3b0a0

Browse files
committed
Merge 'docfix' (#3014), 'recipes' (#3015) and 'test-update-load-path'
4 parents bd01a86 + b044f0a + 0ec91c4 + d49dac4 commit ec3b0a0

6 files changed

Lines changed: 78 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths-ignore:
99
- '**.png'
1010
- '**.svg'
11+
- '**.md'
1112
- '**.texi'
1213
- '**.info'
1314
- '.dir-locals.el'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ your package manager if you are using Linux or by downloading it from the
7373
Installing El-Get depends on a working `install-info` command, please make
7474
sure you have one in your `PATH`. In `debian`, it's available in the
7575
[install-info debian package](http://packages.debian.org/squeeze/install-info). The
76-
[MacOSX install-info](http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man1/install-info.1.html)
76+
[MacOSX brew install-info](https://formulae.brew.sh/formula/texinfo)
7777
version works fine with El-Get.
7878

7979
When using the *windows* operating system, take into account that the way

recipes/ecb.rcp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(:name ecb
22
:description "Emacs Code Browser"
33
:type github
4-
:pkgname "alexott/ecb"
4+
:pkgname "ecb-org/ecb"
55
:depends (cedet)
6+
:minimum-emacs-version "29"
67
:build `(("make" "CEDET=../cedet" ,(concat "EMACS=" (shell-quote-argument el-get-emacs)))))

recipes/mu4e.rcp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
(el-get-package-directory 'mu4e))))
1313
:build `(("./autogen.sh")
1414
("make"))
15+
:build/berkeley-unix `(("./autogen.sh")
16+
("gmake"))
1517
:load-path "build/mu4e"
1618
:info "build/mu4e/mu4e.info"
1719
)

recipes/ws-butler.rcp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
(:name ws-butler
2-
:description "Unobtrusively trim extraneous white-space *ONLY* in lines edited.
3-
"
4-
:type github
5-
:pkgname "lewang/ws-butler")
2+
:description "Unobtrusively trim extraneous white-space *ONLY* in lines edited."
3+
:type elpa
4+
:repo ("nongnu" . "https://elpa.nongnu.org/nongnu/"))

test/el-get-tests.el

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(require 'el-get)
22
(require 'ert nil t)
33

4+
(el-get-register-method-alias :test :builtin)
5+
46
(eval-when-compile
57
(require 'cl-lib)
68
(unless (featurep 'ert)
@@ -35,6 +37,7 @@ error.
3537
Following variables are bound to temporal values:
3638
* `user-emacs-directory'
3739
* `package-user-dir'
40+
* `load-path'
3841
* `el-get-dir'
3942
* `el-get-status-file'
4043
* `el-get-status-cache'
@@ -43,6 +46,7 @@ Following variables are bound to temporal values:
4346
`(let* ((user-emacs-directory
4447
(make-temp-file "emacs.d.el-get-testing" 'dir "/"))
4548
(package-user-dir (locate-user-emacs-file "elpa"))
49+
(load-path load-path)
4650
(el-get-dir (mapconcat #'file-name-as-directory
4751
`(,user-emacs-directory "el-get") ""))
4852
(el-get-status-file (concat el-get-dir ".status.el"))
@@ -128,6 +132,71 @@ Following variables are bound to temporal values:
128132
el-get-test-files-dir))
129133
(el-get 'sync (mapcar 'el-get-source-name el-get-sources)))))
130134

135+
(ert-deftest el-get-update-load-path ()
136+
"Check the `load-path' is updated."
137+
(el-get-with-temp-home
138+
(let* ((recipe-a (list :name 'a :type 'test :compile nil
139+
:non-updatable 1
140+
:build '(progn (make-directory "test-load-path1" t) nil)
141+
:load-path "test-load-path1"))
142+
(el-get-sources (list recipe-a))
143+
(el-get-default-process-sync t))
144+
(el-get 'sync 'a)
145+
(should (member (expand-file-name
146+
"test-load-path1" (el-get-package-directory 'a))
147+
load-path))
148+
(plist-put recipe-a :load-path "test-load-path2")
149+
(plist-put recipe-a :build '(progn (make-directory "test-load-path2" t) nil))
150+
(el-get-update 'a)
151+
(should (member (expand-file-name
152+
"test-load-path2" (el-get-package-directory 'a))
153+
load-path))
154+
(plist-put recipe-a :load-path "test-load-path3")
155+
(plist-put recipe-a :non-updatable 3) ; Needs reinstall to change.
156+
(plist-put recipe-a :build '(progn (make-directory "test-load-path3" t) nil))
157+
(el-get-update 'a)
158+
(should (member (expand-file-name
159+
"test-load-path3" (el-get-package-directory 'a))
160+
load-path)))))
161+
162+
(ert-deftest el-get-update-rcp-file-load-path ()
163+
"Check the `load-path' is updated."
164+
:expected-result :failed
165+
(el-get-with-temp-home
166+
(let* ((rcpdir (expand-file-name "~/.emacs.d/el-get-user-recipes/"))
167+
(el-get-recipe-path (cons rcpdir el-get-recipe-path))
168+
(recipe-a (list :name 'a :type 'test :compile nil
169+
:non-updatable 1
170+
:build '(progn (make-directory "test-load-path1" t) nil)
171+
:load-path "test-load-path1"))
172+
(el-get-default-process-sync t))
173+
(make-directory rcpdir t)
174+
(with-temp-file (expand-file-name "a.rcp" rcpdir)
175+
(pp recipe-a (current-buffer)))
176+
(el-get 'sync 'a)
177+
(should (member (expand-file-name
178+
"test-load-path1" (el-get-package-directory 'a))
179+
load-path))
180+
181+
(plist-put recipe-a :load-path "test-load-path2")
182+
(plist-put recipe-a :build '(progn (make-directory "test-load-path2" t) nil))
183+
(with-temp-file (expand-file-name "a.rcp" rcpdir)
184+
(pp recipe-a (current-buffer)))
185+
(el-get-update 'a)
186+
(should (member (expand-file-name
187+
"test-load-path2" (el-get-package-directory 'a))
188+
load-path))
189+
190+
(plist-put recipe-a :load-path "test-load-path3")
191+
(plist-put recipe-a :non-updatable 3) ; Needs reinstall to change.
192+
(plist-put recipe-a :build '(progn (make-directory "test-load-path3" t) nil))
193+
(with-temp-file (expand-file-name "a.rcp" rcpdir)
194+
(pp recipe-a (current-buffer)))
195+
(el-get-update 'a)
196+
(should (member (expand-file-name
197+
"test-load-path3" (el-get-package-directory 'a))
198+
load-path)))))
199+
131200
(ert-deftest el-get-elpa-feature ()
132201
"`:features' option should work for ELPA type recipe."
133202
:expected-result :failed

0 commit comments

Comments
 (0)