Skip to content

Commit 0d5d894

Browse files
committed
fast-demo-display-kotl-starting-from-cell - Stop mod of kotl/EXAMPLE
1 parent 64c6dd6 commit 0d5d894

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2026-06-16 Bob Weiner <rsw@gnu.org>
22

3+
* test/demo-tests.el (fast-demo-display-kotl-starting-from-cell): Fix to
4+
erase viespec modification to "kotl/EXAMPLE.kotl" which test was leaving.
5+
36
* hsys-activities.el: Improve documentation.
47

58
* hui.el (hui:ebut-message, hui:ibut-message): Fix 'actype' setting so

test/demo-tests.el

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Mats Lidell <matsl@gnu.org>
44
;;
55
;; Orig-Date: 30-Jan-21 at 12:00:00
6-
;; Last-Mod: 16-Mar-26 at 00:16:06 by Bob Weiner
6+
;; Last-Mod: 16-Jun-26 at 22:09:58 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -807,12 +807,19 @@ enough files with matching mode loaded."
807807
(insert (format "<%skotl/EXAMPLE.kotl#3b10|c2en>"
808808
default-directory))
809809
(goto-char 5)
810-
(action-key)
811-
(setq buf (current-buffer))
812-
(should (string-suffix-p "EXAMPLE.kotl" buffer-file-name))
813-
(should (looking-at-p "Cell Transposition:"))
814-
;; Ensure visible cell length is cutoff at 2 lines
815-
(should (= 2 (hypb:string-count-matches "\n" (kcell-view:contents)))))))
810+
(unwind-protect
811+
(progn (action-key)
812+
(setq buf (current-buffer))
813+
(should (string-suffix-p "EXAMPLE.kotl" buffer-file-name))
814+
(should (looking-at-p "Cell Transposition:"))
815+
;; Ensure visible cell length is cutoff at 2 lines
816+
(should (= 2 (hypb:string-count-matches
817+
"\n" (kcell-view:contents)))))
818+
;; Restore kotl/EXAMPLE.kotl to its original viewspec and kill the
819+
;; buffer so it is unchanged.
820+
(kvspec:activate "ben")
821+
(set-buffer-modified-p nil)
822+
(kill-buffer (current-buffer))))))
816823

817824
(provide 'demo-tests)
818825

0 commit comments

Comments
 (0)