branch: externals/hyperbole commit 0c019d9b8f047acd099ced086ebd3175f3ab718f Author: bw <r...@gnu.org> Commit: bw <r...@gnu.org>
test/hui-tests.el - Kill all *info*<#> buffers --- ChangeLog | 3 +++ test/hui-tests.el | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 156411fdd3..77a0d444e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2024-06-29 Bob Weiner <r...@gnu.org> +* test/hui-tests.el (hui-ebut-create-link-to-info-index-using-completion): + When finished, kill all *info*<#> buffers. + * hui-em-but.el: Rename to "hproperty.el". * hui-em-but.el (hproperty:char-property-start, hproperty:char-property-end, diff --git a/test/hui-tests.el b/test/hui-tests.el index 39c08efc5c..6c5d11fa0d 100644 --- a/test/hui-tests.el +++ b/test/hui-tests.el @@ -253,9 +253,9 @@ Ensure modifying the button but keeping the label does not create a double label (hy-test-helpers:consume-input-events) (hy-test-helpers-verify-hattr-at-p :actype 'actypes::link-to-Info-index-item :args '("(emacs)Package") :loc file :lbl-key "emacs-package-button")) - (progn - (kill-buffer "*info*") - (hy-delete-file-and-buffer file))))) + ;; There may be multiple *info* buffers, e.g. *info*<2> + (kill-matching-buffers "^\\*info\\*" nil t) + (hy-delete-file-and-buffer file)))) (ert-deftest hui-gibut-create-link-to-file () "Programatically create implicit button link to file."