[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole e67d0f733f 058/143: Fix edebugging of tests t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole e67d0f733f 058/143: Fix edebugging of tests that have not been previously defined |
Date: |
Mon, 19 Feb 2024 15:58:55 -0500 (EST) |
branch: externals/hyperbole
commit e67d0f733fc8a9f741ea4e5099280bbfeccd3ca5
Author: bw <rsw@gnu.org>
Commit: bw <rsw@gnu.org>
Fix edebugging of tests that have not been previously defined
---
ChangeLog | 5 +++++
hypb-ert.el | 10 ++++++----
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 311ab9df5f..2f41b2d8d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2024-01-03 Bob Weiner <rsw@gnu.org>
+* hypb-ert.el (hypb-ert-run-test-at-definition): Fix to edebug function
+ when not previously defined.
+ test/hypb-ert-tests.el (hypb-ert-tests--edebug-is-called): Make edebug
+ test work.
+
* hib-debbugs.el (declare-function): Revert declarations to use
"ext:debbugs-gnu" from "ext:debbugs" since the newer package
does not have many of the functions that Hyperbole presently uses.
diff --git a/hypb-ert.el b/hypb-ert.el
index ef97904198..52b7c7170d 100644
--- a/hypb-ert.el
+++ b/hypb-ert.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org> and Bob Weiner <rsw@gnu.org>
;;
;; Orig-Date: 31-Mar-21 at 21:11:00
-;; Last-Mod: 1-Jan-24 at 13:10:06 by Bob Weiner
+;; Last-Mod: 3-Jan-24 at 03:37:28 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -105,14 +105,16 @@ With optional START-END-FLAG, return a list of (test-name
start-pos end-pos)."
"Assume on the name in the first line of an ert test def, eval and run the
test.
With optional DEBUG-IT non-nil (when the assist-key is pressed), edebug the
test when it is run."
- (let (test-sym)
- (setq test-sym (intern-soft test-name))
+ (let ((test-sym (intern-soft test-name)))
;; Ensure run the latest version of the test, either with the
;; edebugger if already instrumented for it; otherwise, with the
;; normal evaluator.
(if (and test-sym debug-it)
(edebug-defun)
- (eval-defun nil))
+ (eval-defun nil)
+ (setq test-sym (intern-soft test-name))
+ (when (and test-sym debug-it)
+ (edebug-defun)))
(setq test-sym (intern-soft test-name))
(when (and test-sym (ert-test-boundp test-sym))
(when (and buffer-file-name (string-prefix-p hyperb:dir
buffer-file-name))
- [elpa] externals/hyperbole 027eb85174 014/143: Merge matsl-rsw-hpath-expand' into rsw, (continued)
- [elpa] externals/hyperbole 027eb85174 014/143: Merge matsl-rsw-hpath-expand' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-match-regexp' test., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for hui:link-possible-types, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 12950cd2db 029/143: Matsl rsw fix failing tests (#424), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 98edfae8d1 021/143: Fix test with link-to-string-match since bug is fixed, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 966605b7a3 028/143: hkey-window-link, {M-o w} - invert the meaning of prefix arg, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7adb441c0e 036/143: kotl-mode - fix kill and yank commands not moving to valid pos first, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2187b3522b 049/143: Add test for hiding and showing, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole e995fc8905 050/143: Add test for moving between two sections, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7657601745 043/143: hyrolo-mode-map - bind {n} and {C-c C-n} to the same command, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole e67d0f733f 058/143: Fix edebugging of tests that have not been previously defined,
ELPA Syncer <=
- [elpa] externals/hyperbole fc6df9d652 056/143: Merge remote branch 'rsw' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole acec506a2c 061/143: Require hbut so defib is defined, needed for compiling (#430), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 12e714d824 072/143: Move xref extensions to new "hsys-xref.el". Add ibut API extensions, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a08fd67af3 057/143: Merge pull request #427 from rswgnu/matsl-rsw-add-hyrolo-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 29dda66c3e 059/143: Merge remote branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 19e51dfb0e 009/143: +* hyrolo.el (hyrolo-move-backward, hyrolo-move-forward): Fixes., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 564c147587 046/143: Add tests for hypb-ert (#429), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 97f4e12386 023/143: hui--link-possible-types - ensure only 1 specific type per test, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole badf1e5281 027/143: Merge remote branch 'rsw' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 00d5af41be 039/143: Add Smart Key support for rsw's new ert-results.el package, ELPA Syncer, 2024/02/19