diff options
| author | Elías Gabriel Pérez | 2025-11-18 11:02:24 -0600 |
|---|---|---|
| committer | Juri Linkov | 2025-11-19 09:20:00 +0200 |
| commit | bfa0cb81ddae6ce3e37f4cc4da4725a2f396d784 (patch) | |
| tree | ee082497832992766c8fa9c182e529edf06f3ee0 /test | |
| parent | 4532f5ae8f690f1e663706aea265461061f6b522 (diff) | |
| download | emacs-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.el | 8 |
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 | |||
| 257 | int | 259 | int |
| 258 | main(int argc, char **argv) | 260 | main(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 | |||
| 273 | int | 277 | int |
| 274 | main(int argc, char **argv) | 278 | main(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 | |||
| 287 | int | 293 | int |
| 288 | main(int argc, char **argv) | 294 | main(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 | |||
| 303 | int | 311 | int |
| 304 | main(int argc, char **argv) | 312 | main(int argc, char **argv) |
| 305 | { | 313 | { |