[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole da8fd61747 099/143: Remove package-lint depen
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole da8fd61747 099/143: Remove package-lint dependency and string-replace compatibility code |
Date: |
Mon, 19 Feb 2024 15:59:17 -0500 (EST) |
branch: externals/hyperbole
commit da8fd61747fa10827c95675ea2fcfff8fc6ad0cd
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>
Remove package-lint dependency and string-replace compatibility code
Only require package-lint in the package-lint target.
The compat library that was dragged in due to package-lint resolved
backwards compatibility for string-replace for older Emacs
versions. Solved here by using older replace-regexp-in-string.
---
ChangeLog | 15 +++++++++++++++
Makefile | 4 +++-
test/hy-test-dependencies.el | 16 ++--------------
test/hyrolo-tests.el | 9 +++++----
4 files changed, 25 insertions(+), 19 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2182bb37e4..4a93ef7d29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2024-01-20 Mats Lidell <matsl@gnu.org>
+
+* 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 <rsw@gnu.org>
* test/hy-test-dependencies.el (org-reloaded): Show Org src dir.
diff --git a/Makefile b/Makefile
index 9032b858c2..f17074761e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
# Author: Bob Weiner
#
# Orig-Date: 15-Jun-94 at 03:42:38
-# Last-Mod: 17-Jan-24 at 14:57:57 by Mats Lidell
+# Last-Mod: 20-Jan-24 at 10:07:54 by Mats Lidell
#
# Copyright (C) 1994-2023 Free Software Foundation, Inc.
# See the file HY-COPY for license information.
@@ -535,5 +535,7 @@ package-lint:
$(EMACS_BATCH) \
--eval "(setq package-lint-main-file \"hyperbole.el\")" \
--eval "(load-file \"test/hy-test-dependencies.el\")" \
+ --eval "(add-to-list 'package-archives '(\"melpa\" .
\"https://melpa.org/packages/\"))" \
+ --eval "(hy-test-ensure-package-installed 'package-lint)" \
-l package-lint.el -f package-lint-batch-and-exit \
$(EL_KOTL) $(EL_SRC)
diff --git a/test/hy-test-dependencies.el b/test/hy-test-dependencies.el
index 66d6507971..a7bcf2de9c 100644
--- a/test/hy-test-dependencies.el
+++ b/test/hy-test-dependencies.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; 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"))))
diff --git a/test/hyrolo-tests.el b/test/hyrolo-tests.el
index 392312014d..6bb48b8a42 100644
--- a/test/hyrolo-tests.el
+++ b/test/hyrolo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; 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 ()
- [elpa] externals/hyperbole 3d80bcbaf4 109/143: Merge branch 'rsw' of hyperbole into rsw, (continued)
- [elpa] externals/hyperbole 3d80bcbaf4 109/143: Merge branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1078846a45 120/143: Update generation of README.md.html for increased reliability, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 970a5573f3 133/143: Merge branch 'rsw' into matsl-rsw-add-top-view-n-overview-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7c7aae7206 052/143: Add edit entry test, fix regular expressions, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6009912456 128/143: Add type of but in error message, renamed but parameter, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7d485ab5ff 136/143: hbut:act-label: Add to match same func for ebuts and ibuts, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 9a39300fcb 135/143: Merge branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole d55d57664c 139/143: Remove ad hoc flycheck warnings (#468), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole ce463d27c9 143/143: Merge to rsw branch in prep for V8.0.2pre release, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 21c93a0c70 137/143: Reorder load of `org-macs', ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole da8fd61747 099/143: Remove package-lint dependency and string-replace compatibility code,
ELPA Syncer <=
- [elpa] externals/hyperbole 74ba1fd580 104/143: Cleanup of flycheck/flymake info and warning messages (#449), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 9e77bdf62e 108/143: Fix cyclic call bug that made Elisp lookups slow in ChangeLog mode, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole dd2e0884ee 100/143: Merge pull request #450 from rswgnu/matsl-rsw-cleanup-package-lint-dependencies, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 871391f368 103/143: Add test for hargs:sexpression-p (#451), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 4291c14138 115/143: Add hyrolo reveal mode test (#459), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f4e323542d 116/143: Disable three failing tests for Emacs older than 29 (#461), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7a7f74859 125/143: Add i- and ebut:act functions and tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f1fa9363e8 119/143: Matsl rsw silence warnings again (#463), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 4bf1bc3ca2 126/143: Check ebut:act and ibut:act is called with the right but category, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 18ae76fa49 132/143: Merge pull request #462 from rswgnu/matsl-rsw-fix-ebut-act, ELPA Syncer, 2024/02/19