aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorElías Gabriel Pérez2025-11-18 11:02:24 -0600
committerJuri Linkov2025-11-19 09:20:00 +0200
commitbfa0cb81ddae6ce3e37f4cc4da4725a2f396d784 (patch)
treeee082497832992766c8fa9c182e529edf06f3ee0 /test
parent4532f5ae8f690f1e663706aea265461061f6b522 (diff)
downloademacs-bfa0cb81ddae6ce3e37f4cc4da4725a2f396d784.tar.gz
emacs-bfa0cb81ddae6ce3e37f4cc4da4725a2f396d784.zip
hideshow: Fix regressions. (Bug#79857)
* lisp/progmodes/hideshow.el (hs-block-positions): Exit the function if 'hs-forward-sexp' fails. (hs-hide-level-recursive): Fix infloop. * test/lisp/progmodes/hideshow-tests.el (hideshow-hide-level-1): (hideshow-hide-level-2): Update tests.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/hideshow-tests.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lisp/progmodes/hideshow-tests.el b/test/lisp/progmodes/hideshow-tests.el
index a6b3ecfbd3d..9cf60c1ec84 100644
--- a/test/lisp/progmodes/hideshow-tests.el
+++ b/test/lisp/progmodes/hideshow-tests.el
@@ -254,6 +254,8 @@ sub()
254 Comments 254 Comments
255*/ 255*/
256 256
257\"String\"
258
257int 259int
258main(int argc, char **argv) 260main(int argc, char **argv)
259{ 261{
@@ -270,6 +272,8 @@ main(int argc, char **argv)
270 Comments 272 Comments
271*/ 273*/
272 274
275\"String\"
276
273int 277int
274main(int argc, char **argv) 278main(int argc, char **argv)
275{} 279{}
@@ -284,6 +288,8 @@ main(int argc, char **argv)
284 Comments 288 Comments
285*/ 289*/
286 290
291\"String\"
292
287int 293int
288main(int argc, char **argv) 294main(int argc, char **argv)
289{ 295{
@@ -300,6 +306,8 @@ main(int argc, char **argv)
300 Comments 306 Comments
301*/ 307*/
302 308
309\"String\"
310
303int 311int
304main(int argc, char **argv) 312main(int argc, char **argv)
305{ 313{