-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #450 from rswgnu/matsl-rsw-cleanup-package-lint-de…
…pendencies Remove package-lint dependency and string-replace compatibility code
- Loading branch information
Showing
4 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
2024-01-20 Mats Lidell <[email protected]> | ||
|
||
* Makefile (package-lint): Add explicit loading of package-lint from Melpa | ||
for this target. Only needed there. | ||
|
||
* test/hy-test-dependencies.el: Do not load package-lint for running | ||
tests. | ||
|
||
* test/hy-test-dependencies.el (string-replace): Remove not needed | ||
compatibility code. | ||
|
||
* test/hyrolo-tests.el (hyrolo-tests--outline-content-otl) | ||
(hyrolo-tests--outline-content-md): Use replace-regexp-in-string for | ||
compatibility with old Emacs versions. | ||
|
||
2024-01-17 Bob Weiner <[email protected]> | ||
|
||
* test/hy-test-dependencies.el (org-reloaded): Show Org src dir. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Author: Mats Lidell <[email protected]> | ||
;; | ||
;; Orig-Date: 20-Feb-21 at 23:16:00 | ||
;; Last-Mod: 17-Jan-24 at 23:32:33 by Bob Weiner | ||
;; Last-Mod: 20-Jan-24 at 09:56:08 by Mats Lidell | ||
;; | ||
;; SPDX-License-Identifier: GPL-3.0-or-later | ||
;; | ||
|
@@ -31,23 +31,11 @@ | |
(package-install pkg-symbol))) | ||
|
||
(mapc (lambda (sym) (hy-test-ensure-package-installed sym)) | ||
'(el-mock package-lint with-simulated-input)) | ||
'(el-mock with-simulated-input)) | ||
|
||
;; Needed when `hypb:display-file-with-logo' uses `org-mode'. | ||
(setq hsys-org-enable-smart-keys t) | ||
|
||
;; From compat.el package | ||
(unless (fboundp 'string-replace) | ||
(defun string-replace (fromstring tostring instring) | ||
"Replace FROMSTRING with TOSTRING in INSTRING each time it occurs." | ||
(when (equal fromstring "") | ||
(signal 'wrong-length-argument '(0))) | ||
(let ((case-fold-search nil)) | ||
(replace-regexp-in-string | ||
(regexp-quote fromstring) | ||
tostring instring | ||
t t)))) | ||
|
||
(require 'pp) | ||
(terpri) | ||
(print (format "Org source dir = %S" (ignore-errors (org-find-library-dir "org")))) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Author: Mats Lidell <[email protected]> | ||
;; | ||
;; Orig-Date: 19-Jun-21 at 22:42:00 | ||
;; Last-Mod: 15-Jan-24 at 22:15:11 by Bob Weiner | ||
;; Last-Mod: 20-Jan-24 at 10:03:01 by Mats Lidell | ||
;; | ||
;; SPDX-License-Identifier: GPL-3.0-or-later | ||
;; | ||
|
@@ -989,12 +989,13 @@ body | |
"Outline content for org files.") | ||
|
||
(defconst hyrolo-tests--outline-content-otl | ||
(string-replace "org" "otl" hyrolo-tests--outline-content-org) | ||
(replace-regexp-in-string "org" "otl" hyrolo-tests--outline-content-org) | ||
"Outline content for otl files.") | ||
|
||
(defconst hyrolo-tests--outline-content-md | ||
(string-replace "*" "#" | ||
(string-replace "org" "md" hyrolo-tests--outline-content-org)) | ||
(replace-regexp-in-string | ||
(regexp-quote "*") "#" | ||
(replace-regexp-in-string "org" "md" hyrolo-tests--outline-content-org)) | ||
"Outline content for markdown files.") | ||
|
||
(ert-deftest hyrolo-tests--forward-same-level-org-level2 () | ||
|